UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

141 lines (140 loc) 3.8 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get available HuaweiCloud GeminiDB Redis instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const test = pulumi.output(huaweicloud.GaussDBforNoSQL.getRedisInstance({ * name: "gaussdb-instance", * })); * ``` */ export declare function getRedisInstance(args?: GetRedisInstanceArgs, opts?: pulumi.InvokeOptions): Promise<GetRedisInstanceResult>; /** * A collection of arguments for invoking getRedisInstance. */ export interface GetRedisInstanceArgs { /** * Specifies the name of the instance. */ name?: string; /** * The region in which to obtain the instance. 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 getRedisInstance. */ export interface GetRedisInstanceResult { /** * Indicates the availability zone where the node resides. */ readonly availabilityZone: string; /** * Indicates the advanced backup policy. Structure is documented below. */ readonly backupStrategies: outputs.GaussDBforNoSQL.GetRedisInstanceBackupStrategy[]; /** * Indicates the database information. Structure is documented below. */ readonly datastores: outputs.GaussDBforNoSQL.GetRedisInstanceDatastore[]; /** * Indicates the default username. */ readonly dbUserName: string; /** * Indicates the enterprise project id. */ readonly enterpriseProjectId: string; /** * Indicates the instance specifications. */ readonly flavor: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Indicates the instance mode. */ readonly mode: string; /** * Indicates the node name. */ readonly name: string; /** * Indicates the count of the nodes. */ readonly nodeNum: number; /** * Indicates the instance nodes information. Structure is documented below. */ readonly nodes: outputs.GaussDBforNoSQL.GetRedisInstanceNode[]; /** * Indicates the database port. */ readonly port: number; /** * Indicates the list of private IP address of the nodes. */ readonly privateIps: string[]; readonly region: string; /** * Indicates the security group ID. */ readonly securityGroupId: string; /** * Indicates the node status. */ readonly status: string; readonly subnetId: string; /** * Indicates the key/value tags of the instance. */ readonly tags: { [key: string]: string; }; /** * Indicates the size of the volume. */ readonly volumeSize: number; readonly vpcId: string; } export declare function getRedisInstanceOutput(args?: GetRedisInstanceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRedisInstanceResult>; /** * A collection of arguments for invoking getRedisInstance. */ export interface GetRedisInstanceOutputArgs { /** * Specifies the name of the instance. */ name?: pulumi.Input<string>; /** * The region in which to obtain the instance. 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>; }