1. Packages
  2. Outscale Provider
  3. API Docs
  4. InternetServiceLink
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

outscale.InternetServiceLink

Explore with Pulumi AI

Manages an Internet service link.

For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.

Example Usage

Required resources

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const net01 = new outscale.Net("net01", {ipRange: "10.0.0.0/18"});
const internetService01 = new outscale.InternetService("internetService01", {});
Copy
import pulumi
import pulumi_outscale as outscale

net01 = outscale.Net("net01", ip_range="10.0.0.0/18")
internet_service01 = outscale.InternetService("internetService01")
Copy
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.NewNet(ctx, "net01", &outscale.NetArgs{
			IpRange: pulumi.String("10.0.0.0/18"),
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewInternetService(ctx, "internetService01", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var net01 = new Outscale.Net("net01", new()
    {
        IpRange = "10.0.0.0/18",
    });

    var internetService01 = new Outscale.InternetService("internetService01");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Net;
import com.pulumi.outscale.NetArgs;
import com.pulumi.outscale.InternetService;
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 net01 = new Net("net01", NetArgs.builder()
            .ipRange("10.0.0.0/18")
            .build());

        var internetService01 = new InternetService("internetService01");

    }
}
Copy
resources:
  net01:
    type: outscale:Net
    properties:
      ipRange: 10.0.0.0/18
  internetService01:
    type: outscale:InternetService
Copy
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const internetServiceLink01 = new outscale.InternetServiceLink("internetServiceLink01", {
    internetServiceId: outscale_internet_service.internet_service01.internet_service_id,
    netId: outscale_net.net01.net_id,
});
Copy
import pulumi
import pulumi_outscale as outscale

internet_service_link01 = outscale.InternetServiceLink("internetServiceLink01",
    internet_service_id=outscale_internet_service["internet_service01"]["internet_service_id"],
    net_id=outscale_net["net01"]["net_id"])
Copy
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.NewInternetServiceLink(ctx, "internetServiceLink01", &outscale.InternetServiceLinkArgs{
			InternetServiceId: pulumi.Any(outscale_internet_service.Internet_service01.Internet_service_id),
			NetId:             pulumi.Any(outscale_net.Net01.Net_id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var internetServiceLink01 = new Outscale.InternetServiceLink("internetServiceLink01", new()
    {
        InternetServiceId = outscale_internet_service.Internet_service01.Internet_service_id,
        NetId = outscale_net.Net01.Net_id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.InternetServiceLink;
import com.pulumi.outscale.InternetServiceLinkArgs;
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 internetServiceLink01 = new InternetServiceLink("internetServiceLink01", InternetServiceLinkArgs.builder()
            .internetServiceId(outscale_internet_service.internet_service01().internet_service_id())
            .netId(outscale_net.net01().net_id())
            .build());

    }
}
Copy
resources:
  internetServiceLink01:
    type: outscale:InternetServiceLink
    properties:
      internetServiceId: ${outscale_internet_service.internet_service01.internet_service_id}
      netId: ${outscale_net.net01.net_id}
Copy

Create InternetServiceLink Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new InternetServiceLink(name: string, args: InternetServiceLinkArgs, opts?: CustomResourceOptions);
@overload
def InternetServiceLink(resource_name: str,
                        args: InternetServiceLinkArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def InternetServiceLink(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        internet_service_id: Optional[str] = None,
                        net_id: Optional[str] = None,
                        internet_service_link_id: Optional[str] = None)
func NewInternetServiceLink(ctx *Context, name string, args InternetServiceLinkArgs, opts ...ResourceOption) (*InternetServiceLink, error)
public InternetServiceLink(string name, InternetServiceLinkArgs args, CustomResourceOptions? opts = null)
public InternetServiceLink(String name, InternetServiceLinkArgs args)
public InternetServiceLink(String name, InternetServiceLinkArgs args, CustomResourceOptions options)
type: outscale:InternetServiceLink
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. InternetServiceLinkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. InternetServiceLinkArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. InternetServiceLinkArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. InternetServiceLinkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InternetServiceLinkArgs
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 internetServiceLinkResource = new Outscale.InternetServiceLink("internetServiceLinkResource", new()
{
    InternetServiceId = "string",
    NetId = "string",
    InternetServiceLinkId = "string",
});
Copy
example, err := outscale.NewInternetServiceLink(ctx, "internetServiceLinkResource", &outscale.InternetServiceLinkArgs{
InternetServiceId: pulumi.String("string"),
NetId: pulumi.String("string"),
InternetServiceLinkId: pulumi.String("string"),
})
Copy
var internetServiceLinkResource = new InternetServiceLink("internetServiceLinkResource", InternetServiceLinkArgs.builder()
    .internetServiceId("string")
    .netId("string")
    .internetServiceLinkId("string")
    .build());
Copy
internet_service_link_resource = outscale.InternetServiceLink("internetServiceLinkResource",
    internet_service_id="string",
    net_id="string",
    internet_service_link_id="string")
Copy
const internetServiceLinkResource = new outscale.InternetServiceLink("internetServiceLinkResource", {
    internetServiceId: "string",
    netId: "string",
    internetServiceLinkId: "string",
});
Copy
type: outscale:InternetServiceLink
properties:
    internetServiceId: string
    internetServiceLinkId: string
    netId: string
Copy

InternetServiceLink 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 InternetServiceLink resource accepts the following input properties:

InternetServiceId This property is required. string
The ID of the internet service you want to attach.
NetId This property is required. string
The ID of the Net to which you want to attach the internet service.
InternetServiceLinkId string
InternetServiceId This property is required. string
The ID of the internet service you want to attach.
NetId This property is required. string
The ID of the Net to which you want to attach the internet service.
InternetServiceLinkId string
internetServiceId This property is required. String
The ID of the internet service you want to attach.
netId This property is required. String
The ID of the Net to which you want to attach the internet service.
internetServiceLinkId String
internetServiceId This property is required. string
The ID of the internet service you want to attach.
netId This property is required. string
The ID of the Net to which you want to attach the internet service.
internetServiceLinkId string
internet_service_id This property is required. str
The ID of the internet service you want to attach.
net_id This property is required. str
The ID of the Net to which you want to attach the internet service.
internet_service_link_id str
internetServiceId This property is required. String
The ID of the internet service you want to attach.
netId This property is required. String
The ID of the Net to which you want to attach the internet service.
internetServiceLinkId String

Outputs

All input properties are implicitly available as output properties. Additionally, the InternetServiceLink resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
RequestId string
State string
The state of the attachment of the Internet service to the Net (always available).
Tags List<InternetServiceLinkTag>
One or more tags associated with the Internet service.
Id string
The provider-assigned unique ID for this managed resource.
RequestId string
State string
The state of the attachment of the Internet service to the Net (always available).
Tags []InternetServiceLinkTag
One or more tags associated with the Internet service.
id String
The provider-assigned unique ID for this managed resource.
requestId String
state String
The state of the attachment of the Internet service to the Net (always available).
tags List<InternetServiceLinkTag>
One or more tags associated with the Internet service.
id string
The provider-assigned unique ID for this managed resource.
requestId string
state string
The state of the attachment of the Internet service to the Net (always available).
tags InternetServiceLinkTag[]
One or more tags associated with the Internet service.
id str
The provider-assigned unique ID for this managed resource.
request_id str
state str
The state of the attachment of the Internet service to the Net (always available).
tags Sequence[InternetServiceLinkTag]
One or more tags associated with the Internet service.
id String
The provider-assigned unique ID for this managed resource.
requestId String
state String
The state of the attachment of the Internet service to the Net (always available).
tags List<Property Map>
One or more tags associated with the Internet service.

Look up Existing InternetServiceLink Resource

Get an existing InternetServiceLink 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?: InternetServiceLinkState, opts?: CustomResourceOptions): InternetServiceLink
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        internet_service_id: Optional[str] = None,
        internet_service_link_id: Optional[str] = None,
        net_id: Optional[str] = None,
        request_id: Optional[str] = None,
        state: Optional[str] = None,
        tags: Optional[Sequence[InternetServiceLinkTagArgs]] = None) -> InternetServiceLink
func GetInternetServiceLink(ctx *Context, name string, id IDInput, state *InternetServiceLinkState, opts ...ResourceOption) (*InternetServiceLink, error)
public static InternetServiceLink Get(string name, Input<string> id, InternetServiceLinkState? state, CustomResourceOptions? opts = null)
public static InternetServiceLink get(String name, Output<String> id, InternetServiceLinkState state, CustomResourceOptions options)
resources:  _:    type: outscale:InternetServiceLink    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
InternetServiceId string
The ID of the internet service you want to attach.
InternetServiceLinkId string
NetId string
The ID of the Net to which you want to attach the internet service.
RequestId string
State string
The state of the attachment of the Internet service to the Net (always available).
Tags List<InternetServiceLinkTag>
One or more tags associated with the Internet service.
InternetServiceId string
The ID of the internet service you want to attach.
InternetServiceLinkId string
NetId string
The ID of the Net to which you want to attach the internet service.
RequestId string
State string
The state of the attachment of the Internet service to the Net (always available).
Tags []InternetServiceLinkTagArgs
One or more tags associated with the Internet service.
internetServiceId String
The ID of the internet service you want to attach.
internetServiceLinkId String
netId String
The ID of the Net to which you want to attach the internet service.
requestId String
state String
The state of the attachment of the Internet service to the Net (always available).
tags List<InternetServiceLinkTag>
One or more tags associated with the Internet service.
internetServiceId string
The ID of the internet service you want to attach.
internetServiceLinkId string
netId string
The ID of the Net to which you want to attach the internet service.
requestId string
state string
The state of the attachment of the Internet service to the Net (always available).
tags InternetServiceLinkTag[]
One or more tags associated with the Internet service.
internet_service_id str
The ID of the internet service you want to attach.
internet_service_link_id str
net_id str
The ID of the Net to which you want to attach the internet service.
request_id str
state str
The state of the attachment of the Internet service to the Net (always available).
tags Sequence[InternetServiceLinkTagArgs]
One or more tags associated with the Internet service.
internetServiceId String
The ID of the internet service you want to attach.
internetServiceLinkId String
netId String
The ID of the Net to which you want to attach the internet service.
requestId String
state String
The state of the attachment of the Internet service to the Net (always available).
tags List<Property Map>
One or more tags associated with the Internet service.

Supporting Types

InternetServiceLinkTag
, InternetServiceLinkTagArgs

Key This property is required. string
The key of the tag, with a minimum of 1 character.
Value This property is required. string
The value of the tag, between 0 and 255 characters.
Key This property is required. string
The key of the tag, with a minimum of 1 character.
Value This property is required. string
The value of the tag, between 0 and 255 characters.
key This property is required. String
The key of the tag, with a minimum of 1 character.
value This property is required. String
The value of the tag, between 0 and 255 characters.
key This property is required. string
The key of the tag, with a minimum of 1 character.
value This property is required. string
The value of the tag, between 0 and 255 characters.
key This property is required. str
The key of the tag, with a minimum of 1 character.
value This property is required. str
The value of the tag, between 0 and 255 characters.
key This property is required. String
The key of the tag, with a minimum of 1 character.
value This property is required. String
The value of the tag, between 0 and 255 characters.

Import

An internet service link can be imported using the internet service ID. For example:

console

$ pulumi import outscale:index/internetServiceLink:InternetServiceLink ImportedInternetServiceLink igw-87654321
Copy

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 outscale Terraform Provider.