UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

118 lines (117 loc) 3.28 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get a list of CCE nodes. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const clusterId = config.requireObject("clusterId"); * const nodeName = config.requireObject("nodeName"); * const node = huaweicloud.Cce.getNodes({ * clusterId: clusterId, * name: nodeName, * }); * ``` */ export declare function getNodes(args: GetNodesArgs, opts?: pulumi.InvokeOptions): Promise<GetNodesResult>; /** * A collection of arguments for invoking getNodes. */ export interface GetNodesArgs { /** * Specifies the ID of CCE cluster. */ clusterId: string; /** * Specifies which detail information of the nodes to ignore. * You can use this parameter to ignore some information you don't care about and make the query faster. * The value can be: * + **tags**: ignore the tags of the nodes. */ ignoreDetails?: string; /** * Specifies the of the node. */ name?: string; /** * Specifies the ID of the node. */ nodeId?: string; /** * Specifies the region in which to obtain the CCE nodes. If omitted, the provider-level * region will be used. */ region?: string; /** * Specifies the status of the node. */ status?: string; } /** * A collection of values returned by getNodes. */ export interface GetNodesResult { readonly clusterId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Indicates a list of IDs of all CCE nodes found. */ readonly ids: string[]; readonly ignoreDetails?: string; /** * The name of the node. */ readonly name?: string; readonly nodeId?: string; /** * Indicates a list of CCE nodes found. Structure is documented below. */ readonly nodes: outputs.Cce.GetNodesNode[]; readonly region: string; /** * The state of the node. */ readonly status?: string; } export declare function getNodesOutput(args: GetNodesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNodesResult>; /** * A collection of arguments for invoking getNodes. */ export interface GetNodesOutputArgs { /** * Specifies the ID of CCE cluster. */ clusterId: pulumi.Input<string>; /** * Specifies which detail information of the nodes to ignore. * You can use this parameter to ignore some information you don't care about and make the query faster. * The value can be: * + **tags**: ignore the tags of the nodes. */ ignoreDetails?: pulumi.Input<string>; /** * Specifies the of the node. */ name?: pulumi.Input<string>; /** * Specifies the ID of the node. */ nodeId?: pulumi.Input<string>; /** * Specifies the region in which to obtain the CCE nodes. If omitted, the provider-level * region will be used. */ region?: pulumi.Input<string>; /** * Specifies the status of the node. */ status?: pulumi.Input<string>; }