UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

152 lines (151 loc) 3.99 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * To get the specified node in a cluster. * * ## 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.getNode({ * clusterId: clusterId, * name: nodeName, * }); * ``` */ export declare function getNode(args: GetNodeArgs, opts?: pulumi.InvokeOptions): Promise<GetNodeResult>; /** * A collection of arguments for invoking getNode. */ export interface GetNodeArgs { /** * Specifies the ID of container cluster. */ clusterId: string; /** * Specifies the name 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 state of the node. */ status?: string; } /** * A collection of values returned by getNode. */ export interface GetNodeResult { /** * Available partitions where the node is located. */ readonly availabilityZone: string; /** * Node's billing mode: The value is 0 (on demand). */ readonly billingMode: number; readonly clusterId: string; /** * Represents the data disk to be created. Structure is documented below. */ readonly dataVolumes: outputs.Cce.GetNodeDataVolume[]; /** * The ID of ECS group to which the node belongs. */ readonly ecsGroupId: string; /** * The enterprise project ID of the node. */ readonly enterpriseProjectId: string; /** * The flavor ID to be used. */ readonly flavorId: string; /** * The hostname config of the kubernetes node. * The object structure is documented below. */ readonly hostnameConfigs: outputs.Cce.GetNodeHostnameConfig[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Key pair name when logging in to select the key pair mode. */ readonly keyPair: string; readonly name: string; readonly nodeId: string; /** * Operating System of the node. */ readonly os: string; /** * Private IP of the node. */ readonly privateIp: string; /** * Elastic IP parameters of the node. */ readonly publicIp: string; readonly region: string; /** * It corresponds to the system disk related configuration. Structure is documented below. */ readonly rootVolumes: outputs.Cce.GetNodeRootVolume[]; /** * The node's virtual machine ID in ECS. */ readonly serverId: string; readonly status: string; /** * The ID of the subnet to which the NIC belongs. */ readonly subnetId: string; /** * Tags of a VM node, key/value pair format. */ readonly tags: { [key: string]: string; }; } export declare function getNodeOutput(args: GetNodeOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNodeResult>; /** * A collection of arguments for invoking getNode. */ export interface GetNodeOutputArgs { /** * Specifies the ID of container cluster. */ clusterId: pulumi.Input<string>; /** * Specifies the name 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 state of the node. */ status?: pulumi.Input<string>; }