outscale.PublicIp
Explore with Pulumi AI
Manages a public IP.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const publicIp01 = new outscale.PublicIp("publicIp01", {});
import pulumi
import pulumi_outscale as outscale
public_ip01 = outscale.PublicIp("publicIp01")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewPublicIp(ctx, "publicIp01", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var publicIp01 = new Outscale.PublicIp("publicIp01");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.PublicIp;
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 publicIp01 = new PublicIp("publicIp01");
    }
}
resources:
  publicIp01:
    type: outscale:PublicIp
Create PublicIp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PublicIp(name: string, args?: PublicIpArgs, opts?: CustomResourceOptions);@overload
def PublicIp(resource_name: str,
             args: Optional[PublicIpArgs] = None,
             opts: Optional[ResourceOptions] = None)
@overload
def PublicIp(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             outscale_public_ip_id: Optional[str] = None,
             tags: Optional[Sequence[PublicIpTagArgs]] = None,
             timeouts: Optional[PublicIpTimeoutsArgs] = None)func NewPublicIp(ctx *Context, name string, args *PublicIpArgs, opts ...ResourceOption) (*PublicIp, error)public PublicIp(string name, PublicIpArgs? args = null, CustomResourceOptions? opts = null)
public PublicIp(String name, PublicIpArgs args)
public PublicIp(String name, PublicIpArgs args, CustomResourceOptions options)
type: outscale:PublicIp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PublicIpArgs
- 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 PublicIpArgs
- 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 PublicIpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PublicIpArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var publicIpResource = new Outscale.PublicIp("publicIpResource", new()
{
    OutscalePublicIpId = "string",
    Tags = new[]
    {
        new Outscale.Inputs.PublicIpTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
    Timeouts = new Outscale.Inputs.PublicIpTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
});
example, err := outscale.NewPublicIp(ctx, "publicIpResource", &outscale.PublicIpArgs{
OutscalePublicIpId: pulumi.String("string"),
Tags: .PublicIpTagArray{
&.PublicIpTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &.PublicIpTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var publicIpResource = new PublicIp("publicIpResource", PublicIpArgs.builder()
    .outscalePublicIpId("string")
    .tags(PublicIpTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .timeouts(PublicIpTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .build());
public_ip_resource = outscale.PublicIp("publicIpResource",
    outscale_public_ip_id="string",
    tags=[{
        "key": "string",
        "value": "string",
    }],
    timeouts={
        "create": "string",
        "delete": "string",
    })
const publicIpResource = new outscale.PublicIp("publicIpResource", {
    outscalePublicIpId: "string",
    tags: [{
        key: "string",
        value: "string",
    }],
    timeouts: {
        create: "string",
        "delete": "string",
    },
});
type: outscale:PublicIp
properties:
    outscalePublicIpId: string
    tags:
        - key: string
          value: string
    timeouts:
        create: string
        delete: string
PublicIp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PublicIp resource accepts the following input properties:
- OutscalePublic stringIp Id 
- 
List<PublicIp Tag> 
- A tag to add to this resource. You can specify this argument several times.
- Timeouts
PublicIp Timeouts 
- OutscalePublic stringIp Id 
- 
[]PublicIp Tag Args 
- A tag to add to this resource. You can specify this argument several times.
- Timeouts
PublicIp Timeouts Args 
- outscalePublic StringIp Id 
- 
List<PublicIp Tag> 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
PublicIp Timeouts 
- outscalePublic stringIp Id 
- 
PublicIp Tag[] 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
PublicIp Timeouts 
- outscale_public_ strip_ id 
- 
Sequence[PublicIp Tag Args] 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
PublicIp Timeouts Args 
- outscalePublic StringIp Id 
- List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the PublicIp resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- LinkPublic stringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- NicAccount stringId 
- The account ID of the owner of the NIC.
- NicId string
- The ID of the NIC the public IP is associated with (if any).
- PrivateIp string
- The private IP associated with the public IP.
- PublicIp string
- The public IP.
- PublicIp stringId 
- The allocation ID of the public IP.
- RequestId string
- VmId string
- The ID of the VM the public IP is associated with (if any).
- Id string
- The provider-assigned unique ID for this managed resource.
- LinkPublic stringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- NicAccount stringId 
- The account ID of the owner of the NIC.
- NicId string
- The ID of the NIC the public IP is associated with (if any).
- PrivateIp string
- The private IP associated with the public IP.
- PublicIp string
- The public IP.
- PublicIp stringId 
- The allocation ID of the public IP.
- RequestId string
- VmId string
- The ID of the VM the public IP is associated with (if any).
- id String
- The provider-assigned unique ID for this managed resource.
- linkPublic StringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nicAccount StringId 
- The account ID of the owner of the NIC.
- nicId String
- The ID of the NIC the public IP is associated with (if any).
- privateIp String
- The private IP associated with the public IP.
- publicIp String
- The public IP.
- publicIp StringId 
- The allocation ID of the public IP.
- requestId String
- vmId String
- The ID of the VM the public IP is associated with (if any).
- id string
- The provider-assigned unique ID for this managed resource.
- linkPublic stringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nicAccount stringId 
- The account ID of the owner of the NIC.
- nicId string
- The ID of the NIC the public IP is associated with (if any).
- privateIp string
- The private IP associated with the public IP.
- publicIp string
- The public IP.
- publicIp stringId 
- The allocation ID of the public IP.
- requestId string
- vmId string
- The ID of the VM the public IP is associated with (if any).
- id str
- The provider-assigned unique ID for this managed resource.
- link_public_ strip_ id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nic_account_ strid 
- The account ID of the owner of the NIC.
- nic_id str
- The ID of the NIC the public IP is associated with (if any).
- private_ip str
- The private IP associated with the public IP.
- public_ip str
- The public IP.
- public_ip_ strid 
- The allocation ID of the public IP.
- request_id str
- vm_id str
- The ID of the VM the public IP is associated with (if any).
- id String
- The provider-assigned unique ID for this managed resource.
- linkPublic StringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nicAccount StringId 
- The account ID of the owner of the NIC.
- nicId String
- The ID of the NIC the public IP is associated with (if any).
- privateIp String
- The private IP associated with the public IP.
- publicIp String
- The public IP.
- publicIp StringId 
- The allocation ID of the public IP.
- requestId String
- vmId String
- The ID of the VM the public IP is associated with (if any).
Look up Existing PublicIp Resource
Get an existing PublicIp 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?: PublicIpState, opts?: CustomResourceOptions): PublicIp@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        link_public_ip_id: Optional[str] = None,
        nic_account_id: Optional[str] = None,
        nic_id: Optional[str] = None,
        outscale_public_ip_id: Optional[str] = None,
        private_ip: Optional[str] = None,
        public_ip: Optional[str] = None,
        public_ip_id: Optional[str] = None,
        request_id: Optional[str] = None,
        tags: Optional[Sequence[PublicIpTagArgs]] = None,
        timeouts: Optional[PublicIpTimeoutsArgs] = None,
        vm_id: Optional[str] = None) -> PublicIpfunc GetPublicIp(ctx *Context, name string, id IDInput, state *PublicIpState, opts ...ResourceOption) (*PublicIp, error)public static PublicIp Get(string name, Input<string> id, PublicIpState? state, CustomResourceOptions? opts = null)public static PublicIp get(String name, Output<String> id, PublicIpState state, CustomResourceOptions options)resources:  _:    type: outscale:PublicIp    get:      id: ${id}- 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.
- LinkPublic stringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- NicAccount stringId 
- The account ID of the owner of the NIC.
- NicId string
- The ID of the NIC the public IP is associated with (if any).
- OutscalePublic stringIp Id 
- PrivateIp string
- The private IP associated with the public IP.
- PublicIp string
- The public IP.
- PublicIp stringId 
- The allocation ID of the public IP.
- RequestId string
- 
List<PublicIp Tag> 
- A tag to add to this resource. You can specify this argument several times.
- Timeouts
PublicIp Timeouts 
- VmId string
- The ID of the VM the public IP is associated with (if any).
- LinkPublic stringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- NicAccount stringId 
- The account ID of the owner of the NIC.
- NicId string
- The ID of the NIC the public IP is associated with (if any).
- OutscalePublic stringIp Id 
- PrivateIp string
- The private IP associated with the public IP.
- PublicIp string
- The public IP.
- PublicIp stringId 
- The allocation ID of the public IP.
- RequestId string
- 
[]PublicIp Tag Args 
- A tag to add to this resource. You can specify this argument several times.
- Timeouts
PublicIp Timeouts Args 
- VmId string
- The ID of the VM the public IP is associated with (if any).
- linkPublic StringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nicAccount StringId 
- The account ID of the owner of the NIC.
- nicId String
- The ID of the NIC the public IP is associated with (if any).
- outscalePublic StringIp Id 
- privateIp String
- The private IP associated with the public IP.
- publicIp String
- The public IP.
- publicIp StringId 
- The allocation ID of the public IP.
- requestId String
- 
List<PublicIp Tag> 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
PublicIp Timeouts 
- vmId String
- The ID of the VM the public IP is associated with (if any).
- linkPublic stringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nicAccount stringId 
- The account ID of the owner of the NIC.
- nicId string
- The ID of the NIC the public IP is associated with (if any).
- outscalePublic stringIp Id 
- privateIp string
- The private IP associated with the public IP.
- publicIp string
- The public IP.
- publicIp stringId 
- The allocation ID of the public IP.
- requestId string
- 
PublicIp Tag[] 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
PublicIp Timeouts 
- vmId string
- The ID of the VM the public IP is associated with (if any).
- link_public_ strip_ id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nic_account_ strid 
- The account ID of the owner of the NIC.
- nic_id str
- The ID of the NIC the public IP is associated with (if any).
- outscale_public_ strip_ id 
- private_ip str
- The private IP associated with the public IP.
- public_ip str
- The public IP.
- public_ip_ strid 
- The allocation ID of the public IP.
- request_id str
- 
Sequence[PublicIp Tag Args] 
- A tag to add to this resource. You can specify this argument several times.
- timeouts
PublicIp Timeouts Args 
- vm_id str
- The ID of the VM the public IP is associated with (if any).
- linkPublic StringIp Id 
- (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- nicAccount StringId 
- The account ID of the owner of the NIC.
- nicId String
- The ID of the NIC the public IP is associated with (if any).
- outscalePublic StringIp Id 
- privateIp String
- The private IP associated with the public IP.
- publicIp String
- The public IP.
- publicIp StringId 
- The allocation ID of the public IP.
- requestId String
- List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
- timeouts Property Map
- vmId String
- The ID of the VM the public IP is associated with (if any).
Supporting Types
PublicIpTag, PublicIpTagArgs      
PublicIpTimeouts, PublicIpTimeoutsArgs      
Import
A public IP can be imported using its ID. For example:
console
$ pulumi import outscale:index/publicIp:PublicIp ImportedPublicIp eipalloc-12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.