1. Packages
  2. Nutanix
  3. API Docs
  4. getPermissions
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

nutanix.getPermissions

Explore with Pulumi AI

nutanix logo
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

    Provides a datasource to retrieve all the permissions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pulumi/nutanix";
    
    const permissions = nutanix.getPermission({});
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    permissions = nutanix.get_permission()
    
    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.GetPermission(ctx, &nutanix.GetPermissionArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = Pulumi.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var permissions = Nutanix.GetPermission.Invoke();
    
    });
    
    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.GetPermissionArgs;
    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) {
            final var permissions = NutanixFunctions.getPermission();
    
        }
    }
    
    variables:
      permissions:
        fn::invoke:
          Function: nutanix:getPermission
          Arguments: {}
    

    Using getPermissions

    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 getPermissions(args: GetPermissionsArgs, opts?: InvokeOptions): Promise<GetPermissionsResult>
    function getPermissionsOutput(args: GetPermissionsOutputArgs, opts?: InvokeOptions): Output<GetPermissionsResult>
    def get_permissions(metadatas: Optional[Sequence[GetPermissionsMetadata]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetPermissionsResult
    def get_permissions_output(metadatas: Optional[pulumi.Input[Sequence[pulumi.Input[GetPermissionsMetadataArgs]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetPermissionsResult]
    func GetPermissions(ctx *Context, args *GetPermissionsArgs, opts ...InvokeOption) (*GetPermissionsResult, error)
    func GetPermissionsOutput(ctx *Context, args *GetPermissionsOutputArgs, opts ...InvokeOption) GetPermissionsResultOutput

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

    public static class GetPermissions 
    {
        public static Task<GetPermissionsResult> InvokeAsync(GetPermissionsArgs args, InvokeOptions? opts = null)
        public static Output<GetPermissionsResult> Invoke(GetPermissionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPermissionsResult> getPermissions(GetPermissionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: nutanix:index/getPermissions:getPermissions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Metadatas []GetPermissionsMetadata
    The permission kind metadata.
    metadatas List<GetPermissionsMetadata>
    The permission kind metadata.
    metadatas GetPermissionsMetadata[]
    The permission kind metadata.
    metadatas Sequence[GetPermissionsMetadata]
    The permission kind metadata.
    metadatas List<Property Map>
    The permission kind metadata.

    getPermissions Result

    The following output properties are available:

    ApiVersion string
    version of the API
    Entities List<PiersKarsenbarg.Nutanix.Outputs.GetPermissionsEntity>
    List of Permissions
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadatas List<PiersKarsenbarg.Nutanix.Outputs.GetPermissionsMetadata>
    The permission kind metadata.
    ApiVersion string
    version of the API
    Entities []GetPermissionsEntity
    List of Permissions
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadatas []GetPermissionsMetadata
    The permission kind metadata.
    apiVersion String
    version of the API
    entities List<GetPermissionsEntity>
    List of Permissions
    id String
    The provider-assigned unique ID for this managed resource.
    metadatas List<GetPermissionsMetadata>
    The permission kind metadata.
    apiVersion string
    version of the API
    entities GetPermissionsEntity[]
    List of Permissions
    id string
    The provider-assigned unique ID for this managed resource.
    metadatas GetPermissionsMetadata[]
    The permission kind metadata.
    api_version str
    version of the API
    entities Sequence[GetPermissionsEntity]
    List of Permissions
    id str
    The provider-assigned unique ID for this managed resource.
    metadatas Sequence[GetPermissionsMetadata]
    The permission kind metadata.
    apiVersion String
    version of the API
    entities List<Property Map>
    List of Permissions
    id String
    The provider-assigned unique ID for this managed resource.
    metadatas List<Property Map>
    The permission kind metadata.

    Supporting Types

    GetPermissionsEntity

    ApiVersion string
    version of the API
    Categories List<PiersKarsenbarg.Nutanix.Inputs.GetPermissionsEntityCategory>
    The categories for this resource.
    Description string
    A description for the permission.
    Fields List<PiersKarsenbarg.Nutanix.Inputs.GetPermissionsEntityField>
    . The fields that can/cannot be accessed during the specified operation. field_name_list will be a list of fields. e.g. if field_mode = disallowed, field_name_list = [“xyz”] then the list of allowed fields is ALL fields minus xyz. Seee Field for more info.
    Kind string
    (Required) The kind name (Default value: project).
    Metadata Dictionary<string, string>
    The permission kind metadata.
    Name string
    the name.
    Operation string
    The operation that is being performed on a given kind.
    OwnerReference Dictionary<string, string>
    The reference to a user.
    ProjectReference Dictionary<string, string>
    The reference to a project.
    State string
    The state of the permission.
    ApiVersion string
    version of the API
    Categories []GetPermissionsEntityCategory
    The categories for this resource.
    Description string
    A description for the permission.
    Fields []GetPermissionsEntityField
    . The fields that can/cannot be accessed during the specified operation. field_name_list will be a list of fields. e.g. if field_mode = disallowed, field_name_list = [“xyz”] then the list of allowed fields is ALL fields minus xyz. Seee Field for more info.
    Kind string
    (Required) The kind name (Default value: project).
    Metadata map[string]string
    The permission kind metadata.
    Name string
    the name.
    Operation string
    The operation that is being performed on a given kind.
    OwnerReference map[string]string
    The reference to a user.
    ProjectReference map[string]string
    The reference to a project.
    State string
    The state of the permission.
    apiVersion String
    version of the API
    categories List<GetPermissionsEntityCategory>
    The categories for this resource.
    description String
    A description for the permission.
    fields List<GetPermissionsEntityField>
    . The fields that can/cannot be accessed during the specified operation. field_name_list will be a list of fields. e.g. if field_mode = disallowed, field_name_list = [“xyz”] then the list of allowed fields is ALL fields minus xyz. Seee Field for more info.
    kind String
    (Required) The kind name (Default value: project).
    metadata Map<String,String>
    The permission kind metadata.
    name String
    the name.
    operation String
    The operation that is being performed on a given kind.
    ownerReference Map<String,String>
    The reference to a user.
    projectReference Map<String,String>
    The reference to a project.
    state String
    The state of the permission.
    apiVersion string
    version of the API
    categories GetPermissionsEntityCategory[]
    The categories for this resource.
    description string
    A description for the permission.
    fields GetPermissionsEntityField[]
    . The fields that can/cannot be accessed during the specified operation. field_name_list will be a list of fields. e.g. if field_mode = disallowed, field_name_list = [“xyz”] then the list of allowed fields is ALL fields minus xyz. Seee Field for more info.
    kind string
    (Required) The kind name (Default value: project).
    metadata {[key: string]: string}
    The permission kind metadata.
    name string
    the name.
    operation string
    The operation that is being performed on a given kind.
    ownerReference {[key: string]: string}
    The reference to a user.
    projectReference {[key: string]: string}
    The reference to a project.
    state string
    The state of the permission.
    api_version str
    version of the API
    categories Sequence[GetPermissionsEntityCategory]
    The categories for this resource.
    description str
    A description for the permission.
    fields Sequence[GetPermissionsEntityField]
    . The fields that can/cannot be accessed during the specified operation. field_name_list will be a list of fields. e.g. if field_mode = disallowed, field_name_list = [“xyz”] then the list of allowed fields is ALL fields minus xyz. Seee Field for more info.
    kind str
    (Required) The kind name (Default value: project).
    metadata Mapping[str, str]
    The permission kind metadata.
    name str
    the name.
    operation str
    The operation that is being performed on a given kind.
    owner_reference Mapping[str, str]
    The reference to a user.
    project_reference Mapping[str, str]
    The reference to a project.
    state str
    The state of the permission.
    apiVersion String
    version of the API
    categories List<Property Map>
    The categories for this resource.
    description String
    A description for the permission.
    fields List<Property Map>
    . The fields that can/cannot be accessed during the specified operation. field_name_list will be a list of fields. e.g. if field_mode = disallowed, field_name_list = [“xyz”] then the list of allowed fields is ALL fields minus xyz. Seee Field for more info.
    kind String
    (Required) The kind name (Default value: project).
    metadata Map<String>
    The permission kind metadata.
    name String
    the name.
    operation String
    The operation that is being performed on a given kind.
    ownerReference Map<String>
    The reference to a user.
    projectReference Map<String>
    The reference to a project.
    state String
    The state of the permission.

    GetPermissionsEntityCategory

    Name string
    the name.
    Value string
    value of the key.
    Name string
    the name.
    Value string
    value of the key.
    name String
    the name.
    value String
    value of the key.
    name string
    the name.
    value string
    value of the key.
    name str
    the name.
    value str
    value of the key.
    name String
    the name.
    value String
    value of the key.

    GetPermissionsEntityField

    FieldMode string
    Allow or disallow the fields mentioned.
    FieldNameLists List<string>
    The list of fields.
    FieldMode string
    Allow or disallow the fields mentioned.
    FieldNameLists []string
    The list of fields.
    fieldMode String
    Allow or disallow the fields mentioned.
    fieldNameLists List<String>
    The list of fields.
    fieldMode string
    Allow or disallow the fields mentioned.
    fieldNameLists string[]
    The list of fields.
    field_mode str
    Allow or disallow the fields mentioned.
    field_name_lists Sequence[str]
    The list of fields.
    fieldMode String
    Allow or disallow the fields mentioned.
    fieldNameLists List<String>
    The list of fields.

    GetPermissionsMetadata

    Filter string
    Kind string
    (Required) The kind name (Default value: project).
    Length int
    Offset int
    SortAttribute string
    SortOrder string
    Filter string
    Kind string
    (Required) The kind name (Default value: project).
    Length int
    Offset int
    SortAttribute string
    SortOrder string
    filter String
    kind String
    (Required) The kind name (Default value: project).
    length Integer
    offset Integer
    sortAttribute String
    sortOrder String
    filter string
    kind string
    (Required) The kind name (Default value: project).
    length number
    offset number
    sortAttribute string
    sortOrder string
    filter str
    kind str
    (Required) The kind name (Default value: project).
    length int
    offset int
    sort_attribute str
    sort_order str
    filter String
    kind String
    (Required) The kind name (Default value: project).
    length Number
    offset Number
    sortAttribute String
    sortOrder 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
    Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg