import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Describe a Nutanix Permission and its values (if it has them). * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * //Get permission by UUID * const byuuid = nutanix.getPermission({ * permissionId: "26b81a55-2bca-48c6-9fab-4f82c6bb4284", * }); * //Get permission by name * const byname = nutanix.getPermission({ * permissionName: "Access_Console_Virtual_Machine", * }); * ``` * */ export declare function getPermission(args?: GetPermissionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPermission. */ export interface GetPermissionArgs { /** * The categories for this resource. */ categories?: inputs.GetPermissionCategory[]; /** * The `id` of the permission. */ permissionId?: string; /** * The `name` of the permission. */ permissionName?: string; } /** * A collection of values returned by getPermission. */ export interface GetPermissionResult { readonly apiVersion: string; /** * The categories for this resource. */ readonly categories: outputs.GetPermissionCategory[]; /** * A description for the permission. */ readonly description: string; /** * . The fields that can/cannot be accessed during the specified operation. fieldNameList will be a list of fields. e.g. if fieldMode = disallowed, fieldNameList = [“xyz”] then the list of allowed fields is ALL fields minus xyz. Seee Field for more info. */ readonly fields: outputs.GetPermissionField[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * (Required) The kind name (Default value: `project`). */ readonly kind: string; /** * The permission kind metadata. */ readonly metadata: { [key: string]: string; }; /** * the name. */ readonly name: string; /** * The operation that is being performed on a given kind. */ readonly operation: string; /** * The reference to a user. */ readonly ownerReference: { [key: string]: string; }; readonly permissionId?: string; readonly permissionName?: string; /** * The reference to a project. */ readonly projectReference: { [key: string]: string; }; /** * The state of the permission. */ readonly state: string; } /** * Describe a Nutanix Permission and its values (if it has them). * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * //Get permission by UUID * const byuuid = nutanix.getPermission({ * permissionId: "26b81a55-2bca-48c6-9fab-4f82c6bb4284", * }); * //Get permission by name * const byname = nutanix.getPermission({ * permissionName: "Access_Console_Virtual_Machine", * }); * ``` * */ export declare function getPermissionOutput(args?: GetPermissionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPermission. */ export interface GetPermissionOutputArgs { /** * The categories for this resource. */ categories?: pulumi.Input[] | undefined>; /** * The `id` of the permission. */ permissionId?: pulumi.Input; /** * The `name` of the permission. */ permissionName?: pulumi.Input; } //# sourceMappingURL=getPermission.d.ts.map