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

vra.getCatalogSourceEntitlement

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 source entitlement in vRA.

    Example Usage

    S

    This is an example of how to get a vRA catalog source entitlement by its id:

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = vra.getCatalogSourceEntitlement({
        id: _var.catalog_source_entitlement_id,
        projectId: _var.project_id,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_catalog_source_entitlement(id=var["catalog_source_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.LookupCatalogSourceEntitlement(ctx, &vra.LookupCatalogSourceEntitlementArgs{
    			Id:        pulumi.StringRef(_var.Catalog_source_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.GetCatalogSourceEntitlement.Invoke(new()
        {
            Id = @var.Catalog_source_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.GetCatalogSourceEntitlementArgs;
    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.getCatalogSourceEntitlement(GetCatalogSourceEntitlementArgs.builder()
                .id(var_.catalog_source_entitlement_id())
                .projectId(var_.project_id())
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getCatalogSourceEntitlement
          arguments:
            id: ${var.catalog_source_entitlement_id}
            projectId: ${var.project_id}
    

    This is an example of how to get a vRA catalog source entitlement by its catalog source id:

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = vra.getCatalogSourceEntitlement({
        catalogSourceId: _var.catalog_source_id,
        projectId: _var.project_id,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_catalog_source_entitlement(catalog_source_id=var["catalog_source_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.LookupCatalogSourceEntitlement(ctx, &vra.LookupCatalogSourceEntitlementArgs{
    			CatalogSourceId: pulumi.StringRef(_var.Catalog_source_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.GetCatalogSourceEntitlement.Invoke(new()
        {
            CatalogSourceId = @var.Catalog_source_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.GetCatalogSourceEntitlementArgs;
    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.getCatalogSourceEntitlement(GetCatalogSourceEntitlementArgs.builder()
                .catalogSourceId(var_.catalog_source_id())
                .projectId(var_.project_id())
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getCatalogSourceEntitlement
          arguments:
            catalogSourceId: ${var.catalog_source_id}
            projectId: ${var.project_id}
    

    Using getCatalogSourceEntitlement

    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 getCatalogSourceEntitlement(args: GetCatalogSourceEntitlementArgs, opts?: InvokeOptions): Promise<GetCatalogSourceEntitlementResult>
    function getCatalogSourceEntitlementOutput(args: GetCatalogSourceEntitlementOutputArgs, opts?: InvokeOptions): Output<GetCatalogSourceEntitlementResult>
    def get_catalog_source_entitlement(catalog_source_id: Optional[str] = None,
                                       id: Optional[str] = None,
                                       project_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetCatalogSourceEntitlementResult
    def get_catalog_source_entitlement_output(catalog_source_id: Optional[pulumi.Input[str]] = None,
                                       id: Optional[pulumi.Input[str]] = None,
                                       project_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetCatalogSourceEntitlementResult]
    func LookupCatalogSourceEntitlement(ctx *Context, args *LookupCatalogSourceEntitlementArgs, opts ...InvokeOption) (*LookupCatalogSourceEntitlementResult, error)
    func LookupCatalogSourceEntitlementOutput(ctx *Context, args *LookupCatalogSourceEntitlementOutputArgs, opts ...InvokeOption) LookupCatalogSourceEntitlementResultOutput

    > Note: This function is named LookupCatalogSourceEntitlement in the Go SDK.

    public static class GetCatalogSourceEntitlement 
    {
        public static Task<GetCatalogSourceEntitlementResult> InvokeAsync(GetCatalogSourceEntitlementArgs args, InvokeOptions? opts = null)
        public static Output<GetCatalogSourceEntitlementResult> Invoke(GetCatalogSourceEntitlementInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCatalogSourceEntitlementResult> getCatalogSourceEntitlement(GetCatalogSourceEntitlementArgs args, InvokeOptions options)
    public static Output<GetCatalogSourceEntitlementResult> getCatalogSourceEntitlement(GetCatalogSourceEntitlementArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vra:index/getCatalogSourceEntitlement:getCatalogSourceEntitlement
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    The id of the project that this entitlement belongs to.
    CatalogSourceId string
    The id of the catalog source to find the entitlement. One of catalog_source_id or id must be provided.
    Id string
    The id of entitlement. One of catalog_source_id or id must be provided.
    ProjectId string
    The id of the project that this entitlement belongs to.
    CatalogSourceId string
    The id of the catalog source to find the entitlement. One of catalog_source_id or id must be provided.
    Id string
    The id of entitlement. One of catalog_source_id or id must be provided.
    projectId String
    The id of the project that this entitlement belongs to.
    catalogSourceId String
    The id of the catalog source to find the entitlement. One of catalog_source_id or id must be provided.
    id String
    The id of entitlement. One of catalog_source_id or id must be provided.
    projectId string
    The id of the project that this entitlement belongs to.
    catalogSourceId string
    The id of the catalog source to find the entitlement. One of catalog_source_id or id must be provided.
    id string
    The id of entitlement. One of catalog_source_id or id must be provided.
    project_id str
    The id of the project that this entitlement belongs to.
    catalog_source_id str
    The id of the catalog source to find the entitlement. One of catalog_source_id or id must be provided.
    id str
    The id of entitlement. One of catalog_source_id or id must be provided.
    projectId String
    The id of the project that this entitlement belongs to.
    catalogSourceId String
    The id of the catalog source to find the entitlement. One of catalog_source_id or id must be provided.
    id String
    The id of entitlement. One of catalog_source_id or id must be provided.

    getCatalogSourceEntitlement Result

    The following output properties are available:

    Definitions List<GetCatalogSourceEntitlementDefinition>
    Represents a catalog source that is linked to a project via an entitlement.
    ProjectId string
    CatalogSourceId string
    Id string
    Id of the catalog source.
    Definitions []GetCatalogSourceEntitlementDefinition
    Represents a catalog source that is linked to a project via an entitlement.
    ProjectId string
    CatalogSourceId string
    Id string
    Id of the catalog source.
    definitions List<GetCatalogSourceEntitlementDefinition>
    Represents a catalog source that is linked to a project via an entitlement.
    projectId String
    catalogSourceId String
    id String
    Id of the catalog source.
    definitions GetCatalogSourceEntitlementDefinition[]
    Represents a catalog source that is linked to a project via an entitlement.
    projectId string
    catalogSourceId string
    id string
    Id of the catalog source.
    definitions Sequence[GetCatalogSourceEntitlementDefinition]
    Represents a catalog source that is linked to a project via an entitlement.
    project_id str
    catalog_source_id str
    id str
    Id of the catalog source.
    definitions List<Property Map>
    Represents a catalog source that is linked to a project via an entitlement.
    projectId String
    catalogSourceId String
    id String
    Id of the catalog source.

    Supporting Types

    GetCatalogSourceEntitlementDefinition

    Description string
    Description of the catalog source.
    IconId string
    Icon id of associated catalog source.
    Id string
    The id of entitlement. One of catalog_source_id or id must be provided.
    Name string
    Name of the catalog source.
    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 source.
    IconId string
    Icon id of associated catalog source.
    Id string
    The id of entitlement. One of catalog_source_id or id must be provided.
    Name string
    Name of the catalog source.
    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 source.
    iconId String
    Icon id of associated catalog source.
    id String
    The id of entitlement. One of catalog_source_id or id must be provided.
    name String
    Name of the catalog source.
    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 source.
    iconId string
    Icon id of associated catalog source.
    id string
    The id of entitlement. One of catalog_source_id or id must be provided.
    name string
    Name of the catalog source.
    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 source.
    icon_id str
    Icon id of associated catalog source.
    id str
    The id of entitlement. One of catalog_source_id or id must be provided.
    name str
    Name of the catalog source.
    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 source.
    iconId String
    Icon id of associated catalog source.
    id String
    The id of entitlement. One of catalog_source_id or id must be provided.
    name String
    Name of the catalog source.
    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