vra.CatalogSourceEntitlement
Explore with Pulumi AI
Note: Deprecated - please use
vra.ContentSharingPolicy
instead.
This resource provides a way to create a catalog source entitlement in VMware Aria Automation.
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = new vra.CatalogSourceEntitlement("this", {
catalogSourceId: _var.catalog_source_blueprint_id,
projectId: _var.project_id,
});
import pulumi
import pulumi_vra as vra
this = vra.CatalogSourceEntitlement("this",
catalog_source_id=var["catalog_source_blueprint_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.NewCatalogSourceEntitlement(ctx, "this", &vra.CatalogSourceEntitlementArgs{
CatalogSourceId: pulumi.Any(_var.Catalog_source_blueprint_id),
ProjectId: pulumi.Any(_var.Project_id),
})
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 = new Vra.CatalogSourceEntitlement("this", new()
{
CatalogSourceId = @var.Catalog_source_blueprint_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.CatalogSourceEntitlement;
import com.pulumi.vra.CatalogSourceEntitlementArgs;
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) {
var this_ = new CatalogSourceEntitlement("this", CatalogSourceEntitlementArgs.builder()
.catalogSourceId(var_.catalog_source_blueprint_id())
.projectId(var_.project_id())
.build());
}
}
resources:
this:
type: vra:CatalogSourceEntitlement
properties:
catalogSourceId: ${var.catalog_source_blueprint_id}
projectId: ${var.project_id}
Create CatalogSourceEntitlement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CatalogSourceEntitlement(name: string, args: CatalogSourceEntitlementArgs, opts?: CustomResourceOptions);
@overload
def CatalogSourceEntitlement(resource_name: str,
args: CatalogSourceEntitlementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CatalogSourceEntitlement(resource_name: str,
opts: Optional[ResourceOptions] = None,
catalog_source_id: Optional[str] = None,
project_id: Optional[str] = None,
catalog_source_entitlement_id: Optional[str] = None)
func NewCatalogSourceEntitlement(ctx *Context, name string, args CatalogSourceEntitlementArgs, opts ...ResourceOption) (*CatalogSourceEntitlement, error)
public CatalogSourceEntitlement(string name, CatalogSourceEntitlementArgs args, CustomResourceOptions? opts = null)
public CatalogSourceEntitlement(String name, CatalogSourceEntitlementArgs args)
public CatalogSourceEntitlement(String name, CatalogSourceEntitlementArgs args, CustomResourceOptions options)
type: vra:CatalogSourceEntitlement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CatalogSourceEntitlementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CatalogSourceEntitlementArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CatalogSourceEntitlementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CatalogSourceEntitlementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CatalogSourceEntitlementArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var catalogSourceEntitlementResource = new Vra.CatalogSourceEntitlement("catalogSourceEntitlementResource", new()
{
CatalogSourceId = "string",
ProjectId = "string",
CatalogSourceEntitlementId = "string",
});
example, err := vra.NewCatalogSourceEntitlement(ctx, "catalogSourceEntitlementResource", &vra.CatalogSourceEntitlementArgs{
CatalogSourceId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
CatalogSourceEntitlementId: pulumi.String("string"),
})
var catalogSourceEntitlementResource = new CatalogSourceEntitlement("catalogSourceEntitlementResource", CatalogSourceEntitlementArgs.builder()
.catalogSourceId("string")
.projectId("string")
.catalogSourceEntitlementId("string")
.build());
catalog_source_entitlement_resource = vra.CatalogSourceEntitlement("catalogSourceEntitlementResource",
catalog_source_id="string",
project_id="string",
catalog_source_entitlement_id="string")
const catalogSourceEntitlementResource = new vra.CatalogSourceEntitlement("catalogSourceEntitlementResource", {
catalogSourceId: "string",
projectId: "string",
catalogSourceEntitlementId: "string",
});
type: vra:CatalogSourceEntitlement
properties:
catalogSourceEntitlementId: string
catalogSourceId: string
projectId: string
CatalogSourceEntitlement Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CatalogSourceEntitlement resource accepts the following input properties:
- Catalog
Source stringId - The id of the catalog source to create the entitlement.
- Project
Id string - The id of the project this entity belongs to.
- Catalog
Source stringEntitlement Id - Id of the catalog source.
- Catalog
Source stringId - The id of the catalog source to create the entitlement.
- Project
Id string - The id of the project this entity belongs to.
- Catalog
Source stringEntitlement Id - Id of the catalog source.
- catalog
Source StringId - The id of the catalog source to create the entitlement.
- project
Id String - The id of the project this entity belongs to.
- catalog
Source StringEntitlement Id - Id of the catalog source.
- catalog
Source stringId - The id of the catalog source to create the entitlement.
- project
Id string - The id of the project this entity belongs to.
- catalog
Source stringEntitlement Id - Id of the catalog source.
- catalog_
source_ strid - The id of the catalog source to create the entitlement.
- project_
id str - The id of the project this entity belongs to.
- catalog_
source_ strentitlement_ id - Id of the catalog source.
- catalog
Source StringId - The id of the catalog source to create the entitlement.
- project
Id String - The id of the project this entity belongs to.
- catalog
Source StringEntitlement Id - Id of the catalog source.
Outputs
All input properties are implicitly available as output properties. Additionally, the CatalogSourceEntitlement resource produces the following output properties:
- Definitions
List<Catalog
Source Entitlement Definition> - Represents a catalog source that is linked to a project via an entitlement.
- Id string
- The provider-assigned unique ID for this managed resource.
- Definitions
[]Catalog
Source Entitlement Definition - Represents a catalog source that is linked to a project via an entitlement.
- Id string
- The provider-assigned unique ID for this managed resource.
- definitions
List<Catalog
Source Entitlement Definition> - Represents a catalog source that is linked to a project via an entitlement.
- id String
- The provider-assigned unique ID for this managed resource.
- definitions
Catalog
Source Entitlement Definition[] - Represents a catalog source that is linked to a project via an entitlement.
- id string
- The provider-assigned unique ID for this managed resource.
- definitions
Sequence[Catalog
Source Entitlement Definition] - Represents a catalog source that is linked to a project via an entitlement.
- id str
- The provider-assigned unique ID for this managed resource.
- definitions List<Property Map>
- Represents a catalog source that is linked to a project via an entitlement.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CatalogSourceEntitlement Resource
Get an existing CatalogSourceEntitlement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CatalogSourceEntitlementState, opts?: CustomResourceOptions): CatalogSourceEntitlement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
catalog_source_entitlement_id: Optional[str] = None,
catalog_source_id: Optional[str] = None,
definitions: Optional[Sequence[CatalogSourceEntitlementDefinitionArgs]] = None,
project_id: Optional[str] = None) -> CatalogSourceEntitlement
func GetCatalogSourceEntitlement(ctx *Context, name string, id IDInput, state *CatalogSourceEntitlementState, opts ...ResourceOption) (*CatalogSourceEntitlement, error)
public static CatalogSourceEntitlement Get(string name, Input<string> id, CatalogSourceEntitlementState? state, CustomResourceOptions? opts = null)
public static CatalogSourceEntitlement get(String name, Output<String> id, CatalogSourceEntitlementState state, CustomResourceOptions options)
resources: _: type: vra:CatalogSourceEntitlement get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Catalog
Source stringEntitlement Id - Id of the catalog source.
- Catalog
Source stringId - The id of the catalog source to create the entitlement.
- Definitions
List<Catalog
Source Entitlement Definition> - Represents a catalog source that is linked to a project via an entitlement.
- Project
Id string - The id of the project this entity belongs to.
- Catalog
Source stringEntitlement Id - Id of the catalog source.
- Catalog
Source stringId - The id of the catalog source to create the entitlement.
- Definitions
[]Catalog
Source Entitlement Definition Args - Represents a catalog source that is linked to a project via an entitlement.
- Project
Id string - The id of the project this entity belongs to.
- catalog
Source StringEntitlement Id - Id of the catalog source.
- catalog
Source StringId - The id of the catalog source to create the entitlement.
- definitions
List<Catalog
Source Entitlement Definition> - Represents a catalog source that is linked to a project via an entitlement.
- project
Id String - The id of the project this entity belongs to.
- catalog
Source stringEntitlement Id - Id of the catalog source.
- catalog
Source stringId - The id of the catalog source to create the entitlement.
- definitions
Catalog
Source Entitlement Definition[] - Represents a catalog source that is linked to a project via an entitlement.
- project
Id string - The id of the project this entity belongs to.
- catalog_
source_ strentitlement_ id - Id of the catalog source.
- catalog_
source_ strid - The id of the catalog source to create the entitlement.
- definitions
Sequence[Catalog
Source Entitlement Definition Args] - Represents a catalog source that is linked to a project via an entitlement.
- project_
id str - The id of the project this entity belongs to.
- catalog
Source StringEntitlement Id - Id of the catalog source.
- catalog
Source StringId - The id of the catalog source to create the entitlement.
- definitions List<Property Map>
- Represents a catalog source that is linked to a project via an entitlement.
- project
Id String - The id of the project this entity belongs to.
Supporting Types
CatalogSourceEntitlementDefinition, CatalogSourceEntitlementDefinitionArgs
- Description string
- Description of the catalog source.
- Icon
Id string - Icon id of associated catalog source.
- Id string
- Id of the catalog source.
- Name string
- Name of the catalog source.
- Number
Of doubleItems - Number of items in the associated catalog source.
- Source
Name string - Catalog source name.
- Source
Type string - Catalog source type.
- Type string
- Content definition type.
- Description string
- Description of the catalog source.
- Icon
Id string - Icon id of associated catalog source.
- Id string
- Id of the catalog source.
- Name string
- Name of the catalog source.
- Number
Of float64Items - Number of items in the associated catalog source.
- Source
Name string - Catalog source name.
- Source
Type string - Catalog source type.
- Type string
- Content definition type.
- description String
- Description of the catalog source.
- icon
Id String - Icon id of associated catalog source.
- id String
- Id of the catalog source.
- name String
- Name of the catalog source.
- number
Of DoubleItems - Number of items in the associated catalog source.
- source
Name String - Catalog source name.
- source
Type String - Catalog source type.
- type String
- Content definition type.
- description string
- Description of the catalog source.
- icon
Id string - Icon id of associated catalog source.
- id string
- Id of the catalog source.
- name string
- Name of the catalog source.
- number
Of numberItems - Number of items in the associated catalog source.
- source
Name string - Catalog source name.
- source
Type 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
- Id of the catalog source.
- name str
- Name of the catalog source.
- 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 source.
- icon
Id String - Icon id of associated catalog source.
- id String
- Id of the catalog source.
- name String
- Name of the catalog source.
- number
Of NumberItems - Number of items in the associated catalog source.
- source
Name String - Catalog source name.
- source
Type String - Catalog source type.
- type String
- Content definition type.
Import
Catalog source entitlement can be imported using the id, e.g.
$ pulumi import vra:index/catalogSourceEntitlement:CatalogSourceEntitlement this 05956583-6488-4e7d-84c9-92a7b7219a15`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vra
Terraform Provider.