UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

122 lines (121 loc) 3.9 kB
import * as pulumi from "@pulumi/pulumi"; /** * 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.getInstancePrivateNic({ * privateNicId: "11111111-1111-1111-1111-111111111111", * serverId: "11111111-1111-1111-1111-111111111111", * }); * const byPnId = scaleway.getInstancePrivateNic({ * privateNetworkId: "11111111-1111-1111-1111-111111111111", * serverId: "11111111-1111-1111-1111-111111111111", * }); * const byTags = scaleway.getInstancePrivateNic({ * serverId: "11111111-1111-1111-1111-111111111111", * tags: ["mytag"], * }); * ``` */ export declare function getInstancePrivateNic(args: GetInstancePrivateNicArgs, opts?: pulumi.InvokeOptions): Promise<GetInstancePrivateNicResult>; /** * A collection of arguments for invoking getInstancePrivateNic. */ export interface GetInstancePrivateNicArgs { /** * 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 getInstancePrivateNic. */ export interface GetInstancePrivateNicResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ipIds: string[]; readonly macAddress: string; 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.getInstancePrivateNic({ * privateNicId: "11111111-1111-1111-1111-111111111111", * serverId: "11111111-1111-1111-1111-111111111111", * }); * const byPnId = scaleway.getInstancePrivateNic({ * privateNetworkId: "11111111-1111-1111-1111-111111111111", * serverId: "11111111-1111-1111-1111-111111111111", * }); * const byTags = scaleway.getInstancePrivateNic({ * serverId: "11111111-1111-1111-1111-111111111111", * tags: ["mytag"], * }); * ``` */ export declare function getInstancePrivateNicOutput(args: GetInstancePrivateNicOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstancePrivateNicResult>; /** * A collection of arguments for invoking getInstancePrivateNic. */ export interface GetInstancePrivateNicOutputArgs { /** * 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>; }