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 vRealize 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}
Attribute Reference
definition
- Represents a catalog source that is linked to a project via an entitlement.description
- Description of the catalog source.icon_id
- Icon id of associated catalog source.id
- Id of the catalog source.name
- Name of the catalog source.number_of_items
- Number of items in the associated catalog source.source_name
- Catalog source name.source_type
- Catalog source type.type
- Content definition type.
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
- 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
- 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
- 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
- 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
- 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
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> - Id string
- The provider-assigned unique ID for this managed resource.
- Definitions
[]Catalog
Source Entitlement Definition - Id string
- The provider-assigned unique ID for this managed resource.
- definitions
List<Catalog
Source Entitlement Definition> - id String
- The provider-assigned unique ID for this managed resource.
- definitions
Catalog
Source Entitlement Definition[] - id string
- The provider-assigned unique ID for this managed resource.
- definitions
Sequence[Catalog
Source Entitlement Definition] - id str
- The provider-assigned unique ID for this managed resource.
- definitions List<Property Map>
- 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 - Catalog
Source stringId - The id of the catalog source to create the entitlement.
- Definitions
List<Catalog
Source Entitlement Definition> - Project
Id string - The id of the project this entity belongs to.
- Catalog
Source stringEntitlement Id - Catalog
Source stringId - The id of the catalog source to create the entitlement.
- Definitions
[]Catalog
Source Entitlement Definition Args - Project
Id string - The id of the project this entity belongs to.
- catalog
Source StringEntitlement Id - catalog
Source StringId - The id of the catalog source to create the entitlement.
- definitions
List<Catalog
Source Entitlement Definition> - project
Id String - The id of the project this entity belongs to.
- catalog
Source stringEntitlement Id - catalog
Source stringId - The id of the catalog source to create the entitlement.
- definitions
Catalog
Source Entitlement Definition[] - project
Id string - The id of the project this entity belongs to.
- catalog_
source_ strentitlement_ id - catalog_
source_ strid - The id of the catalog source to create the entitlement.
- definitions
Sequence[Catalog
Source Entitlement Definition Args] - project_
id str - The id of the project this entity belongs to.
- catalog
Source StringEntitlement Id - catalog
Source StringId - The id of the catalog source to create the entitlement.
- definitions List<Property Map>
- project
Id String - The id of the project this entity belongs to.
Supporting Types
CatalogSourceEntitlementDefinition, CatalogSourceEntitlementDefinitionArgs
- Description string
- Icon
Id string - Id string
- Name string
- Number
Of doubleItems - Source
Name string - Source
Type string - Type string
- Description string
- Icon
Id string - Id string
- Name string
- Number
Of float64Items - Source
Name string - Source
Type string - Type string
- description String
- icon
Id String - id String
- name String
- number
Of DoubleItems - source
Name String - source
Type String - type String
- description string
- icon
Id string - id string
- name string
- number
Of numberItems - source
Name string - source
Type string - type string
- description str
- icon_
id str - id str
- name str
- number_
of_ floatitems - source_
name str - source_
type str - type str
- description String
- icon
Id String - id String
- name String
- number
Of NumberItems - source
Name String - source
Type String - type String
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.