Viewing docs for Nutanix v0.11.0
published on Monday, Nov 24, 2025 by Piers Karsenbarg
published on Monday, Nov 24, 2025 by Piers Karsenbarg
Viewing docs for Nutanix v0.11.0
published on Monday, Nov 24, 2025 by Piers Karsenbarg
published on Monday, Nov 24, 2025 by Piers Karsenbarg
Describes an Access Control Policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
const testAccessControlPolicy = new nutanix.AccessControlPolicy("test", {
name: "NAME OF ACCESS CONTROL POLICY",
description: "DESCRIPTION OF THE ACCESS CONTROL POLICY",
roleReference: {
kind: "role",
uuid: "UUID of role",
},
});
const test = nutanix.getAccessControlPolicyOutput({
accessControlPolicyId: testAccessControlPolicy.id,
});
import pulumi
import pulumi_nutanix as nutanix
test_access_control_policy = nutanix.AccessControlPolicy("test",
name="NAME OF ACCESS CONTROL POLICY",
description="DESCRIPTION OF THE ACCESS CONTROL POLICY",
role_reference={
"kind": "role",
"uuid": "UUID of role",
})
test = nutanix.get_access_control_policy_output(access_control_policy_id=test_access_control_policy.id)
package main
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testAccessControlPolicy, err := nutanix.NewAccessControlPolicy(ctx, "test", &nutanix.AccessControlPolicyArgs{
Name: pulumi.String("NAME OF ACCESS CONTROL POLICY"),
Description: pulumi.String("DESCRIPTION OF THE ACCESS CONTROL POLICY"),
RoleReference: &nutanix.AccessControlPolicyRoleReferenceArgs{
Kind: pulumi.String("role"),
Uuid: pulumi.String("UUID of role"),
},
})
if err != nil {
return err
}
_ = nutanix.LookupAccessControlPolicyOutput(ctx, nutanix.GetAccessControlPolicyOutputArgs{
AccessControlPolicyId: testAccessControlPolicy.ID(),
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var testAccessControlPolicy = new Nutanix.AccessControlPolicy("test", new()
{
Name = "NAME OF ACCESS CONTROL POLICY",
Description = "DESCRIPTION OF THE ACCESS CONTROL POLICY",
RoleReference = new Nutanix.Inputs.AccessControlPolicyRoleReferenceArgs
{
Kind = "role",
Uuid = "UUID of role",
},
});
var test = Nutanix.GetAccessControlPolicy.Invoke(new()
{
AccessControlPolicyId = testAccessControlPolicy.Id,
});
});
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.AccessControlPolicyRoleReferenceArgs;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetAccessControlPolicyArgs;
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 testAccessControlPolicy = new AccessControlPolicy("testAccessControlPolicy", AccessControlPolicyArgs.builder()
.name("NAME OF ACCESS CONTROL POLICY")
.description("DESCRIPTION OF THE ACCESS CONTROL POLICY")
.roleReference(AccessControlPolicyRoleReferenceArgs.builder()
.kind("role")
.uuid("UUID of role")
.build())
.build());
final var test = NutanixFunctions.getAccessControlPolicy(GetAccessControlPolicyArgs.builder()
.accessControlPolicyId(testAccessControlPolicy.id())
.build());
}
}
resources:
testAccessControlPolicy:
type: nutanix:AccessControlPolicy
name: test
properties:
name: NAME OF ACCESS CONTROL POLICY
description: DESCRIPTION OF THE ACCESS CONTROL POLICY
roleReference:
kind: role
uuid: UUID of role
variables:
test:
fn::invoke:
function: nutanix:getAccessControlPolicy
arguments:
accessControlPolicyId: ${testAccessControlPolicy.id}
Using getAccessControlPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAccessControlPolicy(args: GetAccessControlPolicyArgs, opts?: InvokeOptions): Promise<GetAccessControlPolicyResult>
function getAccessControlPolicyOutput(args: GetAccessControlPolicyOutputArgs, opts?: InvokeOptions): Output<GetAccessControlPolicyResult>def get_access_control_policy(access_control_policy_id: Optional[str] = None,
access_control_policy_name: Optional[str] = None,
categories: Optional[Sequence[GetAccessControlPolicyCategory]] = None,
opts: Optional[InvokeOptions] = None) -> GetAccessControlPolicyResult
def get_access_control_policy_output(access_control_policy_id: Optional[pulumi.Input[str]] = None,
access_control_policy_name: Optional[pulumi.Input[str]] = None,
categories: Optional[pulumi.Input[Sequence[pulumi.Input[GetAccessControlPolicyCategoryArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccessControlPolicyResult]func LookupAccessControlPolicy(ctx *Context, args *LookupAccessControlPolicyArgs, opts ...InvokeOption) (*LookupAccessControlPolicyResult, error)
func LookupAccessControlPolicyOutput(ctx *Context, args *LookupAccessControlPolicyOutputArgs, opts ...InvokeOption) LookupAccessControlPolicyResultOutput> Note: This function is named LookupAccessControlPolicy in the Go SDK.
public static class GetAccessControlPolicy
{
public static Task<GetAccessControlPolicyResult> InvokeAsync(GetAccessControlPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetAccessControlPolicyResult> Invoke(GetAccessControlPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAccessControlPolicyResult> getAccessControlPolicy(GetAccessControlPolicyArgs args, InvokeOptions options)
public static Output<GetAccessControlPolicyResult> getAccessControlPolicy(GetAccessControlPolicyArgs args, InvokeOptions options)
fn::invoke:
function: nutanix:index/getAccessControlPolicy:getAccessControlPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Access
Control stringPolicy Id - (Required) The UUID of an access control policy.
- Access
Control stringPolicy Name - Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Get Access Control Policy Category> - The category values represented as a dictionary of key > list of values.
- Access
Control stringPolicy Id - (Required) The UUID of an access control policy.
- Access
Control stringPolicy Name - Categories
[]Get
Access Control Policy Category - The category values represented as a dictionary of key > list of values.
- access
Control StringPolicy Id - (Required) The UUID of an access control policy.
- access
Control StringPolicy Name - categories
List<Get
Access Control Policy Category> - The category values represented as a dictionary of key > list of values.
- access
Control stringPolicy Id - (Required) The UUID of an access control policy.
- access
Control stringPolicy Name - categories
Get
Access Control Policy Category[] - The category values represented as a dictionary of key > list of values.
- access_
control_ strpolicy_ id - (Required) The UUID of an access control policy.
- access_
control_ strpolicy_ name - categories
Sequence[Get
Access Control Policy Category] - The category values represented as a dictionary of key > list of values.
- access
Control StringPolicy Id - (Required) The UUID of an access control policy.
- access
Control StringPolicy Name - categories List<Property Map>
- The category values represented as a dictionary of key > list of values.
getAccessControlPolicy Result
The following output properties are available:
- Api
Version string - The version of the API.
- Categories
List<Piers
Karsenbarg. Nutanix. Outputs. Get Access Control Policy Category> - The category values represented as a dictionary of key > list of values.
- Context
Filter List<PiersLists Karsenbarg. Nutanix. Outputs. Get Access Control Policy Context Filter List> - Description string
- The description of the Access Control Policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata Dictionary<string, string>
- The Access Control Policy kind metadata.
- Name string
- the name(Optional).
- Owner
Reference Dictionary<string, string> - The reference to a user.
- Project
Reference Dictionary<string, string> - The reference to a project.
- Role
References List<PiersKarsenbarg. Nutanix. Outputs. Get Access Control Policy Role Reference> - The reference to a role.
- State string
- The state of the Access Control Policy.
- User
Group List<PiersReference Lists Karsenbarg. Nutanix. Outputs. Get Access Control Policy User Group Reference List> - The User group(s) being assigned a given role.
- User
Reference List<PiersLists Karsenbarg. Nutanix. Outputs. Get Access Control Policy User Reference List> - The User(s) being assigned a given role.
- Access
Control stringPolicy Id - Access
Control stringPolicy Name
- Api
Version string - The version of the API.
- Categories
[]Get
Access Control Policy Category - The category values represented as a dictionary of key > list of values.
- Context
Filter []GetLists Access Control Policy Context Filter List - Description string
- The description of the Access Control Policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata map[string]string
- The Access Control Policy kind metadata.
- Name string
- the name(Optional).
- Owner
Reference map[string]string - The reference to a user.
- Project
Reference map[string]string - The reference to a project.
- Role
References []GetAccess Control Policy Role Reference - The reference to a role.
- State string
- The state of the Access Control Policy.
- User
Group []GetReference Lists Access Control Policy User Group Reference List - The User group(s) being assigned a given role.
- User
Reference []GetLists Access Control Policy User Reference List - The User(s) being assigned a given role.
- Access
Control stringPolicy Id - Access
Control stringPolicy Name
- api
Version String - The version of the API.
- categories
List<Get
Access Control Policy Category> - The category values represented as a dictionary of key > list of values.
- context
Filter List<GetLists Access Control Policy Context Filter List> - description String
- The description of the Access Control Policy.
- id String
- The provider-assigned unique ID for this managed resource.
- metadata Map<String,String>
- The Access Control Policy kind metadata.
- name String
- the name(Optional).
- owner
Reference Map<String,String> - The reference to a user.
- project
Reference Map<String,String> - The reference to a project.
- role
References List<GetAccess Control Policy Role Reference> - The reference to a role.
- state String
- The state of the Access Control Policy.
- user
Group List<GetReference Lists Access Control Policy User Group Reference List> - The User group(s) being assigned a given role.
- user
Reference List<GetLists Access Control Policy User Reference List> - The User(s) being assigned a given role.
- access
Control StringPolicy Id - access
Control StringPolicy Name
- api
Version string - The version of the API.
- categories
Get
Access Control Policy Category[] - The category values represented as a dictionary of key > list of values.
- context
Filter GetLists Access Control Policy Context Filter List[] - description string
- The description of the Access Control Policy.
- id string
- The provider-assigned unique ID for this managed resource.
- metadata {[key: string]: string}
- The Access Control Policy kind metadata.
- name string
- the name(Optional).
- owner
Reference {[key: string]: string} - The reference to a user.
- project
Reference {[key: string]: string} - The reference to a project.
- role
References GetAccess Control Policy Role Reference[] - The reference to a role.
- state string
- The state of the Access Control Policy.
- user
Group GetReference Lists Access Control Policy User Group Reference List[] - The User group(s) being assigned a given role.
- user
Reference GetLists Access Control Policy User Reference List[] - The User(s) being assigned a given role.
- access
Control stringPolicy Id - access
Control stringPolicy Name
- api_
version str - The version of the API.
- categories
Sequence[Get
Access Control Policy Category] - The category values represented as a dictionary of key > list of values.
- context_
filter_ Sequence[Getlists Access Control Policy Context Filter List] - description str
- The description of the Access Control Policy.
- id str
- The provider-assigned unique ID for this managed resource.
- metadata Mapping[str, str]
- The Access Control Policy kind metadata.
- name str
- the name(Optional).
- owner_
reference Mapping[str, str] - The reference to a user.
- project_
reference Mapping[str, str] - The reference to a project.
- role_
references Sequence[GetAccess Control Policy Role Reference] - The reference to a role.
- state str
- The state of the Access Control Policy.
- user_
group_ Sequence[Getreference_ lists Access Control Policy User Group Reference List] - The User group(s) being assigned a given role.
- user_
reference_ Sequence[Getlists Access Control Policy User Reference List] - The User(s) being assigned a given role.
- access_
control_ strpolicy_ id - access_
control_ strpolicy_ name
- api
Version String - The version of the API.
- categories List<Property Map>
- The category values represented as a dictionary of key > list of values.
- context
Filter List<Property Map>Lists - description String
- The description of the Access Control Policy.
- id String
- The provider-assigned unique ID for this managed resource.
- metadata Map<String>
- The Access Control Policy kind metadata.
- name String
- the name(Optional).
- owner
Reference Map<String> - The reference to a user.
- project
Reference Map<String> - The reference to a project.
- role
References List<Property Map> - The reference to a role.
- state String
- The state of the Access Control Policy.
- user
Group List<Property Map>Reference Lists - The User group(s) being assigned a given role.
- user
Reference List<Property Map>Lists - The User(s) being assigned a given role.
- access
Control StringPolicy Id - access
Control StringPolicy Name
Supporting Types
GetAccessControlPolicyCategory
GetAccessControlPolicyContextFilterList
- Entity
Filter List<PiersExpression Lists Karsenbarg. Nutanix. Inputs. Get Access Control Policy Context Filter List Entity Filter Expression List> - A list of Entity filter expressions.
- Scope
Filter List<PiersExpression Lists Karsenbarg. Nutanix. Inputs. Get Access Control Policy Context Filter List Scope Filter Expression List> - The device ID which is used to uniquely identify this particular disk.
- Entity
Filter []GetExpression Lists Access Control Policy Context Filter List Entity Filter Expression List - A list of Entity filter expressions.
- Scope
Filter []GetExpression Lists Access Control Policy Context Filter List Scope Filter Expression List - The device ID which is used to uniquely identify this particular disk.
- entity
Filter List<GetExpression Lists Access Control Policy Context Filter List Entity Filter Expression List> - A list of Entity filter expressions.
- scope
Filter List<GetExpression Lists Access Control Policy Context Filter List Scope Filter Expression List> - The device ID which is used to uniquely identify this particular disk.
- entity
Filter GetExpression Lists Access Control Policy Context Filter List Entity Filter Expression List[] - A list of Entity filter expressions.
- scope
Filter GetExpression Lists Access Control Policy Context Filter List Scope Filter Expression List[] - The device ID which is used to uniquely identify this particular disk.
- entity_
filter_ Sequence[Getexpression_ lists Access Control Policy Context Filter List Entity Filter Expression List] - A list of Entity filter expressions.
- scope_
filter_ Sequence[Getexpression_ lists Access Control Policy Context Filter List Scope Filter Expression List] - The device ID which is used to uniquely identify this particular disk.
- entity
Filter List<Property Map>Expression Lists - A list of Entity filter expressions.
- scope
Filter List<Property Map>Expression Lists - The device ID which is used to uniquely identify this particular disk.
GetAccessControlPolicyContextFilterListEntityFilterExpressionList
- Left
Hand stringSide Entity Type - The LHS of the filter expression - the entity type.
- Operator string
- The operator in the filter expression.
- Right
Hand List<PiersSides Karsenbarg. Nutanix. Inputs. Get Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side> - The right hand side (RHS) of an scope expression.
- Left
Hand stringSide Entity Type - The LHS of the filter expression - the entity type.
- Operator string
- The operator in the filter expression.
- Right
Hand []GetSides Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side - The right hand side (RHS) of an scope expression.
- left
Hand StringSide Entity Type - The LHS of the filter expression - the entity type.
- operator String
- The operator in the filter expression.
- right
Hand List<GetSides Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side> - The right hand side (RHS) of an scope expression.
- left
Hand stringSide Entity Type - The LHS of the filter expression - the entity type.
- operator string
- The operator in the filter expression.
- right
Hand GetSides Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side[] - The right hand side (RHS) of an scope expression.
- left_
hand_ strside_ entity_ type - The LHS of the filter expression - the entity type.
- operator str
- The operator in the filter expression.
- right_
hand_ Sequence[Getsides Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side] - The right hand side (RHS) of an scope expression.
- left
Hand StringSide Entity Type - The LHS of the filter expression - the entity type.
- operator String
- The operator in the filter expression.
- right
Hand List<Property Map>Sides - The right hand side (RHS) of an scope expression.
GetAccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSide
- Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Get Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side Category> - The category values represented as a dictionary of key > list of values.
- Collection string
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- Uuid
Lists List<string> - The explicit list of UUIDs for the given kind.
- Categories
[]Get
Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side Category - The category values represented as a dictionary of key > list of values.
- Collection string
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- Uuid
Lists []string - The explicit list of UUIDs for the given kind.
- categories
List<Get
Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side Category> - The category values represented as a dictionary of key > list of values.
- collection String
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists List<String> - The explicit list of UUIDs for the given kind.
- categories
Get
Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side Category[] - The category values represented as a dictionary of key > list of values.
- collection string
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists string[] - The explicit list of UUIDs for the given kind.
- categories
Sequence[Get
Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side Category] - The category values represented as a dictionary of key > list of values.
- collection str
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid_
lists Sequence[str] - The explicit list of UUIDs for the given kind.
- categories List<Property Map>
- The category values represented as a dictionary of key > list of values.
- collection String
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists List<String> - The explicit list of UUIDs for the given kind.
GetAccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategory
GetAccessControlPolicyContextFilterListScopeFilterExpressionList
- Left
Hand stringSide - The LHS of the filter expression - the scope type.
- Operator string
- The operator in the filter expression.
- Right
Hand List<PiersSides Karsenbarg. Nutanix. Inputs. Get Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side> - The right hand side (RHS) of an scope expression.
- Left
Hand stringSide - The LHS of the filter expression - the scope type.
- Operator string
- The operator in the filter expression.
- Right
Hand []GetSides Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side - The right hand side (RHS) of an scope expression.
- left
Hand StringSide - The LHS of the filter expression - the scope type.
- operator String
- The operator in the filter expression.
- right
Hand List<GetSides Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side> - The right hand side (RHS) of an scope expression.
- left
Hand stringSide - The LHS of the filter expression - the scope type.
- operator string
- The operator in the filter expression.
- right
Hand GetSides Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side[] - The right hand side (RHS) of an scope expression.
- left_
hand_ strside - The LHS of the filter expression - the scope type.
- operator str
- The operator in the filter expression.
- right_
hand_ Sequence[Getsides Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side] - The right hand side (RHS) of an scope expression.
- left
Hand StringSide - The LHS of the filter expression - the scope type.
- operator String
- The operator in the filter expression.
- right
Hand List<Property Map>Sides - The right hand side (RHS) of an scope expression.
GetAccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSide
- Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Get Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side Category> - The category values represented as a dictionary of key > list of values.
- Collection string
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- Uuid
Lists List<string> - The explicit list of UUIDs for the given kind.
- Categories
[]Get
Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side Category - The category values represented as a dictionary of key > list of values.
- Collection string
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- Uuid
Lists []string - The explicit list of UUIDs for the given kind.
- categories
List<Get
Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side Category> - The category values represented as a dictionary of key > list of values.
- collection String
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists List<String> - The explicit list of UUIDs for the given kind.
- categories
Get
Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side Category[] - The category values represented as a dictionary of key > list of values.
- collection string
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists string[] - The explicit list of UUIDs for the given kind.
- categories
Sequence[Get
Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side Category] - The category values represented as a dictionary of key > list of values.
- collection str
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid_
lists Sequence[str] - The explicit list of UUIDs for the given kind.
- categories List<Property Map>
- The category values represented as a dictionary of key > list of values.
- collection String
- A representative term for supported groupings of entities. ALL = All the entities of a given kind.
- uuid
Lists List<String> - The explicit list of UUIDs for the given kind.
GetAccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategory
GetAccessControlPolicyRoleReference
GetAccessControlPolicyUserGroupReferenceList
GetAccessControlPolicyUserReferenceList
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanixTerraform Provider.
Viewing docs for Nutanix v0.11.0
published on Monday, Nov 24, 2025 by Piers Karsenbarg
published on Monday, Nov 24, 2025 by Piers Karsenbarg
