1. Packages
  2. Vra Provider
  3. API Docs
  4. getCatalogItemEntitlement
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

vra.getCatalogItemEntitlement

Explore with Pulumi AI

vra logo
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

    Note: Deprecated - please use vra.ContentSharingPolicy instead.

    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 dictionary

    The following arguments are supported:

    ProjectId string
    The id of the project that this entitlement belongs to.
    CatalogItemId string
    The id of the catalog item to find the entitlement. One of catalog_item_id or id must be provided.
    Id string
    The id of entitlement. One of catalog_item_id or id must be provided.
    ProjectId string
    The id of the project that this entitlement belongs to.
    CatalogItemId string
    The id of the catalog item to find the entitlement. One of catalog_item_id or id must be provided.
    Id string
    The id of entitlement. One of catalog_item_id or id must be provided.
    projectId String
    The id of the project that this entitlement belongs to.
    catalogItemId String
    The id of the catalog item to find the entitlement. One of catalog_item_id or id must be provided.
    id String
    The id of entitlement. One of catalog_item_id or id must be provided.
    projectId string
    The id of the project that this entitlement belongs to.
    catalogItemId string
    The id of the catalog item to find the entitlement. One of catalog_item_id or id must be provided.
    id string
    The id of entitlement. One of catalog_item_id or id must be provided.
    project_id str
    The id of the project that this entitlement belongs to.
    catalog_item_id str
    The id of the catalog item to find the entitlement. One of catalog_item_id or id must be provided.
    id str
    The id of entitlement. One of catalog_item_id or id must be provided.
    projectId String
    The id of the project that this entitlement belongs to.
    catalogItemId String
    The id of the catalog item to find the entitlement. One of catalog_item_id or id must be provided.
    id String
    The id of entitlement. One of catalog_item_id or id must be provided.

    getCatalogItemEntitlement Result

    The following output properties are available:

    Definitions List<GetCatalogItemEntitlementDefinition>
    Represents a catalog item that is linked to a project via an entitlement.
    ProjectId string
    CatalogItemId string
    Id string
    Id of the catalog item.
    Definitions []GetCatalogItemEntitlementDefinition
    Represents a catalog item that is linked to a project via an entitlement.
    ProjectId string
    CatalogItemId string
    Id string
    Id of the catalog item.
    definitions List<GetCatalogItemEntitlementDefinition>
    Represents a catalog item that is linked to a project via an entitlement.
    projectId String
    catalogItemId String
    id String
    Id of the catalog item.
    definitions GetCatalogItemEntitlementDefinition[]
    Represents a catalog item that is linked to a project via an entitlement.
    projectId string
    catalogItemId string
    id string
    Id of the catalog item.
    definitions Sequence[GetCatalogItemEntitlementDefinition]
    Represents a catalog item that is linked to a project via an entitlement.
    project_id str
    catalog_item_id str
    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
    catalogItemId String
    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_id or id must be provided.
    Name string
    Name of the catalog item.
    NumberOfItems double
    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_id or id must be provided.
    Name string
    Name of the catalog item.
    NumberOfItems float64
    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_id or id must be provided.
    name String
    Name of the catalog item.
    numberOfItems Double
    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_id or id must be provided.
    name string
    Name of the catalog item.
    numberOfItems number
    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_id or id must be provided.
    name str
    Name of the catalog item.
    number_of_items float
    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_id or id must be provided.
    name String
    Name of the catalog item.
    numberOfItems Number
    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 vra Terraform Provider.
    vra logo
    vra 0.12.0 published on Monday, Apr 14, 2025 by vmware