1. Packages
  2. Nutanix
  3. API Docs
  4. AccessControlPolicy
Nutanix v0.0.55 published on Monday, Jul 22, 2024 by Piers Karsenbarg

nutanix.AccessControlPolicy

Explore with Pulumi AI

nutanix logo
Nutanix v0.0.55 published on Monday, Jul 22, 2024 by Piers Karsenbarg

    Provides a resource to create an access control policy based on the input parameters.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.AccessControlPolicy;
    import com.pulumi.nutanix.AccessControlPolicyArgs;
    import com.pulumi.nutanix.inputs.AccessControlPolicyContextFilterListArgs;
    import com.pulumi.nutanix.inputs.AccessControlPolicyRoleReferenceArgs;
    import com.pulumi.nutanix.inputs.AccessControlPolicyUserReferenceListArgs;
    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 test = new AccessControlPolicy("test", AccessControlPolicyArgs.builder()
                .contextFilterLists(AccessControlPolicyContextFilterListArgs.builder()
                    .entityFilterExpressionLists(                
                        AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()
                            .leftHandSideEntityType("cluster")
                            .operator("IN")
                            .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()
                                .uuidList("00058ef8-c31c-f0bc-0000-000000007b23")
                                .build())
                            .build(),
                        AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()
                            .leftHandSideEntityType("image")
                            .operator("IN")
                            .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()
                                .collection("ALL")
                                .build())
                            .build(),
                        AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()
                            .leftHandSideEntityType("category")
                            .operator("IN")
                            .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()
                                .collection("ALL")
                                .build())
                            .build(),
                        AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()
                            .leftHandSideEntityType("marketplace_item")
                            .operator("IN")
                            .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()
                                .collection("SELF_OWNED")
                                .build())
                            .build(),
                        AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()
                            .leftHandSideEntityType("app_task")
                            .operator("IN")
                            .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()
                                .collection("SELF_OWNED")
                                .build())
                            .build(),
                        AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()
                            .leftHandSideEntityType("app_variable")
                            .operator("IN")
                            .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()
                                .collection("SELF_OWNED")
                                .build())
                            .build())
                    .build())
                .description("DESCRIPTION OF THE ACCESS CONTROL POLICY")
                .roleReference(AccessControlPolicyRoleReferenceArgs.builder()
                    .kind("role")
                    .uuid("UUID of role")
                    .build())
                .userReferenceLists(AccessControlPolicyUserReferenceListArgs.builder()
                    .name("admin")
                    .uuid("UUID of User existent")
                    .build())
                .build());
    
        }
    }
    
    resources:
      test:
        type: nutanix:AccessControlPolicy
        properties:
          contextFilterLists:
            - entityFilterExpressionLists:
                - leftHandSideEntityType: cluster
                  operator: IN
                  rightHandSide:
                    uuidList:
                      - 00058ef8-c31c-f0bc-0000-000000007b23
                - leftHandSideEntityType: image
                  operator: IN
                  rightHandSide:
                    collection: ALL
                - leftHandSideEntityType: category
                  operator: IN
                  rightHandSide:
                    collection: ALL
                - leftHandSideEntityType: marketplace_item
                  operator: IN
                  rightHandSide:
                    collection: SELF_OWNED
                - leftHandSideEntityType: app_task
                  operator: IN
                  rightHandSide:
                    collection: SELF_OWNED
                - leftHandSideEntityType: app_variable
                  operator: IN
                  rightHandSide:
                    collection: SELF_OWNED
          description: DESCRIPTION OF THE ACCESS CONTROL POLICY
          roleReference:
            kind: role
            uuid: UUID of role
          userReferenceLists:
            - name: admin
              uuid: UUID of User existent
    

    Create AccessControlPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccessControlPolicy(name: string, args: AccessControlPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def AccessControlPolicy(resource_name: str,
                            args: AccessControlPolicyArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccessControlPolicy(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            role_reference: Optional[AccessControlPolicyRoleReferenceArgs] = None,
                            categories: Optional[Sequence[AccessControlPolicyCategoryArgs]] = None,
                            context_filter_lists: Optional[Sequence[AccessControlPolicyContextFilterListArgs]] = None,
                            description: Optional[str] = None,
                            name: Optional[str] = None,
                            owner_reference: Optional[AccessControlPolicyOwnerReferenceArgs] = None,
                            user_group_reference_lists: Optional[Sequence[AccessControlPolicyUserGroupReferenceListArgs]] = None,
                            user_reference_lists: Optional[Sequence[AccessControlPolicyUserReferenceListArgs]] = None)
    func NewAccessControlPolicy(ctx *Context, name string, args AccessControlPolicyArgs, opts ...ResourceOption) (*AccessControlPolicy, error)
    public AccessControlPolicy(string name, AccessControlPolicyArgs args, CustomResourceOptions? opts = null)
    public AccessControlPolicy(String name, AccessControlPolicyArgs args)
    public AccessControlPolicy(String name, AccessControlPolicyArgs args, CustomResourceOptions options)
    
    type: nutanix:AccessControlPolicy
    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 AccessControlPolicyArgs
    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 AccessControlPolicyArgs
    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 AccessControlPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccessControlPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccessControlPolicyArgs
    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 accessControlPolicyResource = new Nutanix.AccessControlPolicy("accessControlPolicyResource", new()
    {
        RoleReference = new Nutanix.Inputs.AccessControlPolicyRoleReferenceArgs
        {
            Kind = "string",
            Uuid = "string",
            Name = "string",
        },
        Categories = new[]
        {
            new Nutanix.Inputs.AccessControlPolicyCategoryArgs
            {
                Name = "string",
                Value = "string",
            },
        },
        ContextFilterLists = new[]
        {
            new Nutanix.Inputs.AccessControlPolicyContextFilterListArgs
            {
                EntityFilterExpressionLists = new[]
                {
                    new Nutanix.Inputs.AccessControlPolicyContextFilterListEntityFilterExpressionListArgs
                    {
                        Operator = "string",
                        RightHandSide = new Nutanix.Inputs.AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs
                        {
                            Categories = new Nutanix.Inputs.AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategoriesArgs
                            {
                                Name = "string",
                                Values = new[]
                                {
                                    "string",
                                },
                            },
                            Collection = "string",
                            UuidLists = new[]
                            {
                                "string",
                            },
                        },
                        LeftHandSideEntityType = "string",
                    },
                },
                ScopeFilterExpressionLists = new[]
                {
                    new Nutanix.Inputs.AccessControlPolicyContextFilterListScopeFilterExpressionListArgs
                    {
                        LeftHandSide = "string",
                        Operator = "string",
                        RightHandSide = new Nutanix.Inputs.AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideArgs
                        {
                            Categories = new Nutanix.Inputs.AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategoriesArgs
                            {
                                Name = "string",
                                Values = new[]
                                {
                                    "string",
                                },
                            },
                            Collection = "string",
                            UuidLists = new[]
                            {
                                "string",
                            },
                        },
                    },
                },
            },
        },
        Description = "string",
        Name = "string",
        OwnerReference = new Nutanix.Inputs.AccessControlPolicyOwnerReferenceArgs
        {
            Kind = "string",
            Name = "string",
            Uuid = "string",
        },
        UserGroupReferenceLists = new[]
        {
            new Nutanix.Inputs.AccessControlPolicyUserGroupReferenceListArgs
            {
                Uuid = "string",
                Kind = "string",
                Name = "string",
            },
        },
        UserReferenceLists = new[]
        {
            new Nutanix.Inputs.AccessControlPolicyUserReferenceListArgs
            {
                Uuid = "string",
                Kind = "string",
                Name = "string",
            },
        },
    });
    
    example, err := nutanix.NewAccessControlPolicy(ctx, "accessControlPolicyResource", &nutanix.AccessControlPolicyArgs{
    	RoleReference: &nutanix.AccessControlPolicyRoleReferenceArgs{
    		Kind: pulumi.String("string"),
    		Uuid: pulumi.String("string"),
    		Name: pulumi.String("string"),
    	},
    	Categories: nutanix.AccessControlPolicyCategoryArray{
    		&nutanix.AccessControlPolicyCategoryArgs{
    			Name:  pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	ContextFilterLists: nutanix.AccessControlPolicyContextFilterListArray{
    		&nutanix.AccessControlPolicyContextFilterListArgs{
    			EntityFilterExpressionLists: nutanix.AccessControlPolicyContextFilterListEntityFilterExpressionListArray{
    				&nutanix.AccessControlPolicyContextFilterListEntityFilterExpressionListArgs{
    					Operator: pulumi.String("string"),
    					RightHandSide: &nutanix.AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs{
    						Categories: &nutanix.AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategoriesArgs{
    							Name: pulumi.String("string"),
    							Values: pulumi.StringArray{
    								pulumi.String("string"),
    							},
    						},
    						Collection: pulumi.String("string"),
    						UuidLists: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    					},
    					LeftHandSideEntityType: pulumi.String("string"),
    				},
    			},
    			ScopeFilterExpressionLists: nutanix.AccessControlPolicyContextFilterListScopeFilterExpressionListArray{
    				&nutanix.AccessControlPolicyContextFilterListScopeFilterExpressionListArgs{
    					LeftHandSide: pulumi.String("string"),
    					Operator:     pulumi.String("string"),
    					RightHandSide: &nutanix.AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideArgs{
    						Categories: &nutanix.AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategoriesArgs{
    							Name: pulumi.String("string"),
    							Values: pulumi.StringArray{
    								pulumi.String("string"),
    							},
    						},
    						Collection: pulumi.String("string"),
    						UuidLists: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    					},
    				},
    			},
    		},
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	OwnerReference: &nutanix.AccessControlPolicyOwnerReferenceArgs{
    		Kind: pulumi.String("string"),
    		Name: pulumi.String("string"),
    		Uuid: pulumi.String("string"),
    	},
    	UserGroupReferenceLists: nutanix.AccessControlPolicyUserGroupReferenceListArray{
    		&nutanix.AccessControlPolicyUserGroupReferenceListArgs{
    			Uuid: pulumi.String("string"),
    			Kind: pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    	},
    	UserReferenceLists: nutanix.AccessControlPolicyUserReferenceListArray{
    		&nutanix.AccessControlPolicyUserReferenceListArgs{
    			Uuid: pulumi.String("string"),
    			Kind: pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    	},
    })
    
    var accessControlPolicyResource = new AccessControlPolicy("accessControlPolicyResource", AccessControlPolicyArgs.builder()
        .roleReference(AccessControlPolicyRoleReferenceArgs.builder()
            .kind("string")
            .uuid("string")
            .name("string")
            .build())
        .categories(AccessControlPolicyCategoryArgs.builder()
            .name("string")
            .value("string")
            .build())
        .contextFilterLists(AccessControlPolicyContextFilterListArgs.builder()
            .entityFilterExpressionLists(AccessControlPolicyContextFilterListEntityFilterExpressionListArgs.builder()
                .operator("string")
                .rightHandSide(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs.builder()
                    .categories(AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategoriesArgs.builder()
                        .name("string")
                        .values("string")
                        .build())
                    .collection("string")
                    .uuidLists("string")
                    .build())
                .leftHandSideEntityType("string")
                .build())
            .scopeFilterExpressionLists(AccessControlPolicyContextFilterListScopeFilterExpressionListArgs.builder()
                .leftHandSide("string")
                .operator("string")
                .rightHandSide(AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideArgs.builder()
                    .categories(AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategoriesArgs.builder()
                        .name("string")
                        .values("string")
                        .build())
                    .collection("string")
                    .uuidLists("string")
                    .build())
                .build())
            .build())
        .description("string")
        .name("string")
        .ownerReference(AccessControlPolicyOwnerReferenceArgs.builder()
            .kind("string")
            .name("string")
            .uuid("string")
            .build())
        .userGroupReferenceLists(AccessControlPolicyUserGroupReferenceListArgs.builder()
            .uuid("string")
            .kind("string")
            .name("string")
            .build())
        .userReferenceLists(AccessControlPolicyUserReferenceListArgs.builder()
            .uuid("string")
            .kind("string")
            .name("string")
            .build())
        .build());
    
    access_control_policy_resource = nutanix.AccessControlPolicy("accessControlPolicyResource",
        role_reference=nutanix.AccessControlPolicyRoleReferenceArgs(
            kind="string",
            uuid="string",
            name="string",
        ),
        categories=[nutanix.AccessControlPolicyCategoryArgs(
            name="string",
            value="string",
        )],
        context_filter_lists=[nutanix.AccessControlPolicyContextFilterListArgs(
            entity_filter_expression_lists=[nutanix.AccessControlPolicyContextFilterListEntityFilterExpressionListArgs(
                operator="string",
                right_hand_side=nutanix.AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs(
                    categories=nutanix.AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategoriesArgs(
                        name="string",
                        values=["string"],
                    ),
                    collection="string",
                    uuid_lists=["string"],
                ),
                left_hand_side_entity_type="string",
            )],
            scope_filter_expression_lists=[nutanix.AccessControlPolicyContextFilterListScopeFilterExpressionListArgs(
                left_hand_side="string",
                operator="string",
                right_hand_side=nutanix.AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideArgs(
                    categories=nutanix.AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategoriesArgs(
                        name="string",
                        values=["string"],
                    ),
                    collection="string",
                    uuid_lists=["string"],
                ),
            )],
        )],
        description="string",
        name="string",
        owner_reference=nutanix.AccessControlPolicyOwnerReferenceArgs(
            kind="string",
            name="string",
            uuid="string",
        ),
        user_group_reference_lists=[nutanix.AccessControlPolicyUserGroupReferenceListArgs(
            uuid="string",
            kind="string",
            name="string",
        )],
        user_reference_lists=[nutanix.AccessControlPolicyUserReferenceListArgs(
            uuid="string",
            kind="string",
            name="string",
        )])
    
    const accessControlPolicyResource = new nutanix.AccessControlPolicy("accessControlPolicyResource", {
        roleReference: {
            kind: "string",
            uuid: "string",
            name: "string",
        },
        categories: [{
            name: "string",
            value: "string",
        }],
        contextFilterLists: [{
            entityFilterExpressionLists: [{
                operator: "string",
                rightHandSide: {
                    categories: {
                        name: "string",
                        values: ["string"],
                    },
                    collection: "string",
                    uuidLists: ["string"],
                },
                leftHandSideEntityType: "string",
            }],
            scopeFilterExpressionLists: [{
                leftHandSide: "string",
                operator: "string",
                rightHandSide: {
                    categories: {
                        name: "string",
                        values: ["string"],
                    },
                    collection: "string",
                    uuidLists: ["string"],
                },
            }],
        }],
        description: "string",
        name: "string",
        ownerReference: {
            kind: "string",
            name: "string",
            uuid: "string",
        },
        userGroupReferenceLists: [{
            uuid: "string",
            kind: "string",
            name: "string",
        }],
        userReferenceLists: [{
            uuid: "string",
            kind: "string",
            name: "string",
        }],
    });
    
    type: nutanix:AccessControlPolicy
    properties:
        categories:
            - name: string
              value: string
        contextFilterLists:
            - entityFilterExpressionLists:
                - leftHandSideEntityType: string
                  operator: string
                  rightHandSide:
                    categories:
                        name: string
                        values:
                            - string
                    collection: string
                    uuidLists:
                        - string
              scopeFilterExpressionLists:
                - leftHandSide: string
                  operator: string
                  rightHandSide:
                    categories:
                        name: string
                        values:
                            - string
                    collection: string
                    uuidLists:
                        - string
        description: string
        name: string
        ownerReference:
            kind: string
            name: string
            uuid: string
        roleReference:
            kind: string
            name: string
            uuid: string
        userGroupReferenceLists:
            - kind: string
              name: string
              uuid: string
        userReferenceLists:
            - kind: string
              name: string
              uuid: string
    

    AccessControlPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AccessControlPolicy resource accepts the following input properties:

    RoleReference PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyRoleReference
    • (Required) The reference to a role.
    Categories List<PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyCategory>
    • (Optional) Categories for the Access Control Policy.
    ContextFilterLists List<PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyContextFilterList>
    Description string
    • (Optional) The description of Access Control Policy.
    Name string
    • (Optional) Name of the Access Control Policy.
    OwnerReference PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyOwnerReference
    • (Optional) The reference to a user.
    UserGroupReferenceLists List<PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyUserGroupReferenceList>
    • (Optional) The User group(s) being assigned a given role.
    UserReferenceLists List<PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyUserReferenceList>
    • (Optional) The User(s) being assigned a given role.
    RoleReference AccessControlPolicyRoleReferenceArgs
    • (Required) The reference to a role.
    Categories []AccessControlPolicyCategoryArgs
    • (Optional) Categories for the Access Control Policy.
    ContextFilterLists []AccessControlPolicyContextFilterListArgs
    Description string
    • (Optional) The description of Access Control Policy.
    Name string
    • (Optional) Name of the Access Control Policy.
    OwnerReference AccessControlPolicyOwnerReferenceArgs
    • (Optional) The reference to a user.
    UserGroupReferenceLists []AccessControlPolicyUserGroupReferenceListArgs
    • (Optional) The User group(s) being assigned a given role.
    UserReferenceLists []AccessControlPolicyUserReferenceListArgs
    • (Optional) The User(s) being assigned a given role.
    roleReference AccessControlPolicyRoleReference
    • (Required) The reference to a role.
    categories List<AccessControlPolicyCategory>
    • (Optional) Categories for the Access Control Policy.
    contextFilterLists List<AccessControlPolicyContextFilterList>
    description String
    • (Optional) The description of Access Control Policy.
    name String
    • (Optional) Name of the Access Control Policy.
    ownerReference AccessControlPolicyOwnerReference
    • (Optional) The reference to a user.
    userGroupReferenceLists List<AccessControlPolicyUserGroupReferenceList>
    • (Optional) The User group(s) being assigned a given role.
    userReferenceLists List<AccessControlPolicyUserReferenceList>
    • (Optional) The User(s) being assigned a given role.
    roleReference AccessControlPolicyRoleReference
    • (Required) The reference to a role.
    categories AccessControlPolicyCategory[]
    • (Optional) Categories for the Access Control Policy.
    contextFilterLists AccessControlPolicyContextFilterList[]
    description string
    • (Optional) The description of Access Control Policy.
    name string
    • (Optional) Name of the Access Control Policy.
    ownerReference AccessControlPolicyOwnerReference
    • (Optional) The reference to a user.
    userGroupReferenceLists AccessControlPolicyUserGroupReferenceList[]
    • (Optional) The User group(s) being assigned a given role.
    userReferenceLists AccessControlPolicyUserReferenceList[]
    • (Optional) The User(s) being assigned a given role.
    role_reference AccessControlPolicyRoleReferenceArgs
    • (Required) The reference to a role.
    categories Sequence[AccessControlPolicyCategoryArgs]
    • (Optional) Categories for the Access Control Policy.
    context_filter_lists Sequence[AccessControlPolicyContextFilterListArgs]
    description str
    • (Optional) The description of Access Control Policy.
    name str
    • (Optional) Name of the Access Control Policy.
    owner_reference AccessControlPolicyOwnerReferenceArgs
    • (Optional) The reference to a user.
    user_group_reference_lists Sequence[AccessControlPolicyUserGroupReferenceListArgs]
    • (Optional) The User group(s) being assigned a given role.
    user_reference_lists Sequence[AccessControlPolicyUserReferenceListArgs]
    • (Optional) The User(s) being assigned a given role.
    roleReference Property Map
    • (Required) The reference to a role.
    categories List<Property Map>
    • (Optional) Categories for the Access Control Policy.
    contextFilterLists List<Property Map>
    description String
    • (Optional) The description of Access Control Policy.
    name String
    • (Optional) Name of the Access Control Policy.
    ownerReference Property Map
    • (Optional) The reference to a user.
    userGroupReferenceLists List<Property Map>
    • (Optional) The User group(s) being assigned a given role.
    userReferenceLists List<Property Map>
    • (Optional) The User(s) being assigned a given role.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccessControlPolicy resource produces the following output properties:

    ApiVersion string
    The version of the API.
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata Dictionary<string, string>
    • The Access Control Policy kind metadata.
    State string
    • The state of the Access Control Policy.
    ApiVersion string
    The version of the API.
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata map[string]string
    • The Access Control Policy kind metadata.
    State string
    • The state of the Access Control Policy.
    apiVersion String
    The version of the API.
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Map<String,String>
    • The Access Control Policy kind metadata.
    state String
    • The state of the Access Control Policy.
    apiVersion string
    The version of the API.
    id string
    The provider-assigned unique ID for this managed resource.
    metadata {[key: string]: string}
    • The Access Control Policy kind metadata.
    state string
    • The state of the Access Control Policy.
    api_version str
    The version of the API.
    id str
    The provider-assigned unique ID for this managed resource.
    metadata Mapping[str, str]
    • The Access Control Policy kind metadata.
    state str
    • The state of the Access Control Policy.
    apiVersion String
    The version of the API.
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Map<String>
    • The Access Control Policy kind metadata.
    state String
    • The state of the Access Control Policy.

    Look up Existing AccessControlPolicy Resource

    Get an existing AccessControlPolicy 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?: AccessControlPolicyState, opts?: CustomResourceOptions): AccessControlPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_version: Optional[str] = None,
            categories: Optional[Sequence[AccessControlPolicyCategoryArgs]] = None,
            context_filter_lists: Optional[Sequence[AccessControlPolicyContextFilterListArgs]] = None,
            description: Optional[str] = None,
            metadata: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            owner_reference: Optional[AccessControlPolicyOwnerReferenceArgs] = None,
            role_reference: Optional[AccessControlPolicyRoleReferenceArgs] = None,
            state: Optional[str] = None,
            user_group_reference_lists: Optional[Sequence[AccessControlPolicyUserGroupReferenceListArgs]] = None,
            user_reference_lists: Optional[Sequence[AccessControlPolicyUserReferenceListArgs]] = None) -> AccessControlPolicy
    func GetAccessControlPolicy(ctx *Context, name string, id IDInput, state *AccessControlPolicyState, opts ...ResourceOption) (*AccessControlPolicy, error)
    public static AccessControlPolicy Get(string name, Input<string> id, AccessControlPolicyState? state, CustomResourceOptions? opts = null)
    public static AccessControlPolicy get(String name, Output<String> id, AccessControlPolicyState 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.
    The following state arguments are supported:
    ApiVersion string
    The version of the API.
    Categories List<PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyCategory>
    • (Optional) Categories for the Access Control Policy.
    ContextFilterLists List<PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyContextFilterList>
    Description string
    • (Optional) The description of Access Control Policy.
    Metadata Dictionary<string, string>
    • The Access Control Policy kind metadata.
    Name string
    • (Optional) Name of the Access Control Policy.
    OwnerReference PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyOwnerReference
    • (Optional) The reference to a user.
    RoleReference PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyRoleReference
    • (Required) The reference to a role.
    State string
    • The state of the Access Control Policy.
    UserGroupReferenceLists List<PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyUserGroupReferenceList>
    • (Optional) The User group(s) being assigned a given role.
    UserReferenceLists List<PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyUserReferenceList>
    • (Optional) The User(s) being assigned a given role.
    ApiVersion string
    The version of the API.
    Categories []AccessControlPolicyCategoryArgs
    • (Optional) Categories for the Access Control Policy.
    ContextFilterLists []AccessControlPolicyContextFilterListArgs
    Description string
    • (Optional) The description of Access Control Policy.
    Metadata map[string]string
    • The Access Control Policy kind metadata.
    Name string
    • (Optional) Name of the Access Control Policy.
    OwnerReference AccessControlPolicyOwnerReferenceArgs
    • (Optional) The reference to a user.
    RoleReference AccessControlPolicyRoleReferenceArgs
    • (Required) The reference to a role.
    State string
    • The state of the Access Control Policy.
    UserGroupReferenceLists []AccessControlPolicyUserGroupReferenceListArgs
    • (Optional) The User group(s) being assigned a given role.
    UserReferenceLists []AccessControlPolicyUserReferenceListArgs
    • (Optional) The User(s) being assigned a given role.
    apiVersion String
    The version of the API.
    categories List<AccessControlPolicyCategory>
    • (Optional) Categories for the Access Control Policy.
    contextFilterLists List<AccessControlPolicyContextFilterList>
    description String
    • (Optional) The description of Access Control Policy.
    metadata Map<String,String>
    • The Access Control Policy kind metadata.
    name String
    • (Optional) Name of the Access Control Policy.
    ownerReference AccessControlPolicyOwnerReference
    • (Optional) The reference to a user.
    roleReference AccessControlPolicyRoleReference
    • (Required) The reference to a role.
    state String
    • The state of the Access Control Policy.
    userGroupReferenceLists List<AccessControlPolicyUserGroupReferenceList>
    • (Optional) The User group(s) being assigned a given role.
    userReferenceLists List<AccessControlPolicyUserReferenceList>
    • (Optional) The User(s) being assigned a given role.
    apiVersion string
    The version of the API.
    categories AccessControlPolicyCategory[]
    • (Optional) Categories for the Access Control Policy.
    contextFilterLists AccessControlPolicyContextFilterList[]
    description string
    • (Optional) The description of Access Control Policy.
    metadata {[key: string]: string}
    • The Access Control Policy kind metadata.
    name string
    • (Optional) Name of the Access Control Policy.
    ownerReference AccessControlPolicyOwnerReference
    • (Optional) The reference to a user.
    roleReference AccessControlPolicyRoleReference
    • (Required) The reference to a role.
    state string
    • The state of the Access Control Policy.
    userGroupReferenceLists AccessControlPolicyUserGroupReferenceList[]
    • (Optional) The User group(s) being assigned a given role.
    userReferenceLists AccessControlPolicyUserReferenceList[]
    • (Optional) The User(s) being assigned a given role.
    api_version str
    The version of the API.
    categories Sequence[AccessControlPolicyCategoryArgs]
    • (Optional) Categories for the Access Control Policy.
    context_filter_lists Sequence[AccessControlPolicyContextFilterListArgs]
    description str
    • (Optional) The description of Access Control Policy.
    metadata Mapping[str, str]
    • The Access Control Policy kind metadata.
    name str
    • (Optional) Name of the Access Control Policy.
    owner_reference AccessControlPolicyOwnerReferenceArgs
    • (Optional) The reference to a user.
    role_reference AccessControlPolicyRoleReferenceArgs
    • (Required) The reference to a role.
    state str
    • The state of the Access Control Policy.
    user_group_reference_lists Sequence[AccessControlPolicyUserGroupReferenceListArgs]
    • (Optional) The User group(s) being assigned a given role.
    user_reference_lists Sequence[AccessControlPolicyUserReferenceListArgs]
    • (Optional) The User(s) being assigned a given role.
    apiVersion String
    The version of the API.
    categories List<Property Map>
    • (Optional) Categories for the Access Control Policy.
    contextFilterLists List<Property Map>
    description String
    • (Optional) The description of Access Control Policy.
    metadata Map<String>
    • The Access Control Policy kind metadata.
    name String
    • (Optional) Name of the Access Control Policy.
    ownerReference Property Map
    • (Optional) The reference to a user.
    roleReference Property Map
    • (Required) The reference to a role.
    state String
    • The state of the Access Control Policy.
    userGroupReferenceLists List<Property Map>
    • (Optional) The User group(s) being assigned a given role.
    userReferenceLists List<Property Map>
    • (Optional) The User(s) being assigned a given role.

    Supporting Types

    AccessControlPolicyCategory, AccessControlPolicyCategoryArgs

    Name string
    • (Optional) Name of the Access Control Policy.
    Value string
    • value of the key.
    Name string
    • (Optional) Name of the Access Control Policy.
    Value string
    • value of the key.
    name String
    • (Optional) Name of the Access Control Policy.
    value String
    • value of the key.
    name string
    • (Optional) Name of the Access Control Policy.
    value string
    • value of the key.
    name str
    • (Optional) Name of the Access Control Policy.
    value str
    • value of the key.
    name String
    • (Optional) Name of the Access Control Policy.
    value String
    • value of the key.

    AccessControlPolicyContextFilterList, AccessControlPolicyContextFilterListArgs

    entityFilterExpressionLists List<Property Map>
    A list of Entity filter expressions.
    scopeFilterExpressionLists List<Property Map>
    • (Optional) Filter the scope of an Access Control Policy.

    AccessControlPolicyContextFilterListEntityFilterExpressionList, AccessControlPolicyContextFilterListEntityFilterExpressionListArgs

    Operator string
    • (Required) The operator in the filter expression.
    RightHandSide PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSide
    • (Required) The right hand side (RHS) of an scope expression.
    LeftHandSideEntityType string
    • (Optional) The LHS of the filter expression - the entity type.
    Operator string
    • (Required) The operator in the filter expression.
    RightHandSide AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSide
    • (Required) The right hand side (RHS) of an scope expression.
    LeftHandSideEntityType string
    • (Optional) The LHS of the filter expression - the entity type.
    operator String
    • (Required) The operator in the filter expression.
    rightHandSide AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSide
    • (Required) The right hand side (RHS) of an scope expression.
    leftHandSideEntityType String
    • (Optional) The LHS of the filter expression - the entity type.
    operator string
    • (Required) The operator in the filter expression.
    rightHandSide AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSide
    • (Required) The right hand side (RHS) of an scope expression.
    leftHandSideEntityType string
    • (Optional) The LHS of the filter expression - the entity type.
    operator str
    • (Required) The operator in the filter expression.
    right_hand_side AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSide
    • (Required) The right hand side (RHS) of an scope expression.
    left_hand_side_entity_type str
    • (Optional) The LHS of the filter expression - the entity type.
    operator String
    • (Required) The operator in the filter expression.
    rightHandSide Property Map
    • (Required) The right hand side (RHS) of an scope expression.
    leftHandSideEntityType String
    • (Optional) The LHS of the filter expression - the entity type.

    AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSide, AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs

    Categories PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategories
    • (Optional) The category values represented as a dictionary of key > list of values.
    Collection string
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    UuidLists List<string>
    • (Optional) The explicit list of UUIDs for the given kind.
    Categories AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategories
    • (Optional) The category values represented as a dictionary of key > list of values.
    Collection string
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    UuidLists []string
    • (Optional) The explicit list of UUIDs for the given kind.
    categories AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategories
    • (Optional) The category values represented as a dictionary of key > list of values.
    collection String
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    uuidLists List<String>
    • (Optional) The explicit list of UUIDs for the given kind.
    categories AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategories
    • (Optional) The category values represented as a dictionary of key > list of values.
    collection string
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    uuidLists string[]
    • (Optional) The explicit list of UUIDs for the given kind.
    categories AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategories
    • (Optional) The category values represented as a dictionary of key > list of values.
    collection str
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    uuid_lists Sequence[str]
    • (Optional) The explicit list of UUIDs for the given kind.
    categories Property Map
    • (Optional) The category values represented as a dictionary of key > list of values.
    collection String
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    uuidLists List<String>
    • (Optional) The explicit list of UUIDs for the given kind.

    AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategories, AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategoriesArgs

    Name string
    • (Optional) Name of the Access Control Policy.
    Values List<string>
    • value of the key.
    Name string
    • (Optional) Name of the Access Control Policy.
    Values []string
    • value of the key.
    name String
    • (Optional) Name of the Access Control Policy.
    values List<String>
    • value of the key.
    name string
    • (Optional) Name of the Access Control Policy.
    values string[]
    • value of the key.
    name str
    • (Optional) Name of the Access Control Policy.
    values Sequence[str]
    • value of the key.
    name String
    • (Optional) Name of the Access Control Policy.
    values List<String>
    • value of the key.

    AccessControlPolicyContextFilterListScopeFilterExpressionList, AccessControlPolicyContextFilterListScopeFilterExpressionListArgs

    LeftHandSide string
    • (Optional) The LHS of the filter expression - the scope type.
    Operator string
    • (Required) The operator of the filter expression.
    RightHandSide PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSide
    • (Required) The right hand side (RHS) of an scope expression.
    LeftHandSide string
    • (Optional) The LHS of the filter expression - the scope type.
    Operator string
    • (Required) The operator of the filter expression.
    RightHandSide AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSide
    • (Required) The right hand side (RHS) of an scope expression.
    leftHandSide String
    • (Optional) The LHS of the filter expression - the scope type.
    operator String
    • (Required) The operator of the filter expression.
    rightHandSide AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSide
    • (Required) The right hand side (RHS) of an scope expression.
    leftHandSide string
    • (Optional) The LHS of the filter expression - the scope type.
    operator string
    • (Required) The operator of the filter expression.
    rightHandSide AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSide
    • (Required) The right hand side (RHS) of an scope expression.
    left_hand_side str
    • (Optional) The LHS of the filter expression - the scope type.
    operator str
    • (Required) The operator of the filter expression.
    right_hand_side AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSide
    • (Required) The right hand side (RHS) of an scope expression.
    leftHandSide String
    • (Optional) The LHS of the filter expression - the scope type.
    operator String
    • (Required) The operator of the filter expression.
    rightHandSide Property Map
    • (Required) The right hand side (RHS) of an scope expression.

    AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSide, AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideArgs

    Categories PiersKarsenbarg.Nutanix.Inputs.AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategories
    • (Optional) The category values represented as a dictionary of key > list of values.
    Collection string
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    UuidLists List<string>
    • (Optional) The explicit list of UUIDs for the given kind.
    Categories AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategories
    • (Optional) The category values represented as a dictionary of key > list of values.
    Collection string
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    UuidLists []string
    • (Optional) The explicit list of UUIDs for the given kind.
    categories AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategories
    • (Optional) The category values represented as a dictionary of key > list of values.
    collection String
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    uuidLists List<String>
    • (Optional) The explicit list of UUIDs for the given kind.
    categories AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategories
    • (Optional) The category values represented as a dictionary of key > list of values.
    collection string
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    uuidLists string[]
    • (Optional) The explicit list of UUIDs for the given kind.
    categories AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategories
    • (Optional) The category values represented as a dictionary of key > list of values.
    collection str
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    uuid_lists Sequence[str]
    • (Optional) The explicit list of UUIDs for the given kind.
    categories Property Map
    • (Optional) The category values represented as a dictionary of key > list of values.
    collection String
    • (Optional) A representative term for supported groupings of entities. ALL = All the entities of a given kind.
    uuidLists List<String>
    • (Optional) The explicit list of UUIDs for the given kind.

    AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategories, AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategoriesArgs

    Name string
    • (Optional) Name of the Access Control Policy.
    Values List<string>
    • value of the key.
    Name string
    • (Optional) Name of the Access Control Policy.
    Values []string
    • value of the key.
    name String
    • (Optional) Name of the Access Control Policy.
    values List<String>
    • value of the key.
    name string
    • (Optional) Name of the Access Control Policy.
    values string[]
    • value of the key.
    name str
    • (Optional) Name of the Access Control Policy.
    values Sequence[str]
    • value of the key.
    name String
    • (Optional) Name of the Access Control Policy.
    values List<String>
    • value of the key.

    AccessControlPolicyOwnerReference, AccessControlPolicyOwnerReferenceArgs

    Kind string
    • The kind name (Default value: project)(Required).
    Name string
    • (Optional) Name of the Access Control Policy.
    Uuid string
    • the UUID(Required).
    Kind string
    • The kind name (Default value: project)(Required).
    Name string
    • (Optional) Name of the Access Control Policy.
    Uuid string
    • the UUID(Required).
    kind String
    • The kind name (Default value: project)(Required).
    name String
    • (Optional) Name of the Access Control Policy.
    uuid String
    • the UUID(Required).
    kind string
    • The kind name (Default value: project)(Required).
    name string
    • (Optional) Name of the Access Control Policy.
    uuid string
    • the UUID(Required).
    kind str
    • The kind name (Default value: project)(Required).
    name str
    • (Optional) Name of the Access Control Policy.
    uuid str
    • the UUID(Required).
    kind String
    • The kind name (Default value: project)(Required).
    name String
    • (Optional) Name of the Access Control Policy.
    uuid String
    • the UUID(Required).

    AccessControlPolicyRoleReference, AccessControlPolicyRoleReferenceArgs

    Kind string
    • The kind name (Default value: project)(Required).
    Uuid string
    • the UUID(Required).
    Name string
    • (Optional) Name of the Access Control Policy.
    Kind string
    • The kind name (Default value: project)(Required).
    Uuid string
    • the UUID(Required).
    Name string
    • (Optional) Name of the Access Control Policy.
    kind String
    • The kind name (Default value: project)(Required).
    uuid String
    • the UUID(Required).
    name String
    • (Optional) Name of the Access Control Policy.
    kind string
    • The kind name (Default value: project)(Required).
    uuid string
    • the UUID(Required).
    name string
    • (Optional) Name of the Access Control Policy.
    kind str
    • The kind name (Default value: project)(Required).
    uuid str
    • the UUID(Required).
    name str
    • (Optional) Name of the Access Control Policy.
    kind String
    • The kind name (Default value: project)(Required).
    uuid String
    • the UUID(Required).
    name String
    • (Optional) Name of the Access Control Policy.

    AccessControlPolicyUserGroupReferenceList, AccessControlPolicyUserGroupReferenceListArgs

    Uuid string
    • the UUID(Required).
    Kind string
    • The kind name (Default value: project)(Required).
    Name string
    • (Optional) Name of the Access Control Policy.
    Uuid string
    • the UUID(Required).
    Kind string
    • The kind name (Default value: project)(Required).
    Name string
    • (Optional) Name of the Access Control Policy.
    uuid String
    • the UUID(Required).
    kind String
    • The kind name (Default value: project)(Required).
    name String
    • (Optional) Name of the Access Control Policy.
    uuid string
    • the UUID(Required).
    kind string
    • The kind name (Default value: project)(Required).
    name string
    • (Optional) Name of the Access Control Policy.
    uuid str
    • the UUID(Required).
    kind str
    • The kind name (Default value: project)(Required).
    name str
    • (Optional) Name of the Access Control Policy.
    uuid String
    • the UUID(Required).
    kind String
    • The kind name (Default value: project)(Required).
    name String
    • (Optional) Name of the Access Control Policy.

    AccessControlPolicyUserReferenceList, AccessControlPolicyUserReferenceListArgs

    Uuid string
    • the UUID(Required).
    Kind string
    • The kind name (Default value: project)(Required).
    Name string
    • (Optional) Name of the Access Control Policy.
    Uuid string
    • the UUID(Required).
    Kind string
    • The kind name (Default value: project)(Required).
    Name string
    • (Optional) Name of the Access Control Policy.
    uuid String
    • the UUID(Required).
    kind String
    • The kind name (Default value: project)(Required).
    name String
    • (Optional) Name of the Access Control Policy.
    uuid string
    • the UUID(Required).
    kind string
    • The kind name (Default value: project)(Required).
    name string
    • (Optional) Name of the Access Control Policy.
    uuid str
    • the UUID(Required).
    kind str
    • The kind name (Default value: project)(Required).
    name str
    • (Optional) Name of the Access Control Policy.
    uuid String
    • the UUID(Required).
    kind String
    • The kind name (Default value: project)(Required).
    name String
    • (Optional) Name of the Access Control Policy.

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.0.55 published on Monday, Jul 22, 2024 by Piers Karsenbarg