vra 0.12.0 published on Monday, Apr 14, 2025 by vmware
vra.getCatalogItemEntitlement
Explore with Pulumi AI
Note: Deprecated - please use
vra.ContentSharingPolicyinstead.
This data source provides information about a catalog item entitlement in vRA.
Example Usage
S
This is an example of how to get a vRA catalog item entitlement by its id:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getCatalogItemEntitlement({
    id: _var.catalog_item_entitlement_id,
    projectId: _var.project_id,
});
import pulumi
import pulumi_vra as vra
this = vra.get_catalog_item_entitlement(id=var["catalog_item_entitlement_id"],
    project_id=var["project_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.LookupCatalogItemEntitlement(ctx, &vra.LookupCatalogItemEntitlementArgs{
			Id:        pulumi.StringRef(_var.Catalog_item_entitlement_id),
			ProjectId: _var.Project_id,
		}, 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.GetCatalogItemEntitlement.Invoke(new()
    {
        Id = @var.Catalog_item_entitlement_id,
        ProjectId = @var.Project_id,
    });
});
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.GetCatalogItemEntitlementArgs;
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.getCatalogItemEntitlement(GetCatalogItemEntitlementArgs.builder()
            .id(var_.catalog_item_entitlement_id())
            .projectId(var_.project_id())
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getCatalogItemEntitlement
      arguments:
        id: ${var.catalog_item_entitlement_id}
        projectId: ${var.project_id}
This is an example of how to get a vRA catalog item entitlement by its catalog item id:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getCatalogItemEntitlement({
    catalogItemId: _var.catalog_item_id,
    projectId: _var.project_id,
});
import pulumi
import pulumi_vra as vra
this = vra.get_catalog_item_entitlement(catalog_item_id=var["catalog_item_id"],
    project_id=var["project_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.LookupCatalogItemEntitlement(ctx, &vra.LookupCatalogItemEntitlementArgs{
			CatalogItemId: pulumi.StringRef(_var.Catalog_item_id),
			ProjectId:     _var.Project_id,
		}, 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.GetCatalogItemEntitlement.Invoke(new()
    {
        CatalogItemId = @var.Catalog_item_id,
        ProjectId = @var.Project_id,
    });
});
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.GetCatalogItemEntitlementArgs;
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.getCatalogItemEntitlement(GetCatalogItemEntitlementArgs.builder()
            .catalogItemId(var_.catalog_item_id())
            .projectId(var_.project_id())
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getCatalogItemEntitlement
      arguments:
        catalogItemId: ${var.catalog_item_id}
        projectId: ${var.project_id}
Using getCatalogItemEntitlement
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 getCatalogItemEntitlement(args: GetCatalogItemEntitlementArgs, opts?: InvokeOptions): Promise<GetCatalogItemEntitlementResult>
function getCatalogItemEntitlementOutput(args: GetCatalogItemEntitlementOutputArgs, opts?: InvokeOptions): Output<GetCatalogItemEntitlementResult>def get_catalog_item_entitlement(catalog_item_id: Optional[str] = None,
                                 id: Optional[str] = None,
                                 project_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetCatalogItemEntitlementResult
def get_catalog_item_entitlement_output(catalog_item_id: Optional[pulumi.Input[str]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 project_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetCatalogItemEntitlementResult]func LookupCatalogItemEntitlement(ctx *Context, args *LookupCatalogItemEntitlementArgs, opts ...InvokeOption) (*LookupCatalogItemEntitlementResult, error)
func LookupCatalogItemEntitlementOutput(ctx *Context, args *LookupCatalogItemEntitlementOutputArgs, opts ...InvokeOption) LookupCatalogItemEntitlementResultOutput> Note: This function is named LookupCatalogItemEntitlement in the Go SDK.
public static class GetCatalogItemEntitlement 
{
    public static Task<GetCatalogItemEntitlementResult> InvokeAsync(GetCatalogItemEntitlementArgs args, InvokeOptions? opts = null)
    public static Output<GetCatalogItemEntitlementResult> Invoke(GetCatalogItemEntitlementInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCatalogItemEntitlementResult> getCatalogItemEntitlement(GetCatalogItemEntitlementArgs args, InvokeOptions options)
public static Output<GetCatalogItemEntitlementResult> getCatalogItemEntitlement(GetCatalogItemEntitlementArgs args, InvokeOptions options)
fn::invoke:
  function: vra:index/getCatalogItemEntitlement:getCatalogItemEntitlement
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ProjectId string
- The id of the project that this entitlement belongs to.
- CatalogItem stringId 
- The id of the catalog item to find the entitlement. One of catalog_item_idoridmust be provided.
- Id string
- The id of entitlement. One of catalog_item_idoridmust be provided.
- ProjectId string
- The id of the project that this entitlement belongs to.
- CatalogItem stringId 
- The id of the catalog item to find the entitlement. One of catalog_item_idoridmust be provided.
- Id string
- The id of entitlement. One of catalog_item_idoridmust be provided.
- projectId String
- The id of the project that this entitlement belongs to.
- catalogItem StringId 
- The id of the catalog item to find the entitlement. One of catalog_item_idoridmust be provided.
- id String
- The id of entitlement. One of catalog_item_idoridmust be provided.
- projectId string
- The id of the project that this entitlement belongs to.
- catalogItem stringId 
- The id of the catalog item to find the entitlement. One of catalog_item_idoridmust be provided.
- id string
- The id of entitlement. One of catalog_item_idoridmust be provided.
- project_id str
- The id of the project that this entitlement belongs to.
- catalog_item_ strid 
- The id of the catalog item to find the entitlement. One of catalog_item_idoridmust be provided.
- id str
- The id of entitlement. One of catalog_item_idoridmust be provided.
- projectId String
- The id of the project that this entitlement belongs to.
- catalogItem StringId 
- The id of the catalog item to find the entitlement. One of catalog_item_idoridmust be provided.
- id String
- The id of entitlement. One of catalog_item_idoridmust be provided.
getCatalogItemEntitlement Result
The following output properties are available:
- Definitions
List<GetCatalog Item Entitlement Definition> 
- Represents a catalog item that is linked to a project via an entitlement.
- ProjectId string
- CatalogItem stringId 
- Id string
- Id of the catalog item.
- Definitions
[]GetCatalog Item Entitlement Definition 
- Represents a catalog item that is linked to a project via an entitlement.
- ProjectId string
- CatalogItem stringId 
- Id string
- Id of the catalog item.
- definitions
List<GetCatalog Item Entitlement Definition> 
- Represents a catalog item that is linked to a project via an entitlement.
- projectId String
- catalogItem StringId 
- id String
- Id of the catalog item.
- definitions
GetCatalog Item Entitlement Definition[] 
- Represents a catalog item that is linked to a project via an entitlement.
- projectId string
- catalogItem stringId 
- id string
- Id of the catalog item.
- definitions
Sequence[GetCatalog Item Entitlement Definition] 
- Represents a catalog item that is linked to a project via an entitlement.
- project_id str
- catalog_item_ strid 
- id str
- Id of the catalog item.
- definitions List<Property Map>
- Represents a catalog item that is linked to a project via an entitlement.
- projectId String
- catalogItem StringId 
- id String
- Id of the catalog item.
Supporting Types
GetCatalogItemEntitlementDefinition    
- Description string
- Description of the catalog item.
- IconId string
- Icon id of associated catalog item.
- Id string
- The id of entitlement. One of catalog_item_idoridmust be provided.
- Name string
- Name of the catalog item.
- NumberOf doubleItems 
- Number of items in the associated catalog source.
- SourceName string
- Catalog source name.
- SourceType string
- Catalog source type.
- Type string
- Content definition type.
- Description string
- Description of the catalog item.
- IconId string
- Icon id of associated catalog item.
- Id string
- The id of entitlement. One of catalog_item_idoridmust be provided.
- Name string
- Name of the catalog item.
- NumberOf float64Items 
- Number of items in the associated catalog source.
- SourceName string
- Catalog source name.
- SourceType string
- Catalog source type.
- Type string
- Content definition type.
- description String
- Description of the catalog item.
- iconId String
- Icon id of associated catalog item.
- id String
- The id of entitlement. One of catalog_item_idoridmust be provided.
- name String
- Name of the catalog item.
- numberOf DoubleItems 
- Number of items in the associated catalog source.
- sourceName String
- Catalog source name.
- sourceType String
- Catalog source type.
- type String
- Content definition type.
- description string
- Description of the catalog item.
- iconId string
- Icon id of associated catalog item.
- id string
- The id of entitlement. One of catalog_item_idoridmust be provided.
- name string
- Name of the catalog item.
- numberOf numberItems 
- Number of items in the associated catalog source.
- sourceName string
- Catalog source name.
- sourceType string
- Catalog source type.
- type string
- Content definition type.
- description str
- Description of the catalog item.
- icon_id str
- Icon id of associated catalog item.
- id str
- The id of entitlement. One of catalog_item_idoridmust be provided.
- name str
- Name of the catalog item.
- number_of_ floatitems 
- Number of items in the associated catalog source.
- source_name str
- Catalog source name.
- source_type str
- Catalog source type.
- type str
- Content definition type.
- description String
- Description of the catalog item.
- iconId String
- Icon id of associated catalog item.
- id String
- The id of entitlement. One of catalog_item_idoridmust be provided.
- name String
- Name of the catalog item.
- numberOf NumberItems 
- Number of items in the associated catalog source.
- sourceName String
- Catalog source name.
- sourceType String
- Catalog source type.
- type String
- Content definition type.
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the vraTerraform Provider.