nutanix.AccessControlPolicy
Explore with Pulumi AI
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:
- Role
Reference PiersKarsenbarg. Nutanix. Inputs. Access Control Policy Role Reference - (Required) The reference to a role.
- Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Access Control Policy Category> - (Optional) Categories for the Access Control Policy.
- Context
Filter List<PiersLists Karsenbarg. Nutanix. Inputs. Access Control Policy Context Filter List> - Description string
- (Optional) The description of Access Control Policy.
- Name string
- (Optional) Name of the Access Control Policy.
- Owner
Reference PiersKarsenbarg. Nutanix. Inputs. Access Control Policy Owner Reference - (Optional) The reference to a user.
- User
Group List<PiersReference Lists Karsenbarg. Nutanix. Inputs. Access Control Policy User Group Reference List> - (Optional) The User group(s) being assigned a given role.
- User
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Access Control Policy User Reference List> - (Optional) The User(s) being assigned a given role.
- Role
Reference AccessControl Policy Role Reference Args - (Required) The reference to a role.
- Categories
[]Access
Control Policy Category Args - (Optional) Categories for the Access Control Policy.
- Context
Filter []AccessLists Control Policy Context Filter List Args - Description string
- (Optional) The description of Access Control Policy.
- Name string
- (Optional) Name of the Access Control Policy.
- Owner
Reference AccessControl Policy Owner Reference Args - (Optional) The reference to a user.
- User
Group []AccessReference Lists Control Policy User Group Reference List Args - (Optional) The User group(s) being assigned a given role.
- User
Reference []AccessLists Control Policy User Reference List Args - (Optional) The User(s) being assigned a given role.
- role
Reference AccessControl Policy Role Reference - (Required) The reference to a role.
- categories
List<Access
Control Policy Category> - (Optional) Categories for the Access Control Policy.
- context
Filter List<AccessLists Control Policy Context Filter List> - description String
- (Optional) The description of Access Control Policy.
- name String
- (Optional) Name of the Access Control Policy.
- owner
Reference AccessControl Policy Owner Reference - (Optional) The reference to a user.
- user
Group List<AccessReference Lists Control Policy User Group Reference List> - (Optional) The User group(s) being assigned a given role.
- user
Reference List<AccessLists Control Policy User Reference List> - (Optional) The User(s) being assigned a given role.
- role
Reference AccessControl Policy Role Reference - (Required) The reference to a role.
- categories
Access
Control Policy Category[] - (Optional) Categories for the Access Control Policy.
- context
Filter AccessLists Control Policy Context Filter List[] - description string
- (Optional) The description of Access Control Policy.
- name string
- (Optional) Name of the Access Control Policy.
- owner
Reference AccessControl Policy Owner Reference - (Optional) The reference to a user.
- user
Group AccessReference Lists Control Policy User Group Reference List[] - (Optional) The User group(s) being assigned a given role.
- user
Reference AccessLists Control Policy User Reference List[] - (Optional) The User(s) being assigned a given role.
- role_
reference AccessControl Policy Role Reference Args - (Required) The reference to a role.
- categories
Sequence[Access
Control Policy Category Args] - (Optional) Categories for the Access Control Policy.
- context_
filter_ Sequence[Accesslists Control Policy Context Filter List Args] - description str
- (Optional) The description of Access Control Policy.
- name str
- (Optional) Name of the Access Control Policy.
- owner_
reference AccessControl Policy Owner Reference Args - (Optional) The reference to a user.
- user_
group_ Sequence[Accessreference_ lists Control Policy User Group Reference List Args] - (Optional) The User group(s) being assigned a given role.
- user_
reference_ Sequence[Accesslists Control Policy User Reference List Args] - (Optional) The User(s) being assigned a given role.
- role
Reference Property Map - (Required) The reference to a role.
- categories List<Property Map>
- (Optional) Categories for the Access Control Policy.
- context
Filter List<Property Map>Lists - description String
- (Optional) The description of Access Control Policy.
- name String
- (Optional) Name of the Access Control Policy.
- owner
Reference Property Map - (Optional) The reference to a user.
- user
Group List<Property Map>Reference Lists - (Optional) The User group(s) being assigned a given role.
- user
Reference List<Property Map>Lists - (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:
- Api
Version 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.
- Api
Version 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.
- api
Version 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.
- api
Version 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.
- api
Version 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.
- Api
Version string - The version of the API.
- Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Access Control Policy Category> - (Optional) Categories for the Access Control Policy.
- Context
Filter List<PiersLists Karsenbarg. Nutanix. Inputs. Access Control Policy Context Filter List> - 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.
- Owner
Reference PiersKarsenbarg. Nutanix. Inputs. Access Control Policy Owner Reference - (Optional) The reference to a user.
- Role
Reference PiersKarsenbarg. Nutanix. Inputs. Access Control Policy Role Reference - (Required) The reference to a role.
- State string
- The state of the Access Control Policy.
- User
Group List<PiersReference Lists Karsenbarg. Nutanix. Inputs. Access Control Policy User Group Reference List> - (Optional) The User group(s) being assigned a given role.
- User
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Access Control Policy User Reference List> - (Optional) The User(s) being assigned a given role.
- Api
Version string - The version of the API.
- Categories
[]Access
Control Policy Category Args - (Optional) Categories for the Access Control Policy.
- Context
Filter []AccessLists Control Policy Context Filter List Args - 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.
- Owner
Reference AccessControl Policy Owner Reference Args - (Optional) The reference to a user.
- Role
Reference AccessControl Policy Role Reference Args - (Required) The reference to a role.
- State string
- The state of the Access Control Policy.
- User
Group []AccessReference Lists Control Policy User Group Reference List Args - (Optional) The User group(s) being assigned a given role.
- User
Reference []AccessLists Control Policy User Reference List Args - (Optional) The User(s) being assigned a given role.
- api
Version String - The version of the API.
- categories
List<Access
Control Policy Category> - (Optional) Categories for the Access Control Policy.
- context
Filter List<AccessLists Control Policy Context Filter List> - 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.
- owner
Reference AccessControl Policy Owner Reference - (Optional) The reference to a user.
- role
Reference AccessControl Policy Role Reference - (Required) The reference to a role.
- state String
- The state of the Access Control Policy.
- user
Group List<AccessReference Lists Control Policy User Group Reference List> - (Optional) The User group(s) being assigned a given role.
- user
Reference List<AccessLists Control Policy User Reference List> - (Optional) The User(s) being assigned a given role.
- api
Version string - The version of the API.
- categories
Access
Control Policy Category[] - (Optional) Categories for the Access Control Policy.
- context
Filter AccessLists Control Policy Context Filter List[] - 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.
- owner
Reference AccessControl Policy Owner Reference - (Optional) The reference to a user.
- role
Reference AccessControl Policy Role Reference - (Required) The reference to a role.
- state string
- The state of the Access Control Policy.
- user
Group AccessReference Lists Control Policy User Group Reference List[] - (Optional) The User group(s) being assigned a given role.
- user
Reference AccessLists Control Policy User Reference List[] - (Optional) The User(s) being assigned a given role.
- api_
version str - The version of the API.
- categories
Sequence[Access
Control Policy Category Args] - (Optional) Categories for the Access Control Policy.
- context_
filter_ Sequence[Accesslists Control Policy Context Filter List Args] - 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 AccessControl Policy Owner Reference Args - (Optional) The reference to a user.
- role_
reference AccessControl Policy Role Reference Args - (Required) The reference to a role.
- state str
- The state of the Access Control Policy.
- user_
group_ Sequence[Accessreference_ lists Control Policy User Group Reference List Args] - (Optional) The User group(s) being assigned a given role.
- user_
reference_ Sequence[Accesslists Control Policy User Reference List Args] - (Optional) The User(s) being assigned a given role.
- api
Version String - The version of the API.
- categories List<Property Map>
- (Optional) Categories for the Access Control Policy.
- context
Filter List<Property Map>Lists - 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.
- owner
Reference Property Map - (Optional) The reference to a user.
- role
Reference Property Map - (Required) The reference to a role.
- state String
- The state of the Access Control Policy.
- user
Group List<Property Map>Reference Lists - (Optional) The User group(s) being assigned a given role.
- user
Reference List<Property Map>Lists - (Optional) The User(s) being assigned a given role.
Supporting Types
AccessControlPolicyCategory, AccessControlPolicyCategoryArgs
AccessControlPolicyContextFilterList, AccessControlPolicyContextFilterListArgs
- Entity
Filter List<PiersExpression Lists Karsenbarg. Nutanix. Inputs. Access Control Policy Context Filter List Entity Filter Expression List> - A list of Entity filter expressions.
- Scope
Filter List<PiersExpression Lists Karsenbarg. Nutanix. Inputs. Access Control Policy Context Filter List Scope Filter Expression List> - (Optional) Filter the scope of an Access Control Policy.
- Entity
Filter []AccessExpression Lists Control Policy Context Filter List Entity Filter Expression List - A list of Entity filter expressions.
- Scope
Filter []AccessExpression Lists Control Policy Context Filter List Scope Filter Expression List - (Optional) Filter the scope of an Access Control Policy.
- entity
Filter List<AccessExpression Lists Control Policy Context Filter List Entity Filter Expression List> - A list of Entity filter expressions.
- scope
Filter List<AccessExpression Lists Control Policy Context Filter List Scope Filter Expression List> - (Optional) Filter the scope of an Access Control Policy.
- entity
Filter AccessExpression Lists Control Policy Context Filter List Entity Filter Expression List[] - A list of Entity filter expressions.
- scope
Filter AccessExpression Lists Control Policy Context Filter List Scope Filter Expression List[] - (Optional) Filter the scope of an Access Control Policy.
- entity_
filter_ Sequence[Accessexpression_ lists Control Policy Context Filter List Entity Filter Expression List] - A list of Entity filter expressions.
- scope_
filter_ Sequence[Accessexpression_ lists Control Policy Context Filter List Scope Filter Expression List] - (Optional) Filter the scope of an Access Control Policy.
- entity
Filter List<Property Map>Expression Lists - A list of Entity filter expressions.
- scope
Filter List<Property Map>Expression Lists - (Optional) Filter the scope of an Access Control Policy.
AccessControlPolicyContextFilterListEntityFilterExpressionList, AccessControlPolicyContextFilterListEntityFilterExpressionListArgs
- Operator string
- (Required) The operator in the filter expression.
- Right
Hand PiersSide Karsenbarg. Nutanix. Inputs. Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- Left
Hand stringSide Entity Type - (Optional) The LHS of the filter expression - the entity type.
- Operator string
- (Required) The operator in the filter expression.
- Right
Hand AccessSide Control Policy Context Filter List Entity Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- Left
Hand stringSide Entity Type - (Optional) The LHS of the filter expression - the entity type.
- operator String
- (Required) The operator in the filter expression.
- right
Hand AccessSide Control Policy Context Filter List Entity Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left
Hand StringSide Entity Type - (Optional) The LHS of the filter expression - the entity type.
- operator string
- (Required) The operator in the filter expression.
- right
Hand AccessSide Control Policy Context Filter List Entity Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left
Hand stringSide Entity Type - (Optional) The LHS of the filter expression - the entity type.
- operator str
- (Required) The operator in the filter expression.
- right_
hand_ Accessside Control Policy Context Filter List Entity Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left_
hand_ strside_ entity_ type - (Optional) The LHS of the filter expression - the entity type.
- operator String
- (Required) The operator in the filter expression.
- right
Hand Property MapSide - (Required) The right hand side (RHS) of an scope expression.
- left
Hand StringSide Entity Type - (Optional) The LHS of the filter expression - the entity type.
AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSide, AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideArgs
- Categories
Piers
Karsenbarg. Nutanix. Inputs. Access Control Policy Context Filter List Entity Filter Expression List Right Hand Side Categories - (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.
- Uuid
Lists List<string> - (Optional) The explicit list of UUIDs for the given kind.
- Categories
Access
Control Policy Context Filter List Entity Filter Expression List Right Hand Side Categories - (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.
- Uuid
Lists []string - (Optional) The explicit list of UUIDs for the given kind.
- categories
Access
Control Policy Context Filter List Entity Filter Expression List Right Hand Side Categories - (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.
- uuid
Lists List<String> - (Optional) The explicit list of UUIDs for the given kind.
- categories
Access
Control Policy Context Filter List Entity Filter Expression List Right Hand Side Categories - (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.
- uuid
Lists string[] - (Optional) The explicit list of UUIDs for the given kind.
- categories
Access
Control Policy Context Filter List Entity Filter Expression List Right Hand Side Categories - (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.
- uuid
Lists List<String> - (Optional) The explicit list of UUIDs for the given kind.
AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategories, AccessControlPolicyContextFilterListEntityFilterExpressionListRightHandSideCategoriesArgs
AccessControlPolicyContextFilterListScopeFilterExpressionList, AccessControlPolicyContextFilterListScopeFilterExpressionListArgs
- Left
Hand stringSide - (Optional) The LHS of the filter expression - the scope type.
- Operator string
- (Required) The operator of the filter expression.
- Right
Hand PiersSide Karsenbarg. Nutanix. Inputs. Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- Left
Hand stringSide - (Optional) The LHS of the filter expression - the scope type.
- Operator string
- (Required) The operator of the filter expression.
- Right
Hand AccessSide Control Policy Context Filter List Scope Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left
Hand StringSide - (Optional) The LHS of the filter expression - the scope type.
- operator String
- (Required) The operator of the filter expression.
- right
Hand AccessSide Control Policy Context Filter List Scope Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left
Hand stringSide - (Optional) The LHS of the filter expression - the scope type.
- operator string
- (Required) The operator of the filter expression.
- right
Hand AccessSide Control Policy Context Filter List Scope Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left_
hand_ strside - (Optional) The LHS of the filter expression - the scope type.
- operator str
- (Required) The operator of the filter expression.
- right_
hand_ Accessside Control Policy Context Filter List Scope Filter Expression List Right Hand Side - (Required) The right hand side (RHS) of an scope expression.
- left
Hand StringSide - (Optional) The LHS of the filter expression - the scope type.
- operator String
- (Required) The operator of the filter expression.
- right
Hand Property MapSide - (Required) The right hand side (RHS) of an scope expression.
AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSide, AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideArgs
- Categories
Piers
Karsenbarg. Nutanix. Inputs. Access Control Policy Context Filter List Scope Filter Expression List Right Hand Side Categories - (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.
- Uuid
Lists List<string> - (Optional) The explicit list of UUIDs for the given kind.
- Categories
Access
Control Policy Context Filter List Scope Filter Expression List Right Hand Side Categories - (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.
- Uuid
Lists []string - (Optional) The explicit list of UUIDs for the given kind.
- categories
Access
Control Policy Context Filter List Scope Filter Expression List Right Hand Side Categories - (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.
- uuid
Lists List<String> - (Optional) The explicit list of UUIDs for the given kind.
- categories
Access
Control Policy Context Filter List Scope Filter Expression List Right Hand Side Categories - (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.
- uuid
Lists string[] - (Optional) The explicit list of UUIDs for the given kind.
- categories
Access
Control Policy Context Filter List Scope Filter Expression List Right Hand Side Categories - (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.
- uuid
Lists List<String> - (Optional) The explicit list of UUIDs for the given kind.
AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategories, AccessControlPolicyContextFilterListScopeFilterExpressionListRightHandSideCategoriesArgs
AccessControlPolicyOwnerReference, AccessControlPolicyOwnerReferenceArgs
AccessControlPolicyRoleReference, AccessControlPolicyRoleReferenceArgs
AccessControlPolicyUserGroupReferenceList, AccessControlPolicyUserGroupReferenceListArgs
AccessControlPolicyUserReferenceList, AccessControlPolicyUserReferenceListArgs
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.