Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
This is an example of how to lookup a content sharing policy data source:
Content sharing policy data source by id:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getContentSharingPolicy({
id: vraContentSharingPolicyId,
});
import pulumi
import pulumi_vra as vra
this = vra.get_content_sharing_policy(id=vra_content_sharing_policy_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vra.LookupContentSharingPolicy(ctx, &vra.LookupContentSharingPolicyArgs{
Id: pulumi.StringRef(vraContentSharingPolicyId),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() =>
{
var @this = Vra.GetContentSharingPolicy.Invoke(new()
{
Id = vraContentSharingPolicyId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.VraFunctions;
import com.pulumi.vra.inputs.GetContentSharingPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var this = VraFunctions.getContentSharingPolicy(GetContentSharingPolicyArgs.builder()
.id(vraContentSharingPolicyId)
.build());
}
}
variables:
this:
fn::invoke:
function: vra:getContentSharingPolicy
arguments:
id: ${vraContentSharingPolicyId}
Content sharing policy data source by name:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getContentSharingPolicy({
name: vraContentSharingPolicyName,
});
import pulumi
import pulumi_vra as vra
this = vra.get_content_sharing_policy(name=vra_content_sharing_policy_name)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vra.LookupContentSharingPolicy(ctx, &vra.LookupContentSharingPolicyArgs{
Name: pulumi.StringRef(vraContentSharingPolicyName),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() =>
{
var @this = Vra.GetContentSharingPolicy.Invoke(new()
{
Name = vraContentSharingPolicyName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.VraFunctions;
import com.pulumi.vra.inputs.GetContentSharingPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var this = VraFunctions.getContentSharingPolicy(GetContentSharingPolicyArgs.builder()
.name(vraContentSharingPolicyName)
.build());
}
}
variables:
this:
fn::invoke:
function: vra:getContentSharingPolicy
arguments:
name: ${vraContentSharingPolicyName}
Using getContentSharingPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getContentSharingPolicy(args: GetContentSharingPolicyArgs, opts?: InvokeOptions): Promise<GetContentSharingPolicyResult>
function getContentSharingPolicyOutput(args: GetContentSharingPolicyOutputArgs, opts?: InvokeOptions): Output<GetContentSharingPolicyResult>def get_content_sharing_policy(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContentSharingPolicyResult
def get_content_sharing_policy_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContentSharingPolicyResult]func LookupContentSharingPolicy(ctx *Context, args *LookupContentSharingPolicyArgs, opts ...InvokeOption) (*LookupContentSharingPolicyResult, error)
func LookupContentSharingPolicyOutput(ctx *Context, args *LookupContentSharingPolicyOutputArgs, opts ...InvokeOption) LookupContentSharingPolicyResultOutput> Note: This function is named LookupContentSharingPolicy in the Go SDK.
public static class GetContentSharingPolicy
{
public static Task<GetContentSharingPolicyResult> InvokeAsync(GetContentSharingPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetContentSharingPolicyResult> Invoke(GetContentSharingPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContentSharingPolicyResult> getContentSharingPolicy(GetContentSharingPolicyArgs args, InvokeOptions options)
public static Output<GetContentSharingPolicyResult> getContentSharingPolicy(GetContentSharingPolicyArgs args, InvokeOptions options)
fn::invoke:
function: vra:index/getContentSharingPolicy:getContentSharingPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
getContentSharingPolicy Result
The following output properties are available:
- Catalog
Item List<string>Ids - List of catalog item ids to share.
- Catalog
Source List<string>Ids - List of catalog source ids to share.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Description string
- A human-friendly description for the policy instance.
- Enforcement
Type string - The type of enforcement for the policy.
- Entitlement
Type string - Entitlement type.
- Id string
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Name string
- Org
Id string - The id of the organization this entity belongs to.
- Principals
List<Get
Content Sharing Policy Principal> - List of users or roles that can share content:
- Project
Criterias List<ImmutableDictionary<string, string>> - The project based criteria.
- Project
Id string - The id of the project this entity belongs to.
- Catalog
Item []stringIds - List of catalog item ids to share.
- Catalog
Source []stringIds - List of catalog source ids to share.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Description string
- A human-friendly description for the policy instance.
- Enforcement
Type string - The type of enforcement for the policy.
- Entitlement
Type string - Entitlement type.
- Id string
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Name string
- Org
Id string - The id of the organization this entity belongs to.
- Principals
[]Get
Content Sharing Policy Principal - List of users or roles that can share content:
- Project
Criterias []map[string]string - The project based criteria.
- Project
Id string - The id of the project this entity belongs to.
- catalog
Item List<String>Ids - List of catalog item ids to share.
- catalog
Source List<String>Ids - List of catalog source ids to share.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- description String
- A human-friendly description for the policy instance.
- enforcement
Type String - The type of enforcement for the policy.
- entitlement
Type String - Entitlement type.
- id String
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- name String
- org
Id String - The id of the organization this entity belongs to.
- principals
List<Get
Content Sharing Policy Principal> - List of users or roles that can share content:
- project
Criterias List<Map<String,String>> - The project based criteria.
- project
Id String - The id of the project this entity belongs to.
- catalog
Item string[]Ids - List of catalog item ids to share.
- catalog
Source string[]Ids - List of catalog source ids to share.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By string - The user the entity was created by.
- description string
- A human-friendly description for the policy instance.
- enforcement
Type string - The type of enforcement for the policy.
- entitlement
Type string - Entitlement type.
- id string
- last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated stringBy - The user the entity was last updated by.
- name string
- org
Id string - The id of the organization this entity belongs to.
- principals
Get
Content Sharing Policy Principal[] - List of users or roles that can share content:
- project
Criterias {[key: string]: string}[] - The project based criteria.
- project
Id string - The id of the project this entity belongs to.
- catalog_
item_ Sequence[str]ids - List of catalog item ids to share.
- catalog_
source_ Sequence[str]ids - List of catalog source ids to share.
- created_
at str - Date when the entity was created. The date is in ISO 8601 and UTC.
- created_
by str - The user the entity was created by.
- description str
- A human-friendly description for the policy instance.
- enforcement_
type str - The type of enforcement for the policy.
- entitlement_
type str - Entitlement type.
- id str
- last_
updated_ strat - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last_
updated_ strby - The user the entity was last updated by.
- name str
- org_
id str - The id of the organization this entity belongs to.
- principals
Sequence[Get
Content Sharing Policy Principal] - List of users or roles that can share content:
- project_
criterias Sequence[Mapping[str, str]] - The project based criteria.
- project_
id str - The id of the project this entity belongs to.
- catalog
Item List<String>Ids - List of catalog item ids to share.
- catalog
Source List<String>Ids - List of catalog source ids to share.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- description String
- A human-friendly description for the policy instance.
- enforcement
Type String - The type of enforcement for the policy.
- entitlement
Type String - Entitlement type.
- id String
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- name String
- org
Id String - The id of the organization this entity belongs to.
- principals List<Property Map>
- List of users or roles that can share content:
- project
Criterias List<Map<String>> - The project based criteria.
- project
Id String - The id of the project this entity belongs to.
Supporting Types
GetContentSharingPolicyPrincipal
- Reference
Id string - The reference ID of the principal.
- Type string
- The type of the principal.
- Reference
Id string - The reference ID of the principal.
- Type string
- The type of the principal.
- reference
Id String - The reference ID of the principal.
- type String
- The type of the principal.
- reference
Id string - The reference ID of the principal.
- type string
- The type of the principal.
- reference_
id str - The reference ID of the principal.
- type str
- The type of the principal.
- reference
Id String - The reference ID of the principal.
- type String
- The type of the principal.
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vraTerraform Provider.
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
