@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
127 lines (126 loc) • 4.36 kB
TypeScript
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"],
* });
* ```
*/
/** @deprecated scaleway.index/getinstanceprivatenic.getInstancePrivateNic has been deprecated in favor of scaleway.instance/getprivatenic.getPrivateNic */
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 ipamIpIds: string[];
readonly macAddress: string;
readonly privateIps: outputs.GetInstancePrivateNicPrivateIp[];
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"],
* });
* ```
*/
/** @deprecated scaleway.index/getinstanceprivatenic.getInstancePrivateNic has been deprecated in favor of scaleway.instance/getprivatenic.getPrivateNic */
export declare function getInstancePrivateNicOutput(args: GetInstancePrivateNicOutputArgs, opts?: pulumi.InvokeOutputOptions): 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>;
}