vcd.CatalogAccessControl
Explore with Pulumi AI
Create CatalogAccessControl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CatalogAccessControl(name: string, args: CatalogAccessControlArgs, opts?: CustomResourceOptions);
@overload
def CatalogAccessControl(resource_name: str,
args: CatalogAccessControlArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CatalogAccessControl(resource_name: str,
opts: Optional[ResourceOptions] = None,
catalog_id: Optional[str] = None,
shared_with_everyone: Optional[bool] = None,
catalog_access_control_id: Optional[str] = None,
everyone_access_level: Optional[str] = None,
org: Optional[str] = None,
read_only_shared_with_all_orgs: Optional[bool] = None,
shared_withs: Optional[Sequence[CatalogAccessControlSharedWithArgs]] = None)
func NewCatalogAccessControl(ctx *Context, name string, args CatalogAccessControlArgs, opts ...ResourceOption) (*CatalogAccessControl, error)
public CatalogAccessControl(string name, CatalogAccessControlArgs args, CustomResourceOptions? opts = null)
public CatalogAccessControl(String name, CatalogAccessControlArgs args)
public CatalogAccessControl(String name, CatalogAccessControlArgs args, CustomResourceOptions options)
type: vcd:CatalogAccessControl
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 CatalogAccessControlArgs
- 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 CatalogAccessControlArgs
- 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 CatalogAccessControlArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CatalogAccessControlArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CatalogAccessControlArgs
- 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 catalogAccessControlResource = new Vcd.CatalogAccessControl("catalogAccessControlResource", new()
{
CatalogId = "string",
SharedWithEveryone = false,
CatalogAccessControlId = "string",
EveryoneAccessLevel = "string",
Org = "string",
ReadOnlySharedWithAllOrgs = false,
SharedWiths = new[]
{
new Vcd.Inputs.CatalogAccessControlSharedWithArgs
{
AccessLevel = "string",
GroupId = "string",
OrgId = "string",
SubjectName = "string",
UserId = "string",
},
},
});
example, err := vcd.NewCatalogAccessControl(ctx, "catalogAccessControlResource", &vcd.CatalogAccessControlArgs{
CatalogId: pulumi.String("string"),
SharedWithEveryone: pulumi.Bool(false),
CatalogAccessControlId: pulumi.String("string"),
EveryoneAccessLevel: pulumi.String("string"),
Org: pulumi.String("string"),
ReadOnlySharedWithAllOrgs: pulumi.Bool(false),
SharedWiths: vcd.CatalogAccessControlSharedWithArray{
&vcd.CatalogAccessControlSharedWithArgs{
AccessLevel: pulumi.String("string"),
GroupId: pulumi.String("string"),
OrgId: pulumi.String("string"),
SubjectName: pulumi.String("string"),
UserId: pulumi.String("string"),
},
},
})
var catalogAccessControlResource = new CatalogAccessControl("catalogAccessControlResource", CatalogAccessControlArgs.builder()
.catalogId("string")
.sharedWithEveryone(false)
.catalogAccessControlId("string")
.everyoneAccessLevel("string")
.org("string")
.readOnlySharedWithAllOrgs(false)
.sharedWiths(CatalogAccessControlSharedWithArgs.builder()
.accessLevel("string")
.groupId("string")
.orgId("string")
.subjectName("string")
.userId("string")
.build())
.build());
catalog_access_control_resource = vcd.CatalogAccessControl("catalogAccessControlResource",
catalog_id="string",
shared_with_everyone=False,
catalog_access_control_id="string",
everyone_access_level="string",
org="string",
read_only_shared_with_all_orgs=False,
shared_withs=[{
"access_level": "string",
"group_id": "string",
"org_id": "string",
"subject_name": "string",
"user_id": "string",
}])
const catalogAccessControlResource = new vcd.CatalogAccessControl("catalogAccessControlResource", {
catalogId: "string",
sharedWithEveryone: false,
catalogAccessControlId: "string",
everyoneAccessLevel: "string",
org: "string",
readOnlySharedWithAllOrgs: false,
sharedWiths: [{
accessLevel: "string",
groupId: "string",
orgId: "string",
subjectName: "string",
userId: "string",
}],
});
type: vcd:CatalogAccessControl
properties:
catalogAccessControlId: string
catalogId: string
everyoneAccessLevel: string
org: string
readOnlySharedWithAllOrgs: false
sharedWithEveryone: false
sharedWiths:
- accessLevel: string
groupId: string
orgId: string
subjectName: string
userId: string
CatalogAccessControl 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 CatalogAccessControl resource accepts the following input properties:
- Catalog
Id string - A unique identifier for the Catalog.
- bool
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - Catalog
Access stringControl Id - Everyone
Access stringLevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - Org string
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- bool
- If true, the catalog is shared as read-only with all organizations.
- List<Catalog
Access Control Shared With> - one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
- Catalog
Id string - A unique identifier for the Catalog.
- bool
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - Catalog
Access stringControl Id - Everyone
Access stringLevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - Org string
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- bool
- If true, the catalog is shared as read-only with all organizations.
- []Catalog
Access Control Shared With Args - one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
- catalog
Id String - A unique identifier for the Catalog.
- Boolean
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - catalog
Access StringControl Id - everyone
Access StringLevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - org String
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- Boolean
- If true, the catalog is shared as read-only with all organizations.
- List<Catalog
Access Control Shared With> - one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
- catalog
Id string - A unique identifier for the Catalog.
- boolean
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - catalog
Access stringControl Id - everyone
Access stringLevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - org string
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- boolean
- If true, the catalog is shared as read-only with all organizations.
- Catalog
Access Control Shared With[] - one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
- catalog_
id str - A unique identifier for the Catalog.
- bool
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - catalog_
access_ strcontrol_ id - everyone_
access_ strlevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - org str
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- bool
- If true, the catalog is shared as read-only with all organizations.
- Sequence[Catalog
Access Control Shared With Args] - one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
- catalog
Id String - A unique identifier for the Catalog.
- Boolean
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - catalog
Access StringControl Id - everyone
Access StringLevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - org String
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- Boolean
- If true, the catalog is shared as read-only with all organizations.
- List<Property Map>
- one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
Outputs
All input properties are implicitly available as output properties. Additionally, the CatalogAccessControl resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CatalogAccessControl Resource
Get an existing CatalogAccessControl 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?: CatalogAccessControlState, opts?: CustomResourceOptions): CatalogAccessControl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
catalog_access_control_id: Optional[str] = None,
catalog_id: Optional[str] = None,
everyone_access_level: Optional[str] = None,
org: Optional[str] = None,
read_only_shared_with_all_orgs: Optional[bool] = None,
shared_with_everyone: Optional[bool] = None,
shared_withs: Optional[Sequence[CatalogAccessControlSharedWithArgs]] = None) -> CatalogAccessControl
func GetCatalogAccessControl(ctx *Context, name string, id IDInput, state *CatalogAccessControlState, opts ...ResourceOption) (*CatalogAccessControl, error)
public static CatalogAccessControl Get(string name, Input<string> id, CatalogAccessControlState? state, CustomResourceOptions? opts = null)
public static CatalogAccessControl get(String name, Output<String> id, CatalogAccessControlState state, CustomResourceOptions options)
resources: _: type: vcd:CatalogAccessControl 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
Access stringControl Id - Catalog
Id string - A unique identifier for the Catalog.
- Everyone
Access stringLevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - Org string
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- bool
- If true, the catalog is shared as read-only with all organizations.
- bool
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - List<Catalog
Access Control Shared With> - one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
- Catalog
Access stringControl Id - Catalog
Id string - A unique identifier for the Catalog.
- Everyone
Access stringLevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - Org string
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- bool
- If true, the catalog is shared as read-only with all organizations.
- bool
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - []Catalog
Access Control Shared With Args - one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
- catalog
Access StringControl Id - catalog
Id String - A unique identifier for the Catalog.
- everyone
Access StringLevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - org String
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- Boolean
- If true, the catalog is shared as read-only with all organizations.
- Boolean
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - List<Catalog
Access Control Shared With> - one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
- catalog
Access stringControl Id - catalog
Id string - A unique identifier for the Catalog.
- everyone
Access stringLevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - org string
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- boolean
- If true, the catalog is shared as read-only with all organizations.
- boolean
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - Catalog
Access Control Shared With[] - one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
- catalog_
access_ strcontrol_ id - catalog_
id str - A unique identifier for the Catalog.
- everyone_
access_ strlevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - org str
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- bool
- If true, the catalog is shared as read-only with all organizations.
- bool
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - Sequence[Catalog
Access Control Shared With Args] - one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
- catalog
Access StringControl Id - catalog
Id String - A unique identifier for the Catalog.
- everyone
Access StringLevel - Access level when the Catalog is shared with everyone (it can only be set to
ReadOnly
). Required ifshared_with_everyone
is set. - org String
- The name of organization to which the Catalog belongs. Optional if defined at provider level.
- Boolean
- If true, the catalog is shared as read-only with all organizations.
- Boolean
- Whether the Catalog is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - List<Property Map>
- one or more blocks defining a subject (one of Organization, User, or Group) to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is true.
Supporting Types
CatalogAccessControlSharedWith, CatalogAccessControlSharedWithArgs
- Access
Level string - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
, but it can only beReadOnly
when we share to an Organization) - Group
Id string - The ID of a group with which we are sharing. Required if
user_id
ororg_id
is not set. - Org
Id string - The ID of a group with which we are sharing. Required if
user_id
orgroup_id
is not set. - Subject
Name string - the name of the subject (Org, group, or user) with which we are sharing.
- User
Id string - The ID of a user with which we are sharing. Required if
group_id
ororg_id
is not set.
- Access
Level string - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
, but it can only beReadOnly
when we share to an Organization) - Group
Id string - The ID of a group with which we are sharing. Required if
user_id
ororg_id
is not set. - Org
Id string - The ID of a group with which we are sharing. Required if
user_id
orgroup_id
is not set. - Subject
Name string - the name of the subject (Org, group, or user) with which we are sharing.
- User
Id string - The ID of a user with which we are sharing. Required if
group_id
ororg_id
is not set.
- access
Level String - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
, but it can only beReadOnly
when we share to an Organization) - group
Id String - The ID of a group with which we are sharing. Required if
user_id
ororg_id
is not set. - org
Id String - The ID of a group with which we are sharing. Required if
user_id
orgroup_id
is not set. - subject
Name String - the name of the subject (Org, group, or user) with which we are sharing.
- user
Id String - The ID of a user with which we are sharing. Required if
group_id
ororg_id
is not set.
- access
Level string - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
, but it can only beReadOnly
when we share to an Organization) - group
Id string - The ID of a group with which we are sharing. Required if
user_id
ororg_id
is not set. - org
Id string - The ID of a group with which we are sharing. Required if
user_id
orgroup_id
is not set. - subject
Name string - the name of the subject (Org, group, or user) with which we are sharing.
- user
Id string - The ID of a user with which we are sharing. Required if
group_id
ororg_id
is not set.
- access_
level str - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
, but it can only beReadOnly
when we share to an Organization) - group_
id str - The ID of a group with which we are sharing. Required if
user_id
ororg_id
is not set. - org_
id str - The ID of a group with which we are sharing. Required if
user_id
orgroup_id
is not set. - subject_
name str - the name of the subject (Org, group, or user) with which we are sharing.
- user_
id str - The ID of a user with which we are sharing. Required if
group_id
ororg_id
is not set.
- access
Level String - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
, but it can only beReadOnly
when we share to an Organization) - group
Id String - The ID of a group with which we are sharing. Required if
user_id
ororg_id
is not set. - org
Id String - The ID of a group with which we are sharing. Required if
user_id
orgroup_id
is not set. - subject
Name String - the name of the subject (Org, group, or user) with which we are sharing.
- user
Id String - The ID of a user with which we are sharing. Required if
group_id
ororg_id
is not set.
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.