scaleway.InstanceIp
Explore with Pulumi AI
Creates and manages Scaleway Compute Instance IPs. For more information, see the documentation.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var serverIp = new Scaleway.InstanceIp("serverIp");
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewInstanceIp(ctx, "serverIp", nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.InstanceIp;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var serverIp = new InstanceIp("serverIp");
}
}
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
server_ip = scaleway.InstanceIp("serverIp")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const serverIp = new scaleway.InstanceIp("serverIp", {});
resources:
serverIp:
type: scaleway:InstanceIp
Create InstanceIp Resource
new InstanceIp(name: string, args?: InstanceIpArgs, opts?: CustomResourceOptions);
@overload
def InstanceIp(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
zone: Optional[str] = None)
@overload
def InstanceIp(resource_name: str,
args: Optional[InstanceIpArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewInstanceIp(ctx *Context, name string, args *InstanceIpArgs, opts ...ResourceOption) (*InstanceIp, error)
public InstanceIp(string name, InstanceIpArgs? args = null, CustomResourceOptions? opts = null)
public InstanceIp(String name, InstanceIpArgs args)
public InstanceIp(String name, InstanceIpArgs args, CustomResourceOptions options)
type: scaleway:InstanceIp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceIpArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceIpArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InstanceIp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The InstanceIp resource accepts the following input properties:
- project_
id str project_id
) The ID of the project the IP is associated with.- Sequence[str]
The tags associated with the IP.
- zone str
zone
) The zone in which the IP should be reserved.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceIp resource produces the following output properties:
- Address string
The IP address.
- Id string
The provider-assigned unique ID for this managed resource.
- Organization
Id string The organization ID the IP is associated with.
- Reverse string
The reverse dns attached to this IP
- Server
Id string The server associated with this IP
- Address string
The IP address.
- Id string
The provider-assigned unique ID for this managed resource.
- Organization
Id string The organization ID the IP is associated with.
- Reverse string
The reverse dns attached to this IP
- Server
Id string The server associated with this IP
- address String
The IP address.
- id String
The provider-assigned unique ID for this managed resource.
- organization
Id String The organization ID the IP is associated with.
- reverse String
The reverse dns attached to this IP
- server
Id String The server associated with this IP
- address string
The IP address.
- id string
The provider-assigned unique ID for this managed resource.
- organization
Id string The organization ID the IP is associated with.
- reverse string
The reverse dns attached to this IP
- server
Id string The server associated with this IP
- address str
The IP address.
- id str
The provider-assigned unique ID for this managed resource.
- organization_
id str The organization ID the IP is associated with.
- reverse str
The reverse dns attached to this IP
- server_
id str The server associated with this IP
- address String
The IP address.
- id String
The provider-assigned unique ID for this managed resource.
- organization
Id String The organization ID the IP is associated with.
- reverse String
The reverse dns attached to this IP
- server
Id String The server associated with this IP
Look up Existing InstanceIp Resource
Get an existing InstanceIp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InstanceIpState, opts?: CustomResourceOptions): InstanceIp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
reverse: Optional[str] = None,
server_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
zone: Optional[str] = None) -> InstanceIp
func GetInstanceIp(ctx *Context, name string, id IDInput, state *InstanceIpState, opts ...ResourceOption) (*InstanceIp, error)
public static InstanceIp Get(string name, Input<string> id, InstanceIpState? state, CustomResourceOptions? opts = null)
public static InstanceIp get(String name, Output<String> id, InstanceIpState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Address string
The IP address.
- Organization
Id string The organization ID the IP is associated with.
- Project
Id string project_id
) The ID of the project the IP is associated with.- Reverse string
The reverse dns attached to this IP
- Server
Id string The server associated with this IP
- List<string>
The tags associated with the IP.
- Zone string
zone
) The zone in which the IP should be reserved.
- Address string
The IP address.
- Organization
Id string The organization ID the IP is associated with.
- Project
Id string project_id
) The ID of the project the IP is associated with.- Reverse string
The reverse dns attached to this IP
- Server
Id string The server associated with this IP
- []string
The tags associated with the IP.
- Zone string
zone
) The zone in which the IP should be reserved.
- address String
The IP address.
- organization
Id String The organization ID the IP is associated with.
- project
Id String project_id
) The ID of the project the IP is associated with.- reverse String
The reverse dns attached to this IP
- server
Id String The server associated with this IP
- List<String>
The tags associated with the IP.
- zone String
zone
) The zone in which the IP should be reserved.
- address string
The IP address.
- organization
Id string The organization ID the IP is associated with.
- project
Id string project_id
) The ID of the project the IP is associated with.- reverse string
The reverse dns attached to this IP
- server
Id string The server associated with this IP
- string[]
The tags associated with the IP.
- zone string
zone
) The zone in which the IP should be reserved.
- address str
The IP address.
- organization_
id str The organization ID the IP is associated with.
- project_
id str project_id
) The ID of the project the IP is associated with.- reverse str
The reverse dns attached to this IP
- server_
id str The server associated with this IP
- Sequence[str]
The tags associated with the IP.
- zone str
zone
) The zone in which the IP should be reserved.
- address String
The IP address.
- organization
Id String The organization ID the IP is associated with.
- project
Id String project_id
) The ID of the project the IP is associated with.- reverse String
The reverse dns attached to this IP
- server
Id String The server associated with this IP
- List<String>
The tags associated with the IP.
- zone String
zone
) The zone in which the IP should be reserved.
Import
IPs can be imported using the {zone}/{id}
, e.g. bash
$ pulumi import scaleway:index/instanceIp:InstanceIp server_ip fr-par-1/11111111-1111-1111-1111-111111111111
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.