vcd.VappAccessControl
Explore with Pulumi AI
Create VappAccessControl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VappAccessControl(name: string, args: VappAccessControlArgs, opts?: CustomResourceOptions);
@overload
def VappAccessControl(resource_name: str,
args: VappAccessControlArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VappAccessControl(resource_name: str,
opts: Optional[ResourceOptions] = None,
shared_with_everyone: Optional[bool] = None,
vapp_id: Optional[str] = None,
everyone_access_level: Optional[str] = None,
org: Optional[str] = None,
shared_withs: Optional[Sequence[VappAccessControlSharedWithArgs]] = None,
vapp_access_control_id: Optional[str] = None,
vdc: Optional[str] = None)
func NewVappAccessControl(ctx *Context, name string, args VappAccessControlArgs, opts ...ResourceOption) (*VappAccessControl, error)
public VappAccessControl(string name, VappAccessControlArgs args, CustomResourceOptions? opts = null)
public VappAccessControl(String name, VappAccessControlArgs args)
public VappAccessControl(String name, VappAccessControlArgs args, CustomResourceOptions options)
type: vcd:VappAccessControl
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 VappAccessControlArgs
- 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 VappAccessControlArgs
- 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 VappAccessControlArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VappAccessControlArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VappAccessControlArgs
- 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 vappAccessControlResource = new Vcd.VappAccessControl("vappAccessControlResource", new()
{
SharedWithEveryone = false,
VappId = "string",
EveryoneAccessLevel = "string",
Org = "string",
SharedWiths = new[]
{
new Vcd.Inputs.VappAccessControlSharedWithArgs
{
AccessLevel = "string",
GroupId = "string",
SubjectName = "string",
UserId = "string",
},
},
VappAccessControlId = "string",
Vdc = "string",
});
example, err := vcd.NewVappAccessControl(ctx, "vappAccessControlResource", &vcd.VappAccessControlArgs{
SharedWithEveryone: pulumi.Bool(false),
VappId: pulumi.String("string"),
EveryoneAccessLevel: pulumi.String("string"),
Org: pulumi.String("string"),
SharedWiths: vcd.VappAccessControlSharedWithArray{
&vcd.VappAccessControlSharedWithArgs{
AccessLevel: pulumi.String("string"),
GroupId: pulumi.String("string"),
SubjectName: pulumi.String("string"),
UserId: pulumi.String("string"),
},
},
VappAccessControlId: pulumi.String("string"),
Vdc: pulumi.String("string"),
})
var vappAccessControlResource = new VappAccessControl("vappAccessControlResource", VappAccessControlArgs.builder()
.sharedWithEveryone(false)
.vappId("string")
.everyoneAccessLevel("string")
.org("string")
.sharedWiths(VappAccessControlSharedWithArgs.builder()
.accessLevel("string")
.groupId("string")
.subjectName("string")
.userId("string")
.build())
.vappAccessControlId("string")
.vdc("string")
.build());
vapp_access_control_resource = vcd.VappAccessControl("vappAccessControlResource",
shared_with_everyone=False,
vapp_id="string",
everyone_access_level="string",
org="string",
shared_withs=[{
"access_level": "string",
"group_id": "string",
"subject_name": "string",
"user_id": "string",
}],
vapp_access_control_id="string",
vdc="string")
const vappAccessControlResource = new vcd.VappAccessControl("vappAccessControlResource", {
sharedWithEveryone: false,
vappId: "string",
everyoneAccessLevel: "string",
org: "string",
sharedWiths: [{
accessLevel: "string",
groupId: "string",
subjectName: "string",
userId: "string",
}],
vappAccessControlId: "string",
vdc: "string",
});
type: vcd:VappAccessControl
properties:
everyoneAccessLevel: string
org: string
sharedWithEveryone: false
sharedWiths:
- accessLevel: string
groupId: string
subjectName: string
userId: string
vappAccessControlId: string
vappId: string
vdc: string
VappAccessControl 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 VappAccessControl resource accepts the following input properties:
- bool
- Whether the vApp is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - Vapp
Id string - A unique identifier for the vApp.
- Everyone
Access stringLevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - Org string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- List<Vapp
Access Control Shared With> - one or more blocks defining a subject to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - Vapp
Access stringControl Id - Vdc string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- bool
- Whether the vApp is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - Vapp
Id string - A unique identifier for the vApp.
- Everyone
Access stringLevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - Org string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- []Vapp
Access Control Shared With Args - one or more blocks defining a subject to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - Vapp
Access stringControl Id - Vdc string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- Boolean
- Whether the vApp is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - vapp
Id String - A unique identifier for the vApp.
- everyone
Access StringLevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - org String
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- List<Vapp
Access Control Shared With> - one or more blocks defining a subject to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - vapp
Access StringControl Id - vdc String
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- boolean
- Whether the vApp is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - vapp
Id string - A unique identifier for the vApp.
- everyone
Access stringLevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - org string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- Vapp
Access Control Shared With[] - one or more blocks defining a subject to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - vapp
Access stringControl Id - vdc string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- bool
- Whether the vApp is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - vapp_
id str - A unique identifier for the vApp.
- everyone_
access_ strlevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - org str
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- Sequence[Vapp
Access Control Shared With Args] - one or more blocks defining a subject to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - vapp_
access_ strcontrol_ id - vdc str
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- Boolean
- Whether the vApp is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - vapp
Id String - A unique identifier for the vApp.
- everyone
Access StringLevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - org String
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- List<Property Map>
- one or more blocks defining a subject to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - vapp
Access StringControl Id - vdc String
- The name of organization to which the vApp belongs. Optional if defined at provider level.
Outputs
All input properties are implicitly available as output properties. Additionally, the VappAccessControl 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 VappAccessControl Resource
Get an existing VappAccessControl 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?: VappAccessControlState, opts?: CustomResourceOptions): VappAccessControl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
everyone_access_level: Optional[str] = None,
org: Optional[str] = None,
shared_with_everyone: Optional[bool] = None,
shared_withs: Optional[Sequence[VappAccessControlSharedWithArgs]] = None,
vapp_access_control_id: Optional[str] = None,
vapp_id: Optional[str] = None,
vdc: Optional[str] = None) -> VappAccessControl
func GetVappAccessControl(ctx *Context, name string, id IDInput, state *VappAccessControlState, opts ...ResourceOption) (*VappAccessControl, error)
public static VappAccessControl Get(string name, Input<string> id, VappAccessControlState? state, CustomResourceOptions? opts = null)
public static VappAccessControl get(String name, Output<String> id, VappAccessControlState state, CustomResourceOptions options)
resources: _: type: vcd:VappAccessControl 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.
- Everyone
Access stringLevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - Org string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- bool
- Whether the vApp is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - List<Vapp
Access Control Shared With> - one or more blocks defining a subject to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - Vapp
Access stringControl Id - Vapp
Id string - A unique identifier for the vApp.
- Vdc string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- Everyone
Access stringLevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - Org string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- bool
- Whether the vApp is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - []Vapp
Access Control Shared With Args - one or more blocks defining a subject to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - Vapp
Access stringControl Id - Vapp
Id string - A unique identifier for the vApp.
- Vdc string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- everyone
Access StringLevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - org String
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- Boolean
- Whether the vApp is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - List<Vapp
Access Control Shared With> - one or more blocks defining a subject to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - vapp
Access StringControl Id - vapp
Id String - A unique identifier for the vApp.
- vdc String
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- everyone
Access stringLevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - org string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- boolean
- Whether the vApp is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - Vapp
Access Control Shared With[] - one or more blocks defining a subject to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - vapp
Access stringControl Id - vapp
Id string - A unique identifier for the vApp.
- vdc string
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- everyone_
access_ strlevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - org str
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- bool
- Whether the vApp is shared with everyone. If any
shared_with
blocks are included, this property must be set tofalse
. - Sequence[Vapp
Access Control Shared With Args] - one or more blocks defining a subject to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - vapp_
access_ strcontrol_ id - vapp_
id str - A unique identifier for the vApp.
- vdc str
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- everyone
Access StringLevel - Access level when the vApp is shared with everyone (one of
ReadOnly
,Change
,FullControl
). Required ifshared_with_everyone
istrue
. - org String
- The name of organization to which the vApp belongs. Optional if defined at provider level.
- Boolean
- Whether the vApp 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 to which we are sharing.
See shared_with below for detail. It cannot be used if
shared_with_everyone
is set. - vapp
Access StringControl Id - vapp
Id String - A unique identifier for the vApp.
- vdc String
- The name of organization to which the vApp belongs. Optional if defined at provider level.
Supporting Types
VappAccessControlSharedWith, VappAccessControlSharedWithArgs
- Access
Level string - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
) - Group
Id string - The ID of a group with which we are sharing. Required if
user_id
is not set. - Subject
Name string - the name of the subject (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
is not set.
- Access
Level string - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
) - Group
Id string - The ID of a group with which we are sharing. Required if
user_id
is not set. - Subject
Name string - the name of the subject (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
is not set.
- access
Level String - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
) - group
Id String - The ID of a group with which we are sharing. Required if
user_id
is not set. - subject
Name String - the name of the subject (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
is not set.
- access
Level string - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
) - group
Id string - The ID of a group with which we are sharing. Required if
user_id
is not set. - subject
Name string - the name of the subject (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
is not set.
- access_
level str - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
) - group_
id str - The ID of a group with which we are sharing. Required if
user_id
is not set. - subject_
name str - the name of the subject (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
is not set.
- access
Level String - The access level for the user or group to which we are sharing. (One of
ReadOnly
,Change
,FullControl
) - group
Id String - The ID of a group with which we are sharing. Required if
user_id
is not set. - subject
Name String - the name of the subject (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
is not set.
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.