@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
92 lines (91 loc) • 2.45 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to list all available HuaweiCloud gaussdb mysql instances.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const thisMysqlInstances = pulumi.output(huaweicloud.GaussDB.getMysqlInstances({
* name: "gaussdb-instance",
* }));
* ```
*/
export declare function getMysqlInstances(args?: GetMysqlInstancesArgs, opts?: pulumi.InvokeOptions): Promise<GetMysqlInstancesResult>;
/**
* A collection of arguments for invoking getMysqlInstances.
*/
export interface GetMysqlInstancesArgs {
/**
* Specifies the name of the instance.
*/
name?: string;
/**
* The region in which to obtain the instances. If omitted, the provider-level region will
* be used.
*/
region?: string;
/**
* Specifies the network ID of a subnet.
*/
subnetId?: string;
/**
* Specifies the VPC ID.
*/
vpcId?: string;
}
/**
* A collection of values returned by getMysqlInstances.
*/
export interface GetMysqlInstancesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* An array of available instances.
*/
readonly instances: outputs.GaussDB.GetMysqlInstancesInstance[];
/**
* Indicates the node name.
*/
readonly name?: string;
/**
* The region of the instance.
*/
readonly region: string;
/**
* Indicates the network ID of a subnet.
*/
readonly subnetId?: string;
/**
* Indicates the VPC ID.
*/
readonly vpcId?: string;
}
export declare function getMysqlInstancesOutput(args?: GetMysqlInstancesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMysqlInstancesResult>;
/**
* A collection of arguments for invoking getMysqlInstances.
*/
export interface GetMysqlInstancesOutputArgs {
/**
* Specifies the name of the instance.
*/
name?: pulumi.Input<string>;
/**
* The region in which to obtain the instances. If omitted, the provider-level region will
* be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the network ID of a subnet.
*/
subnetId?: pulumi.Input<string>;
/**
* Specifies the VPC ID.
*/
vpcId?: pulumi.Input<string>;
}