Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg
nutanix.getRoles
Explore with Pulumi AI
Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg
Describes a list of roles.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const test = nutanix.getRoles({});
import pulumi
import pulumi_nutanix as nutanix
test = nutanix.get_roles()
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.GetRoles(ctx, nil, 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 test = Nutanix.GetRoles.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.GetRolesArgs;
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 test = NutanixFunctions.getRoles();
    }
}
variables:
  test:
    fn::invoke:
      Function: nutanix:getRoles
      Arguments: {}
Using getRoles
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 getRoles(args: GetRolesArgs, opts?: InvokeOptions): Promise<GetRolesResult>
function getRolesOutput(args: GetRolesOutputArgs, opts?: InvokeOptions): Output<GetRolesResult>def get_roles(metadatas: Optional[Sequence[GetRolesMetadata]] = None,
              opts: Optional[InvokeOptions] = None) -> GetRolesResult
def get_roles_output(metadatas: Optional[pulumi.Input[Sequence[pulumi.Input[GetRolesMetadataArgs]]]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetRolesResult]func GetRoles(ctx *Context, args *GetRolesArgs, opts ...InvokeOption) (*GetRolesResult, error)
func GetRolesOutput(ctx *Context, args *GetRolesOutputArgs, opts ...InvokeOption) GetRolesResultOutput> Note: This function is named GetRoles in the Go SDK.
public static class GetRoles 
{
    public static Task<GetRolesResult> InvokeAsync(GetRolesArgs args, InvokeOptions? opts = null)
    public static Output<GetRolesResult> Invoke(GetRolesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRolesResult> getRoles(GetRolesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: nutanix:index/getRoles:getRoles
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Metadatas
List<Piers
Karsenbarg. Nutanix. Inputs. Get Roles Metadata>  - The role kind metadata.
 
- Metadatas
[]Get
Roles Metadata  - The role kind metadata.
 
- metadatas
List<Get
Roles Metadata>  - The role kind metadata.
 
- metadatas
Get
Roles Metadata[]  - The role kind metadata.
 
- metadatas
Sequence[Get
Roles Metadata]  - The role kind metadata.
 
- metadatas List<Property Map>
 - The role kind metadata.
 
getRoles Result
The following output properties are available:
- Api
Version string - The version of the API.
 - Entities
List<Piers
Karsenbarg. Nutanix. Outputs. Get Roles Entity>  - List of Roles
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Metadatas
List<Piers
Karsenbarg. Nutanix. Outputs. Get Roles Metadata>  - The role kind metadata.
 
- Api
Version string - The version of the API.
 - Entities
[]Get
Roles Entity  - List of Roles
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Metadatas
[]Get
Roles Metadata  - The role kind metadata.
 
- api
Version String - The version of the API.
 - entities
List<Get
Roles Entity>  - List of Roles
 - id String
 - The provider-assigned unique ID for this managed resource.
 - metadatas
List<Get
Roles Metadata>  - The role kind metadata.
 
- api
Version string - The version of the API.
 - entities
Get
Roles Entity[]  - List of Roles
 - id string
 - The provider-assigned unique ID for this managed resource.
 - metadatas
Get
Roles Metadata[]  - The role kind metadata.
 
- api_
version str - The version of the API.
 - entities
Sequence[Get
Roles Entity]  - List of Roles
 - id str
 - The provider-assigned unique ID for this managed resource.
 - metadatas
Sequence[Get
Roles Metadata]  - The role kind metadata.
 
- api
Version String - The version of the API.
 - entities List<Property Map>
 - List of Roles
 - id String
 - The provider-assigned unique ID for this managed resource.
 - metadatas List<Property Map>
 - The role kind metadata.
 
Supporting Types
GetRolesEntity  
- Api
Version string - The version of the API.
 - Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Get Roles Entity Category>  - Categories for the role.
 
- Description string
 - The description of the role.
 
- Metadata Dictionary<string, string>
 - The role kind metadata.
 
- Name string
 - the name(Optional).
 
- Owner
Reference Dictionary<string, string> - The reference to a user.
 
- Permission
Reference List<PiersLists Karsenbarg. Nutanix. Inputs. Get Roles Entity Permission Reference List>  - (Required) List of permission references.
 
- Project
Reference Dictionary<string, string> - The reference to a project.
 
- Role
Id string - State string
 - The state of the role.
 
- Api
Version string - The version of the API.
 - Categories
[]Get
Roles Entity Category  - Categories for the role.
 
- Description string
 - The description of the role.
 
- Metadata map[string]string
 - The role kind metadata.
 
- Name string
 - the name(Optional).
 
- Owner
Reference map[string]string - The reference to a user.
 
- Permission
Reference []GetLists Roles Entity Permission Reference List  - (Required) List of permission references.
 
- Project
Reference map[string]string - The reference to a project.
 
- Role
Id string - State string
 - The state of the role.
 
- api
Version String - The version of the API.
 - categories
List<Get
Roles Entity Category>  - Categories for the role.
 
- description String
 - The description of the role.
 
- metadata Map<String,String>
 - The role kind metadata.
 
- name String
 - the name(Optional).
 
- owner
Reference Map<String,String> - The reference to a user.
 
- permission
Reference List<GetLists Roles Entity Permission Reference List>  - (Required) List of permission references.
 
- project
Reference Map<String,String> - The reference to a project.
 
- role
Id String - state String
 - The state of the role.
 
- api
Version string - The version of the API.
 - categories
Get
Roles Entity Category[]  - Categories for the role.
 
- description string
 - The description of the role.
 
- metadata {[key: string]: string}
 - The role kind metadata.
 
- name string
 - the name(Optional).
 
- owner
Reference {[key: string]: string} - The reference to a user.
 
- permission
Reference GetLists Roles Entity Permission Reference List[]  - (Required) List of permission references.
 
- project
Reference {[key: string]: string} - The reference to a project.
 
- role
Id string - state string
 - The state of the role.
 
- api_
version str - The version of the API.
 - categories
Sequence[Get
Roles Entity Category]  - Categories for the role.
 
- description str
 - The description of the role.
 
- metadata Mapping[str, str]
 - The role kind metadata.
 
- name str
 - the name(Optional).
 
- owner_
reference Mapping[str, str] - The reference to a user.
 
- permission_
reference_ Sequence[Getlists Roles Entity Permission Reference List]  - (Required) List of permission references.
 
- project_
reference Mapping[str, str] - The reference to a project.
 
- role_
id str - state str
 - The state of the role.
 
- api
Version String - The version of the API.
 - categories List<Property Map>
 - Categories for the role.
 
- description String
 - The description of the role.
 
- metadata Map<String>
 - The role kind metadata.
 
- name String
 - the name(Optional).
 
- owner
Reference Map<String> - The reference to a user.
 
- permission
Reference List<Property Map>Lists  - (Required) List of permission references.
 
- project
Reference Map<String> - The reference to a project.
 
- role
Id String - state String
 - The state of the role.
 
GetRolesEntityCategory   
GetRolesEntityPermissionReferenceList     
GetRolesMetadata  
- filter str
 - kind str
 - The kind name (Default value: project)(Required).
 
- length int
 - offset int
 - sort_
attribute str - sort_
order str 
Package Details
- Repository
 - nutanix pierskarsenbarg/pulumi-nutanix
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
nutanixTerraform Provider. 
Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg