UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

125 lines (124 loc) 3.96 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets information about an instance private NIC. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byNicId = scaleway.instance.getPrivateNic({ * serverId: "11111111-1111-1111-1111-111111111111", * privateNicId: "11111111-1111-1111-1111-111111111111", * }); * const byPnId = scaleway.instance.getPrivateNic({ * serverId: "11111111-1111-1111-1111-111111111111", * privateNetworkId: "11111111-1111-1111-1111-111111111111", * }); * const byTags = scaleway.instance.getPrivateNic({ * serverId: "11111111-1111-1111-1111-111111111111", * tags: ["mytag"], * }); * ``` */ export declare function getPrivateNic(args: GetPrivateNicArgs, opts?: pulumi.InvokeOptions): Promise<GetPrivateNicResult>; /** * A collection of arguments for invoking getPrivateNic. */ export interface GetPrivateNicArgs { /** * The ID of the private network * Only one of `privateNicId` and `privateNetworkId` should be specified. */ privateNetworkId?: string; /** * The ID of the instance server private nic * Only one of `privateNicId` and `privateNetworkId` should be specified. */ privateNicId?: string; /** * The server's id */ serverId: string; /** * The tags associated with the private NIC. * As datasource only returns one private NIC, the search with given tags must return only one result */ tags?: string[]; /** * `zone`) The zone in which the private nic exists. */ zone?: string; } /** * A collection of values returned by getPrivateNic. */ export interface GetPrivateNicResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ipIds: string[]; readonly ipamIpIds: string[]; readonly macAddress: string; readonly privateIps: outputs.instance.GetPrivateNicPrivateIp[]; readonly privateNetworkId?: string; readonly privateNicId?: string; readonly serverId: string; readonly tags?: string[]; readonly zone?: string; } /** * Gets information about an instance private NIC. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byNicId = scaleway.instance.getPrivateNic({ * serverId: "11111111-1111-1111-1111-111111111111", * privateNicId: "11111111-1111-1111-1111-111111111111", * }); * const byPnId = scaleway.instance.getPrivateNic({ * serverId: "11111111-1111-1111-1111-111111111111", * privateNetworkId: "11111111-1111-1111-1111-111111111111", * }); * const byTags = scaleway.instance.getPrivateNic({ * serverId: "11111111-1111-1111-1111-111111111111", * tags: ["mytag"], * }); * ``` */ export declare function getPrivateNicOutput(args: GetPrivateNicOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPrivateNicResult>; /** * A collection of arguments for invoking getPrivateNic. */ export interface GetPrivateNicOutputArgs { /** * The ID of the private network * Only one of `privateNicId` and `privateNetworkId` should be specified. */ privateNetworkId?: pulumi.Input<string>; /** * The ID of the instance server private nic * Only one of `privateNicId` and `privateNetworkId` should be specified. */ privateNicId?: pulumi.Input<string>; /** * The server's id */ serverId: pulumi.Input<string>; /** * The tags associated with the private NIC. * As datasource only returns one private NIC, the search with given tags must return only one result */ tags?: pulumi.Input<pulumi.Input<string>[]>; /** * `zone`) The zone in which the private nic exists. */ zone?: pulumi.Input<string>; }