vsphere.EntityPermissions
Explore with Pulumi AI
Create EntityPermissions Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EntityPermissions(name: string, args: EntityPermissionsArgs, opts?: CustomResourceOptions);
@overload
def EntityPermissions(resource_name: str,
args: EntityPermissionsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EntityPermissions(resource_name: str,
opts: Optional[ResourceOptions] = None,
entity_id: Optional[str] = None,
entity_type: Optional[str] = None,
permissions: Optional[Sequence[EntityPermissionsPermissionArgs]] = None)
func NewEntityPermissions(ctx *Context, name string, args EntityPermissionsArgs, opts ...ResourceOption) (*EntityPermissions, error)
public EntityPermissions(string name, EntityPermissionsArgs args, CustomResourceOptions? opts = null)
public EntityPermissions(String name, EntityPermissionsArgs args)
public EntityPermissions(String name, EntityPermissionsArgs args, CustomResourceOptions options)
type: vsphere:EntityPermissions
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 EntityPermissionsArgs
- 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 EntityPermissionsArgs
- 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 EntityPermissionsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EntityPermissionsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EntityPermissionsArgs
- 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 entityPermissionsResource = new VSphere.EntityPermissions("entityPermissionsResource", new()
{
EntityId = "string",
EntityType = "string",
Permissions = new[]
{
new VSphere.Inputs.EntityPermissionsPermissionArgs
{
IsGroup = false,
Propagate = false,
RoleId = "string",
UserOrGroup = "string",
},
},
});
example, err := vsphere.NewEntityPermissions(ctx, "entityPermissionsResource", &vsphere.EntityPermissionsArgs{
EntityId: pulumi.String("string"),
EntityType: pulumi.String("string"),
Permissions: vsphere.EntityPermissionsPermissionArray{
&vsphere.EntityPermissionsPermissionArgs{
IsGroup: pulumi.Bool(false),
Propagate: pulumi.Bool(false),
RoleId: pulumi.String("string"),
UserOrGroup: pulumi.String("string"),
},
},
})
var entityPermissionsResource = new EntityPermissions("entityPermissionsResource", EntityPermissionsArgs.builder()
.entityId("string")
.entityType("string")
.permissions(EntityPermissionsPermissionArgs.builder()
.isGroup(false)
.propagate(false)
.roleId("string")
.userOrGroup("string")
.build())
.build());
entity_permissions_resource = vsphere.EntityPermissions("entityPermissionsResource",
entity_id="string",
entity_type="string",
permissions=[{
"is_group": False,
"propagate": False,
"role_id": "string",
"user_or_group": "string",
}])
const entityPermissionsResource = new vsphere.EntityPermissions("entityPermissionsResource", {
entityId: "string",
entityType: "string",
permissions: [{
isGroup: false,
propagate: false,
roleId: "string",
userOrGroup: "string",
}],
});
type: vsphere:EntityPermissions
properties:
entityId: string
entityType: string
permissions:
- isGroup: false
propagate: false
roleId: string
userOrGroup: string
EntityPermissions 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 EntityPermissions resource accepts the following input properties:
- Entity
Id string - The managed object id (uuid for some entities) on which permissions are to be created.
- Entity
Type string - The managed object type, types can be found in the managed object type section here.
- Permissions
List<Pulumi.
VSphere. Inputs. Entity Permissions Permission> - The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
- Entity
Id string - The managed object id (uuid for some entities) on which permissions are to be created.
- Entity
Type string - The managed object type, types can be found in the managed object type section here.
- Permissions
[]Entity
Permissions Permission Args - The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
- entity
Id String - The managed object id (uuid for some entities) on which permissions are to be created.
- entity
Type String - The managed object type, types can be found in the managed object type section here.
- permissions
List<Entity
Permissions Permission> - The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
- entity
Id string - The managed object id (uuid for some entities) on which permissions are to be created.
- entity
Type string - The managed object type, types can be found in the managed object type section here.
- permissions
Entity
Permissions Permission[] - The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
- entity_
id str - The managed object id (uuid for some entities) on which permissions are to be created.
- entity_
type str - The managed object type, types can be found in the managed object type section here.
- permissions
Sequence[Entity
Permissions Permission Args] - The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
- entity
Id String - The managed object id (uuid for some entities) on which permissions are to be created.
- entity
Type String - The managed object type, types can be found in the managed object type section here.
- permissions List<Property Map>
- The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
Outputs
All input properties are implicitly available as output properties. Additionally, the EntityPermissions 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 EntityPermissions Resource
Get an existing EntityPermissions 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?: EntityPermissionsState, opts?: CustomResourceOptions): EntityPermissions
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
entity_id: Optional[str] = None,
entity_type: Optional[str] = None,
permissions: Optional[Sequence[EntityPermissionsPermissionArgs]] = None) -> EntityPermissions
func GetEntityPermissions(ctx *Context, name string, id IDInput, state *EntityPermissionsState, opts ...ResourceOption) (*EntityPermissions, error)
public static EntityPermissions Get(string name, Input<string> id, EntityPermissionsState? state, CustomResourceOptions? opts = null)
public static EntityPermissions get(String name, Output<String> id, EntityPermissionsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Entity
Id string - The managed object id (uuid for some entities) on which permissions are to be created.
- Entity
Type string - The managed object type, types can be found in the managed object type section here.
- Permissions
List<Pulumi.
VSphere. Inputs. Entity Permissions Permission> - The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
- Entity
Id string - The managed object id (uuid for some entities) on which permissions are to be created.
- Entity
Type string - The managed object type, types can be found in the managed object type section here.
- Permissions
[]Entity
Permissions Permission Args - The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
- entity
Id String - The managed object id (uuid for some entities) on which permissions are to be created.
- entity
Type String - The managed object type, types can be found in the managed object type section here.
- permissions
List<Entity
Permissions Permission> - The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
- entity
Id string - The managed object id (uuid for some entities) on which permissions are to be created.
- entity
Type string - The managed object type, types can be found in the managed object type section here.
- permissions
Entity
Permissions Permission[] - The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
- entity_
id str - The managed object id (uuid for some entities) on which permissions are to be created.
- entity_
type str - The managed object type, types can be found in the managed object type section here.
- permissions
Sequence[Entity
Permissions Permission Args] - The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
- entity
Id String - The managed object id (uuid for some entities) on which permissions are to be created.
- entity
Type String - The managed object type, types can be found in the managed object type section here.
- permissions List<Property Map>
- The permissions to be given on this entity. Keep
the permissions sorted alphabetically on
user_or_group
for a better user experience.
Supporting Types
EntityPermissionsPermission, EntityPermissionsPermissionArgs
- Is
Group bool - Whether
user_or_group
field refers to a user or a group. True for a group and false for a user. - Propagate bool
- Whether or not this permission propagates down the hierarchy to sub-entities.
- Role
Id string - The role id of the role to be given to the user on the specified entity.
- User
Or stringGroup - The user/group getting the permission.
- Is
Group bool - Whether
user_or_group
field refers to a user or a group. True for a group and false for a user. - Propagate bool
- Whether or not this permission propagates down the hierarchy to sub-entities.
- Role
Id string - The role id of the role to be given to the user on the specified entity.
- User
Or stringGroup - The user/group getting the permission.
- is
Group Boolean - Whether
user_or_group
field refers to a user or a group. True for a group and false for a user. - propagate Boolean
- Whether or not this permission propagates down the hierarchy to sub-entities.
- role
Id String - The role id of the role to be given to the user on the specified entity.
- user
Or StringGroup - The user/group getting the permission.
- is
Group boolean - Whether
user_or_group
field refers to a user or a group. True for a group and false for a user. - propagate boolean
- Whether or not this permission propagates down the hierarchy to sub-entities.
- role
Id string - The role id of the role to be given to the user on the specified entity.
- user
Or stringGroup - The user/group getting the permission.
- is_
group bool - Whether
user_or_group
field refers to a user or a group. True for a group and false for a user. - propagate bool
- Whether or not this permission propagates down the hierarchy to sub-entities.
- role_
id str - The role id of the role to be given to the user on the specified entity.
- user_
or_ strgroup - The user/group getting the permission.
- is
Group Boolean - Whether
user_or_group
field refers to a user or a group. True for a group and false for a user. - propagate Boolean
- Whether or not this permission propagates down the hierarchy to sub-entities.
- role
Id String - The role id of the role to be given to the user on the specified entity.
- user
Or StringGroup - The user/group getting the permission.
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.