@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
103 lines (102 loc) • 2.84 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get a list of keypairs.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const keypairName = config.requireObject("keypairName");
* const test = huaweicloud.Dew.getKeypairs({
* name: keypairName,
* });
* ```
*/
export declare function getKeypairs(args?: GetKeypairsArgs, opts?: pulumi.InvokeOptions): Promise<GetKeypairsResult>;
/**
* A collection of arguments for invoking getKeypairs.
*/
export interface GetKeypairsArgs {
/**
* Specifies the fingerprint of the keypair.
*/
fingerprint?: string;
/**
* Indicates whether the private key is managed by HuaweiCloud.
*/
isManaged?: boolean;
/**
* Specifies the name of the keypair.
*/
name?: string;
/**
* Specifies the imported OpenSSH-formatted public key.
*/
publicKey?: string;
/**
* Specifies the region in which to obtain the keypairs. If omitted, the provider-level
* region will be used.
*/
region?: string;
}
/**
* A collection of values returned by getKeypairs.
*/
export interface GetKeypairsResult {
/**
* Indicates the fingerprint information about a keypair.
*/
readonly fingerprint?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Indicates whether the private key is managed by HuaweiCloud.
*/
readonly isManaged?: boolean;
/**
* The KPS keypairs list.
*/
readonly keypairs: outputs.Dew.GetKeypairsKeypair[];
/**
* Indicates the name of the keypair.
*/
readonly name?: string;
/**
* Indicates the imported OpenSSH-formatted public key.
*/
readonly publicKey?: string;
readonly region?: string;
}
export declare function getKeypairsOutput(args?: GetKeypairsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetKeypairsResult>;
/**
* A collection of arguments for invoking getKeypairs.
*/
export interface GetKeypairsOutputArgs {
/**
* Specifies the fingerprint of the keypair.
*/
fingerprint?: pulumi.Input<string>;
/**
* Indicates whether the private key is managed by HuaweiCloud.
*/
isManaged?: pulumi.Input<boolean>;
/**
* Specifies the name of the keypair.
*/
name?: pulumi.Input<string>;
/**
* Specifies the imported OpenSSH-formatted public key.
*/
publicKey?: pulumi.Input<string>;
/**
* Specifies the region in which to obtain the keypairs. If omitted, the provider-level
* region will be used.
*/
region?: pulumi.Input<string>;
}