1. Packages
  2. Packages
  3. Nutanix
  4. API Docs
  5. getAuthorizationPolicyV2
Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg
nutanix logo
Viewing docs for Nutanix v0.16.0
published on Tuesday, May 26, 2026 by Piers Karsenbarg

    Provides a datasource to retrieve authorization policy with authorization policy uuid .

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    const get_acp = nutanix.getAuthorizationPolicyV2({
        extId: "ba250e3e-1db1-4950-917f-a9e2ea35b8e3",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    get_acp = nutanix.get_authorization_policy_v2(ext_id="ba250e3e-1db1-4950-917f-a9e2ea35b8e3")
    
    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 {
    		_, err := nutanix.GetAuthorizationPolicyV2(ctx, &nutanix.LookupAuthorizationPolicyV2Args{
    			ExtId: "ba250e3e-1db1-4950-917f-a9e2ea35b8e3",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var get_acp = Nutanix.GetAuthorizationPolicyV2.Invoke(new()
        {
            ExtId = "ba250e3e-1db1-4950-917f-a9e2ea35b8e3",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.NutanixFunctions;
    import com.pulumi.nutanix.inputs.GetAuthorizationPolicyV2Args;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var get-acp = NutanixFunctions.getAuthorizationPolicyV2(GetAuthorizationPolicyV2Args.builder()
                .extId("ba250e3e-1db1-4950-917f-a9e2ea35b8e3")
                .build());
    
        }
    }
    
    variables:
      get-acp:
        fn::invoke:
          function: nutanix:getAuthorizationPolicyV2
          arguments:
            extId: ba250e3e-1db1-4950-917f-a9e2ea35b8e3
    
    pulumi {
      required_providers {
        nutanix = {
          source = "pulumi/nutanix"
        }
      }
    }
    
    data "nutanix_getauthorizationpolicyv2" "get-acp" {
      ext_id = "ba250e3e-1db1-4950-917f-a9e2ea35b8e3"
    }
    

    Using getAuthorizationPolicyV2

    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 getAuthorizationPolicyV2(args: GetAuthorizationPolicyV2Args, opts?: InvokeOptions): Promise<GetAuthorizationPolicyV2Result>
    function getAuthorizationPolicyV2Output(args: GetAuthorizationPolicyV2OutputArgs, opts?: InvokeOptions): Output<GetAuthorizationPolicyV2Result>
    def get_authorization_policy_v2(ext_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetAuthorizationPolicyV2Result
    def get_authorization_policy_v2_output(ext_id: pulumi.Input[Optional[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetAuthorizationPolicyV2Result]
    func LookupAuthorizationPolicyV2(ctx *Context, args *LookupAuthorizationPolicyV2Args, opts ...InvokeOption) (*LookupAuthorizationPolicyV2Result, error)
    func LookupAuthorizationPolicyV2Output(ctx *Context, args *LookupAuthorizationPolicyV2OutputArgs, opts ...InvokeOption) LookupAuthorizationPolicyV2ResultOutput

    > Note: This function is named LookupAuthorizationPolicyV2 in the Go SDK.

    public static class GetAuthorizationPolicyV2 
    {
        public static Task<GetAuthorizationPolicyV2Result> InvokeAsync(GetAuthorizationPolicyV2Args args, InvokeOptions? opts = null)
        public static Output<GetAuthorizationPolicyV2Result> Invoke(GetAuthorizationPolicyV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAuthorizationPolicyV2Result> getAuthorizationPolicyV2(GetAuthorizationPolicyV2Args args, InvokeOptions options)
    public static Output<GetAuthorizationPolicyV2Result> getAuthorizationPolicyV2(GetAuthorizationPolicyV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: nutanix:index/getAuthorizationPolicyV2:getAuthorizationPolicyV2
      arguments:
        # arguments dictionary
    data "nutanix_getauthorizationpolicyv2" "name" {
        # arguments
    }

    The following arguments are supported:

    ExtId string
    Authorization Policy UUID
    ExtId string
    Authorization Policy UUID
    ext_id string
    Authorization Policy UUID
    extId String
    Authorization Policy UUID
    extId string
    Authorization Policy UUID
    ext_id str
    Authorization Policy UUID
    extId String
    Authorization Policy UUID

    getAuthorizationPolicyV2 Result

    The following output properties are available:

    AuthorizationPolicyType string
    Type of Authorization Policy.

    • PREDEFINED_READ_ONLY : System-defined read-only ACP, i.e. no modifications allowed.
    • SERVICE_DEFINED_READ_ONLY : Read-only ACP defined by a service.
    • PREDEFINED_UPDATE_IDENTITY_ONLY : System-defined ACP prohibiting any modifications from customer.
    • SERVICE_DEFINED : ACP defined by a service.
    • USER_DEFINED : ACP defined by an User.
    ClientName string
    Client that created the entity.
    CreatedBy string
    User or Service Name that created the Authorization Policy.
    CreatedTime string
    The creation time of the Authorization Policy.
    Description string
    Description of the Authorization Policy.
    DisplayName string
    Name of the Authorization Policy.
    Entities List<PiersKarsenbarg.Nutanix.Outputs.GetAuthorizationPolicyV2Entity>
    The entities being qualified by the Authorization Policy.
    ExtId string
    ext_id of Authorization policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities List<PiersKarsenbarg.Nutanix.Outputs.GetAuthorizationPolicyV2Identity>
    The identities for which the Authorization Policy is created.
    IsSystemDefined bool
    Flag identifying if the Authorization Policy is system defined or not.
    LastUpdatedTime string
    The time when the Authorization Policy was last updated.
    Role string
    The Role associated with the Authorization Policy.
    AuthorizationPolicyType string
    Type of Authorization Policy.

    • PREDEFINED_READ_ONLY : System-defined read-only ACP, i.e. no modifications allowed.
    • SERVICE_DEFINED_READ_ONLY : Read-only ACP defined by a service.
    • PREDEFINED_UPDATE_IDENTITY_ONLY : System-defined ACP prohibiting any modifications from customer.
    • SERVICE_DEFINED : ACP defined by a service.
    • USER_DEFINED : ACP defined by an User.
    ClientName string
    Client that created the entity.
    CreatedBy string
    User or Service Name that created the Authorization Policy.
    CreatedTime string
    The creation time of the Authorization Policy.
    Description string
    Description of the Authorization Policy.
    DisplayName string
    Name of the Authorization Policy.
    Entities []GetAuthorizationPolicyV2Entity
    The entities being qualified by the Authorization Policy.
    ExtId string
    ext_id of Authorization policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities []GetAuthorizationPolicyV2Identity
    The identities for which the Authorization Policy is created.
    IsSystemDefined bool
    Flag identifying if the Authorization Policy is system defined or not.
    LastUpdatedTime string
    The time when the Authorization Policy was last updated.
    Role string
    The Role associated with the Authorization Policy.
    authorization_policy_type string
    Type of Authorization Policy.

    • PREDEFINED_READ_ONLY : System-defined read-only ACP, i.e. no modifications allowed.
    • SERVICE_DEFINED_READ_ONLY : Read-only ACP defined by a service.
    • PREDEFINED_UPDATE_IDENTITY_ONLY : System-defined ACP prohibiting any modifications from customer.
    • SERVICE_DEFINED : ACP defined by a service.
    • USER_DEFINED : ACP defined by an User.
    client_name string
    Client that created the entity.
    created_by string
    User or Service Name that created the Authorization Policy.
    created_time string
    The creation time of the Authorization Policy.
    description string
    Description of the Authorization Policy.
    display_name string
    Name of the Authorization Policy.
    entities list(object)
    The entities being qualified by the Authorization Policy.
    ext_id string
    ext_id of Authorization policy.
    id string
    The provider-assigned unique ID for this managed resource.
    identities list(object)
    The identities for which the Authorization Policy is created.
    is_system_defined bool
    Flag identifying if the Authorization Policy is system defined or not.
    last_updated_time string
    The time when the Authorization Policy was last updated.
    role string
    The Role associated with the Authorization Policy.
    authorizationPolicyType String
    Type of Authorization Policy.

    • PREDEFINED_READ_ONLY : System-defined read-only ACP, i.e. no modifications allowed.
    • SERVICE_DEFINED_READ_ONLY : Read-only ACP defined by a service.
    • PREDEFINED_UPDATE_IDENTITY_ONLY : System-defined ACP prohibiting any modifications from customer.
    • SERVICE_DEFINED : ACP defined by a service.
    • USER_DEFINED : ACP defined by an User.
    clientName String
    Client that created the entity.
    createdBy String
    User or Service Name that created the Authorization Policy.
    createdTime String
    The creation time of the Authorization Policy.
    description String
    Description of the Authorization Policy.
    displayName String
    Name of the Authorization Policy.
    entities List<GetAuthorizationPolicyV2Entity>
    The entities being qualified by the Authorization Policy.
    extId String
    ext_id of Authorization policy.
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<GetAuthorizationPolicyV2Identity>
    The identities for which the Authorization Policy is created.
    isSystemDefined Boolean
    Flag identifying if the Authorization Policy is system defined or not.
    lastUpdatedTime String
    The time when the Authorization Policy was last updated.
    role String
    The Role associated with the Authorization Policy.
    authorizationPolicyType string
    Type of Authorization Policy.

    • PREDEFINED_READ_ONLY : System-defined read-only ACP, i.e. no modifications allowed.
    • SERVICE_DEFINED_READ_ONLY : Read-only ACP defined by a service.
    • PREDEFINED_UPDATE_IDENTITY_ONLY : System-defined ACP prohibiting any modifications from customer.
    • SERVICE_DEFINED : ACP defined by a service.
    • USER_DEFINED : ACP defined by an User.
    clientName string
    Client that created the entity.
    createdBy string
    User or Service Name that created the Authorization Policy.
    createdTime string
    The creation time of the Authorization Policy.
    description string
    Description of the Authorization Policy.
    displayName string
    Name of the Authorization Policy.
    entities GetAuthorizationPolicyV2Entity[]
    The entities being qualified by the Authorization Policy.
    extId string
    ext_id of Authorization policy.
    id string
    The provider-assigned unique ID for this managed resource.
    identities GetAuthorizationPolicyV2Identity[]
    The identities for which the Authorization Policy is created.
    isSystemDefined boolean
    Flag identifying if the Authorization Policy is system defined or not.
    lastUpdatedTime string
    The time when the Authorization Policy was last updated.
    role string
    The Role associated with the Authorization Policy.
    authorization_policy_type str
    Type of Authorization Policy.

    • PREDEFINED_READ_ONLY : System-defined read-only ACP, i.e. no modifications allowed.
    • SERVICE_DEFINED_READ_ONLY : Read-only ACP defined by a service.
    • PREDEFINED_UPDATE_IDENTITY_ONLY : System-defined ACP prohibiting any modifications from customer.
    • SERVICE_DEFINED : ACP defined by a service.
    • USER_DEFINED : ACP defined by an User.
    client_name str
    Client that created the entity.
    created_by str
    User or Service Name that created the Authorization Policy.
    created_time str
    The creation time of the Authorization Policy.
    description str
    Description of the Authorization Policy.
    display_name str
    Name of the Authorization Policy.
    entities Sequence[GetAuthorizationPolicyV2Entity]
    The entities being qualified by the Authorization Policy.
    ext_id str
    ext_id of Authorization policy.
    id str
    The provider-assigned unique ID for this managed resource.
    identities Sequence[GetAuthorizationPolicyV2Identity]
    The identities for which the Authorization Policy is created.
    is_system_defined bool
    Flag identifying if the Authorization Policy is system defined or not.
    last_updated_time str
    The time when the Authorization Policy was last updated.
    role str
    The Role associated with the Authorization Policy.
    authorizationPolicyType String
    Type of Authorization Policy.

    • PREDEFINED_READ_ONLY : System-defined read-only ACP, i.e. no modifications allowed.
    • SERVICE_DEFINED_READ_ONLY : Read-only ACP defined by a service.
    • PREDEFINED_UPDATE_IDENTITY_ONLY : System-defined ACP prohibiting any modifications from customer.
    • SERVICE_DEFINED : ACP defined by a service.
    • USER_DEFINED : ACP defined by an User.
    clientName String
    Client that created the entity.
    createdBy String
    User or Service Name that created the Authorization Policy.
    createdTime String
    The creation time of the Authorization Policy.
    description String
    Description of the Authorization Policy.
    displayName String
    Name of the Authorization Policy.
    entities List<Property Map>
    The entities being qualified by the Authorization Policy.
    extId String
    ext_id of Authorization policy.
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<Property Map>
    The identities for which the Authorization Policy is created.
    isSystemDefined Boolean
    Flag identifying if the Authorization Policy is system defined or not.
    lastUpdatedTime String
    The time when the Authorization Policy was last updated.
    role String
    The Role associated with the Authorization Policy.

    Supporting Types

    GetAuthorizationPolicyV2Entity

    Reserved string
    Reserved string
    reserved string
    reserved String
    reserved string
    reserved String

    GetAuthorizationPolicyV2Identity

    Reserved string
    Reserved string
    reserved string
    reserved String
    reserved string
    reserved String

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Viewing docs for Nutanix v0.16.0
    published on Tuesday, May 26, 2026 by Piers Karsenbarg

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial