Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg
nutanix.getPermissions
Explore with Pulumi AI
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
List<Piers
Karsenbarg. Nutanix. Inputs. Get Permissions Metadata> - The permission kind metadata.
- Metadatas
[]Get
Permissions Metadata - The permission kind metadata.
- metadatas
List<Get
Permissions Metadata> - The permission kind metadata.
- metadatas
Get
Permissions Metadata[] - The permission kind metadata.
- metadatas
Sequence[Get
Permissions Metadata] - The permission kind metadata.
- metadatas List<Property Map>
- The permission kind metadata.
getPermissions Result
The following output properties are available:
- Api
Version string - version of the API
- Entities
List<Piers
Karsenbarg. Nutanix. Outputs. Get Permissions Entity> - List of Permissions
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
List<Piers
Karsenbarg. Nutanix. Outputs. Get Permissions Metadata> - The permission kind metadata.
- Api
Version string - version of the API
- Entities
[]Get
Permissions Entity - List of Permissions
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
[]Get
Permissions Metadata - The permission kind metadata.
- api
Version String - version of the API
- entities
List<Get
Permissions Entity> - List of Permissions
- id String
- The provider-assigned unique ID for this managed resource.
- metadatas
List<Get
Permissions Metadata> - The permission kind metadata.
- api
Version string - version of the API
- entities
Get
Permissions Entity[] - List of Permissions
- id string
- The provider-assigned unique ID for this managed resource.
- metadatas
Get
Permissions Metadata[] - The permission kind metadata.
- api_
version str - version of the API
- entities
Sequence[Get
Permissions Entity] - List of Permissions
- id str
- The provider-assigned unique ID for this managed resource.
- metadatas
Sequence[Get
Permissions Metadata] - The permission kind metadata.
- api
Version 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
- Api
Version string - version of the API
- Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Get Permissions Entity Category> - The categories for this resource.
- Description string
- A description for the permission.
- Fields
List<Piers
Karsenbarg. Nutanix. Inputs. Get Permissions Entity Field> - . 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.
- Owner
Reference Dictionary<string, string> - The reference to a user.
- Project
Reference Dictionary<string, string> - The reference to a project.
- State string
- The state of the permission.
- Api
Version string - version of the API
- Categories
[]Get
Permissions Entity Category - The categories for this resource.
- Description string
- A description for the permission.
- Fields
[]Get
Permissions Entity Field - . 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.
- Owner
Reference map[string]string - The reference to a user.
- Project
Reference map[string]string - The reference to a project.
- State string
- The state of the permission.
- api
Version String - version of the API
- categories
List<Get
Permissions Entity Category> - The categories for this resource.
- description String
- A description for the permission.
- fields
List<Get
Permissions Entity Field> - . 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.
- owner
Reference Map<String,String> - The reference to a user.
- project
Reference Map<String,String> - The reference to a project.
- state String
- The state of the permission.
- api
Version string - version of the API
- categories
Get
Permissions Entity Category[] - The categories for this resource.
- description string
- A description for the permission.
- fields
Get
Permissions Entity Field[] - . 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.
- owner
Reference {[key: string]: string} - The reference to a user.
- project
Reference {[key: string]: string} - The reference to a project.
- state string
- The state of the permission.
- api_
version str - version of the API
- categories
Sequence[Get
Permissions Entity Category] - The categories for this resource.
- description str
- A description for the permission.
- fields
Sequence[Get
Permissions Entity Field] - . 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.
- api
Version 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.
- owner
Reference Map<String> - The reference to a user.
- project
Reference Map<String> - The reference to a project.
- state String
- The state of the permission.
GetPermissionsEntityCategory
GetPermissionsEntityField
- Field
Mode string - Allow or disallow the fields mentioned.
- Field
Name List<string>Lists - The list of fields.
- Field
Mode string - Allow or disallow the fields mentioned.
- Field
Name []stringLists - The list of fields.
- field
Mode String - Allow or disallow the fields mentioned.
- field
Name List<String>Lists - The list of fields.
- field
Mode string - Allow or disallow the fields mentioned.
- field
Name string[]Lists - The list of fields.
- field_
mode str - Allow or disallow the fields mentioned.
- field_
name_ Sequence[str]lists - The list of fields.
- field
Mode String - Allow or disallow the fields mentioned.
- field
Name List<String>Lists - The list of fields.
GetPermissionsMetadata
- filter str
- kind str
- (Required) The kind name (Default value:
project
). - 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
nutanix
Terraform Provider.