@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
138 lines (137 loc) • 3.52 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of vke permissions
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.vke.getPermissions({
* granteeType: "User",
* ids: ["apd10o9jhqqno0ba25****"],
* });
* ```
*/
export declare function getPermissions(args?: GetPermissionsArgs, opts?: pulumi.InvokeOptions): Promise<GetPermissionsResult>;
/**
* A collection of arguments for invoking getPermissions.
*/
export interface GetPermissionsArgs {
/**
* A list of Cluster IDs.
*/
clusterIds?: string[];
/**
* A list of Grantee IDs.
*/
granteeIds?: number[];
/**
* The type of Grantee. Valid values: `User`, `Role`.
*/
granteeType?: string;
/**
* A list of RBAC Permission IDs.
*/
ids?: string[];
/**
* A list of Namespaces.
*/
namespaces?: string[];
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* A list of RBAC Role Names.
*/
roleNames?: string[];
/**
* The status of RBAC Permission.
*/
status?: string;
}
/**
* A collection of values returned by getPermissions.
*/
export interface GetPermissionsResult {
/**
* The collection of query.
*/
readonly accessPolicies: outputs.vke.GetPermissionsAccessPolicy[];
readonly clusterIds?: string[];
readonly granteeIds?: number[];
/**
* The type of the Grantee.
*/
readonly granteeType?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids?: string[];
readonly namespaces?: string[];
readonly outputFile?: string;
readonly roleNames?: string[];
/**
* The status of the RBAC Permission.
*/
readonly status?: string;
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of vke permissions
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.vke.getPermissions({
* granteeType: "User",
* ids: ["apd10o9jhqqno0ba25****"],
* });
* ```
*/
export declare function getPermissionsOutput(args?: GetPermissionsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPermissionsResult>;
/**
* A collection of arguments for invoking getPermissions.
*/
export interface GetPermissionsOutputArgs {
/**
* A list of Cluster IDs.
*/
clusterIds?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A list of Grantee IDs.
*/
granteeIds?: pulumi.Input<pulumi.Input<number>[]>;
/**
* The type of Grantee. Valid values: `User`, `Role`.
*/
granteeType?: pulumi.Input<string>;
/**
* A list of RBAC Permission IDs.
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A list of Namespaces.
*/
namespaces?: pulumi.Input<pulumi.Input<string>[]>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* A list of RBAC Role Names.
*/
roleNames?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The status of RBAC Permission.
*/
status?: pulumi.Input<string>;
}