nutanix.AuthorizationPolicyV2
Explore with Pulumi AI
Provides Nutanix resource to create authorization policy.
Create AuthorizationPolicyV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuthorizationPolicyV2(name: string, args: AuthorizationPolicyV2Args, opts?: CustomResourceOptions);@overload
def AuthorizationPolicyV2(resource_name: str,
                          args: AuthorizationPolicyV2Args,
                          opts: Optional[ResourceOptions] = None)
@overload
def AuthorizationPolicyV2(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          display_name: Optional[str] = None,
                          entities: Optional[Sequence[AuthorizationPolicyV2EntityArgs]] = None,
                          identities: Optional[Sequence[AuthorizationPolicyV2IdentityArgs]] = None,
                          role: Optional[str] = None,
                          authorization_policy_type: Optional[str] = None,
                          description: Optional[str] = None,
                          ext_id: Optional[str] = None)func NewAuthorizationPolicyV2(ctx *Context, name string, args AuthorizationPolicyV2Args, opts ...ResourceOption) (*AuthorizationPolicyV2, error)public AuthorizationPolicyV2(string name, AuthorizationPolicyV2Args args, CustomResourceOptions? opts = null)
public AuthorizationPolicyV2(String name, AuthorizationPolicyV2Args args)
public AuthorizationPolicyV2(String name, AuthorizationPolicyV2Args args, CustomResourceOptions options)
type: nutanix:AuthorizationPolicyV2
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 AuthorizationPolicyV2Args
- 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 AuthorizationPolicyV2Args
- 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 AuthorizationPolicyV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthorizationPolicyV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuthorizationPolicyV2Args
- 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 authorizationPolicyV2Resource = new Nutanix.AuthorizationPolicyV2("authorizationPolicyV2Resource", new()
{
    DisplayName = "string",
    Entities = new[]
    {
        new Nutanix.Inputs.AuthorizationPolicyV2EntityArgs
        {
            Reserved = "string",
        },
    },
    Identities = new[]
    {
        new Nutanix.Inputs.AuthorizationPolicyV2IdentityArgs
        {
            Reserved = "string",
        },
    },
    Role = "string",
    AuthorizationPolicyType = "string",
    Description = "string",
    ExtId = "string",
});
example, err := nutanix.NewAuthorizationPolicyV2(ctx, "authorizationPolicyV2Resource", &nutanix.AuthorizationPolicyV2Args{
	DisplayName: pulumi.String("string"),
	Entities: nutanix.AuthorizationPolicyV2EntityArray{
		&nutanix.AuthorizationPolicyV2EntityArgs{
			Reserved: pulumi.String("string"),
		},
	},
	Identities: nutanix.AuthorizationPolicyV2IdentityArray{
		&nutanix.AuthorizationPolicyV2IdentityArgs{
			Reserved: pulumi.String("string"),
		},
	},
	Role:                    pulumi.String("string"),
	AuthorizationPolicyType: pulumi.String("string"),
	Description:             pulumi.String("string"),
	ExtId:                   pulumi.String("string"),
})
var authorizationPolicyV2Resource = new AuthorizationPolicyV2("authorizationPolicyV2Resource", AuthorizationPolicyV2Args.builder()
    .displayName("string")
    .entities(AuthorizationPolicyV2EntityArgs.builder()
        .reserved("string")
        .build())
    .identities(AuthorizationPolicyV2IdentityArgs.builder()
        .reserved("string")
        .build())
    .role("string")
    .authorizationPolicyType("string")
    .description("string")
    .extId("string")
    .build());
authorization_policy_v2_resource = nutanix.AuthorizationPolicyV2("authorizationPolicyV2Resource",
    display_name="string",
    entities=[{
        "reserved": "string",
    }],
    identities=[{
        "reserved": "string",
    }],
    role="string",
    authorization_policy_type="string",
    description="string",
    ext_id="string")
const authorizationPolicyV2Resource = new nutanix.AuthorizationPolicyV2("authorizationPolicyV2Resource", {
    displayName: "string",
    entities: [{
        reserved: "string",
    }],
    identities: [{
        reserved: "string",
    }],
    role: "string",
    authorizationPolicyType: "string",
    description: "string",
    extId: "string",
});
type: nutanix:AuthorizationPolicyV2
properties:
    authorizationPolicyType: string
    description: string
    displayName: string
    entities:
        - reserved: string
    extId: string
    identities:
        - reserved: string
    role: string
AuthorizationPolicyV2 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 AuthorizationPolicyV2 resource accepts the following input properties:
- DisplayName string
- Name of the Authorization Policy.
- Entities
List<PiersKarsenbarg. Nutanix. Inputs. Authorization Policy V2Entity> 
- The entities being qualified by the Authorization Policy.
- Identities
List<PiersKarsenbarg. Nutanix. Inputs. Authorization Policy V2Identity> 
- The identities for which the Authorization Policy is created.
- Role string
- The Role associated with the Authorization Policy.
- string
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- Description string
- Description of the Authorization Policy.
- ExtId string
- ext_id of Authorization policy.
- DisplayName string
- Name of the Authorization Policy.
- Entities
[]AuthorizationPolicy V2Entity Args 
- The entities being qualified by the Authorization Policy.
- Identities
[]AuthorizationPolicy V2Identity Args 
- The identities for which the Authorization Policy is created.
- Role string
- The Role associated with the Authorization Policy.
- string
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- Description string
- Description of the Authorization Policy.
- ExtId string
- ext_id of Authorization policy.
- displayName String
- Name of the Authorization Policy.
- entities
List<AuthorizationPolicy V2Entity> 
- The entities being qualified by the Authorization Policy.
- identities
List<AuthorizationPolicy V2Identity> 
- The identities for which the Authorization Policy is created.
- role String
- The Role associated with the Authorization Policy.
- String
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- description String
- Description of the Authorization Policy.
- extId String
- ext_id of Authorization policy.
- displayName string
- Name of the Authorization Policy.
- entities
AuthorizationPolicy V2Entity[] 
- The entities being qualified by the Authorization Policy.
- identities
AuthorizationPolicy V2Identity[] 
- The identities for which the Authorization Policy is created.
- role string
- The Role associated with the Authorization Policy.
- string
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- description string
- Description of the Authorization Policy.
- extId string
- ext_id of Authorization policy.
- display_name str
- Name of the Authorization Policy.
- entities
Sequence[AuthorizationPolicy V2Entity Args] 
- The entities being qualified by the Authorization Policy.
- identities
Sequence[AuthorizationPolicy V2Identity Args] 
- The identities for which the Authorization Policy is created.
- role str
- The Role associated with the Authorization Policy.
- str
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- description str
- Description of the Authorization Policy.
- ext_id str
- ext_id of Authorization policy.
- displayName String
- Name of the Authorization Policy.
- entities List<Property Map>
- The entities being qualified by the Authorization Policy.
- identities List<Property Map>
- The identities for which the Authorization Policy is created.
- role String
- The Role associated with the Authorization Policy.
- String
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- description String
- Description of the Authorization Policy.
- extId String
- ext_id of Authorization policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthorizationPolicyV2 resource produces the following output properties:
- ClientName string
- Client that created the entity.
- CreatedBy string
- User or Service Name that created the Authorization Policy.
- CreatedTime string
- The creation time of the Authorization Policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsSystem boolDefined 
- Flag identifying if the Authorization Policy is system defined or not.
- LastUpdated stringTime 
- The time when the Authorization Policy was last updated.
- ClientName string
- Client that created the entity.
- CreatedBy string
- User or Service Name that created the Authorization Policy.
- CreatedTime string
- The creation time of the Authorization Policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsSystem boolDefined 
- Flag identifying if the Authorization Policy is system defined or not.
- LastUpdated stringTime 
- The time when the Authorization Policy was last updated.
- clientName String
- Client that created the entity.
- createdBy String
- User or Service Name that created the Authorization Policy.
- createdTime String
- The creation time of the Authorization Policy.
- id String
- The provider-assigned unique ID for this managed resource.
- isSystem BooleanDefined 
- Flag identifying if the Authorization Policy is system defined or not.
- lastUpdated StringTime 
- The time when the Authorization Policy was last updated.
- clientName string
- Client that created the entity.
- createdBy string
- User or Service Name that created the Authorization Policy.
- createdTime string
- The creation time of the Authorization Policy.
- id string
- The provider-assigned unique ID for this managed resource.
- isSystem booleanDefined 
- Flag identifying if the Authorization Policy is system defined or not.
- lastUpdated stringTime 
- The time when the Authorization Policy was last updated.
- client_name str
- Client that created the entity.
- created_by str
- User or Service Name that created the Authorization Policy.
- created_time str
- The creation time of the Authorization Policy.
- id str
- The provider-assigned unique ID for this managed resource.
- is_system_ booldefined 
- Flag identifying if the Authorization Policy is system defined or not.
- last_updated_ strtime 
- The time when the Authorization Policy was last updated.
- clientName String
- Client that created the entity.
- createdBy String
- User or Service Name that created the Authorization Policy.
- createdTime String
- The creation time of the Authorization Policy.
- id String
- The provider-assigned unique ID for this managed resource.
- isSystem BooleanDefined 
- Flag identifying if the Authorization Policy is system defined or not.
- lastUpdated StringTime 
- The time when the Authorization Policy was last updated.
Look up Existing AuthorizationPolicyV2 Resource
Get an existing AuthorizationPolicyV2 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?: AuthorizationPolicyV2State, opts?: CustomResourceOptions): AuthorizationPolicyV2@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        authorization_policy_type: Optional[str] = None,
        client_name: Optional[str] = None,
        created_by: Optional[str] = None,
        created_time: Optional[str] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        entities: Optional[Sequence[AuthorizationPolicyV2EntityArgs]] = None,
        ext_id: Optional[str] = None,
        identities: Optional[Sequence[AuthorizationPolicyV2IdentityArgs]] = None,
        is_system_defined: Optional[bool] = None,
        last_updated_time: Optional[str] = None,
        role: Optional[str] = None) -> AuthorizationPolicyV2func GetAuthorizationPolicyV2(ctx *Context, name string, id IDInput, state *AuthorizationPolicyV2State, opts ...ResourceOption) (*AuthorizationPolicyV2, error)public static AuthorizationPolicyV2 Get(string name, Input<string> id, AuthorizationPolicyV2State? state, CustomResourceOptions? opts = null)public static AuthorizationPolicyV2 get(String name, Output<String> id, AuthorizationPolicyV2State state, CustomResourceOptions options)resources:  _:    type: nutanix:AuthorizationPolicyV2    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.
- string
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- ClientName string
- Client that created the entity.
- CreatedBy string
- User or Service Name that created the Authorization Policy.
- CreatedTime string
- The creation time of the Authorization Policy.
- Description string
- Description of the Authorization Policy.
- DisplayName string
- Name of the Authorization Policy.
- Entities
List<PiersKarsenbarg. Nutanix. Inputs. Authorization Policy V2Entity> 
- The entities being qualified by the Authorization Policy.
- ExtId string
- ext_id of Authorization policy.
- Identities
List<PiersKarsenbarg. Nutanix. Inputs. Authorization Policy V2Identity> 
- The identities for which the Authorization Policy is created.
- IsSystem boolDefined 
- Flag identifying if the Authorization Policy is system defined or not.
- LastUpdated stringTime 
- The time when the Authorization Policy was last updated.
- Role string
- The Role associated with the Authorization Policy.
- string
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- ClientName string
- Client that created the entity.
- CreatedBy string
- User or Service Name that created the Authorization Policy.
- CreatedTime string
- The creation time of the Authorization Policy.
- Description string
- Description of the Authorization Policy.
- DisplayName string
- Name of the Authorization Policy.
- Entities
[]AuthorizationPolicy V2Entity Args 
- The entities being qualified by the Authorization Policy.
- ExtId string
- ext_id of Authorization policy.
- Identities
[]AuthorizationPolicy V2Identity Args 
- The identities for which the Authorization Policy is created.
- IsSystem boolDefined 
- Flag identifying if the Authorization Policy is system defined or not.
- LastUpdated stringTime 
- The time when the Authorization Policy was last updated.
- Role string
- The Role associated with the Authorization Policy.
- String
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- clientName String
- Client that created the entity.
- createdBy String
- User or Service Name that created the Authorization Policy.
- createdTime String
- The creation time of the Authorization Policy.
- description String
- Description of the Authorization Policy.
- displayName String
- Name of the Authorization Policy.
- entities
List<AuthorizationPolicy V2Entity> 
- The entities being qualified by the Authorization Policy.
- extId String
- ext_id of Authorization policy.
- identities
List<AuthorizationPolicy V2Identity> 
- The identities for which the Authorization Policy is created.
- isSystem BooleanDefined 
- Flag identifying if the Authorization Policy is system defined or not.
- lastUpdated StringTime 
- The time when the Authorization Policy was last updated.
- role String
- The Role associated with the Authorization Policy.
- string
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- clientName string
- Client that created the entity.
- createdBy string
- User or Service Name that created the Authorization Policy.
- createdTime string
- The creation time of the Authorization Policy.
- description string
- Description of the Authorization Policy.
- displayName string
- Name of the Authorization Policy.
- entities
AuthorizationPolicy V2Entity[] 
- The entities being qualified by the Authorization Policy.
- extId string
- ext_id of Authorization policy.
- identities
AuthorizationPolicy V2Identity[] 
- The identities for which the Authorization Policy is created.
- isSystem booleanDefined 
- Flag identifying if the Authorization Policy is system defined or not.
- lastUpdated stringTime 
- The time when the Authorization Policy was last updated.
- role string
- The Role associated with the Authorization Policy.
- str
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- client_name str
- Client that created the entity.
- created_by str
- User or Service Name that created the Authorization Policy.
- created_time str
- The creation time of the Authorization Policy.
- description str
- Description of the Authorization Policy.
- display_name str
- Name of the Authorization Policy.
- entities
Sequence[AuthorizationPolicy V2Entity Args] 
- The entities being qualified by the Authorization Policy.
- ext_id str
- ext_id of Authorization policy.
- identities
Sequence[AuthorizationPolicy V2Identity Args] 
- The identities for which the Authorization Policy is created.
- is_system_ booldefined 
- Flag identifying if the Authorization Policy is system defined or not.
- last_updated_ strtime 
- The time when the Authorization Policy was last updated.
- role str
- The Role associated with the Authorization Policy.
- String
- Type of Authorization Policy.- PREDEFINED_READ_ONLY: System-defined read-only ACP, i.e. no modifications allowed.
- SERVICE_DEFINED_READ_ONLY: Read-only ACP defined by a service.
- PREDEFINED_UPDATE_IDENTITY_ONLY: System-defined ACP prohibiting any modifications from customer.
- SERVICE_DEFINED: ACP defined by a service.
- USER_DEFINED: ACP defined by an User.
 
- clientName String
- Client that created the entity.
- createdBy String
- User or Service Name that created the Authorization Policy.
- createdTime String
- The creation time of the Authorization Policy.
- description String
- Description of the Authorization Policy.
- displayName String
- Name of the Authorization Policy.
- entities List<Property Map>
- The entities being qualified by the Authorization Policy.
- extId String
- ext_id of Authorization policy.
- identities List<Property Map>
- The identities for which the Authorization Policy is created.
- isSystem BooleanDefined 
- Flag identifying if the Authorization Policy is system defined or not.
- lastUpdated StringTime 
- The time when the Authorization Policy was last updated.
- role String
- The Role associated with the Authorization Policy.
Supporting Types
AuthorizationPolicyV2Entity, AuthorizationPolicyV2EntityArgs      
- Reserved string
- Reserved string
- reserved String
- reserved string
- reserved str
- reserved String
AuthorizationPolicyV2Identity, AuthorizationPolicyV2IdentityArgs      
- Reserved string
- Reserved string
- reserved String
- reserved string
- reserved str
- reserved String
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the nutanixTerraform Provider.
