UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

145 lines 4.95 kB
import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway compute Instance IPs. For more information, see the [API documentation](https://www.scaleway.com/en/developers/api/instance/#path-ips-list-all-flexible-ips). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const serverIp = new scaleway.instance.Ip("server_ip", {}); * ``` * * ## Import * * IPs can be imported using the `{zone}/{id}`, e.g. * * ```sh * $ pulumi import scaleway:instance/ip:Ip server_ip fr-par-1/11111111-1111-1111-1111-111111111111 * ``` */ export declare class Ip extends pulumi.CustomResource { /** * Get an existing Ip resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: IpState, opts?: pulumi.CustomResourceOptions): Ip; /** * Returns true if the given object is an instance of Ip. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Ip; /** * The IP address. */ readonly address: pulumi.Output<string>; /** * The organization ID the IP is associated with. */ readonly organizationId: pulumi.Output<string>; /** * The IP Prefix. */ readonly prefix: pulumi.Output<string>; /** * `projectId`) The ID of the project the IP is associated with. */ readonly projectId: pulumi.Output<string>; /** * The reverse dns attached to this IP */ readonly reverse: pulumi.Output<string>; /** * The server associated with this IP */ readonly serverId: pulumi.Output<string>; /** * The tags associated with the IP. */ readonly tags: pulumi.Output<string[] | undefined>; /** * The type of the IP (`routedIpv4`, `routedIpv6`), more information in [the documentation](https://www.scaleway.com/en/docs/compute/instances/api-cli/using-routed-ips/) */ readonly type: pulumi.Output<string>; /** * `zone`) The zone in which the IP should be reserved. */ readonly zone: pulumi.Output<string | undefined>; /** * Create a Ip resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: IpArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Ip resources. */ export interface IpState { /** * The IP address. */ address?: pulumi.Input<string | undefined>; /** * The organization ID the IP is associated with. */ organizationId?: pulumi.Input<string | undefined>; /** * The IP Prefix. */ prefix?: pulumi.Input<string | undefined>; /** * `projectId`) The ID of the project the IP is associated with. */ projectId?: pulumi.Input<string | undefined>; /** * The reverse dns attached to this IP */ reverse?: pulumi.Input<string | undefined>; /** * The server associated with this IP */ serverId?: pulumi.Input<string | undefined>; /** * The tags associated with the IP. */ tags?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * The type of the IP (`routedIpv4`, `routedIpv6`), more information in [the documentation](https://www.scaleway.com/en/docs/compute/instances/api-cli/using-routed-ips/) */ type?: pulumi.Input<string | undefined>; /** * `zone`) The zone in which the IP should be reserved. */ zone?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a Ip resource. */ export interface IpArgs { /** * `projectId`) The ID of the project the IP is associated with. */ projectId?: pulumi.Input<string | undefined>; /** * The tags associated with the IP. */ tags?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * The type of the IP (`routedIpv4`, `routedIpv6`), more information in [the documentation](https://www.scaleway.com/en/docs/compute/instances/api-cli/using-routed-ips/) */ type?: pulumi.Input<string | undefined>; /** * `zone`) The zone in which the IP should be reserved. */ zone?: pulumi.Input<string | undefined>; } //# sourceMappingURL=ip.d.ts.map