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

outscale.getInternetService

Explore with Pulumi AI

Provides information about an Internet service.

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 internetService01 = outscale.getInternetService({
    filters: [{
        name: "internet_service_ids",
        values: ["igw-12345678"],
    }],
});
Copy
import pulumi
import pulumi_outscale as outscale

internet_service01 = outscale.get_internet_service(filters=[{
    "name": "internet_service_ids",
    "values": ["igw-12345678"],
}])
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.LookupInternetService(ctx, &outscale.LookupInternetServiceArgs{
			Filters: []outscale.GetInternetServiceFilter{
				{
					Name: "internet_service_ids",
					Values: []string{
						"igw-12345678",
					},
				},
			},
		}, 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 internetService01 = Outscale.GetInternetService.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetInternetServiceFilterInputArgs
            {
                Name = "internet_service_ids",
                Values = new[]
                {
                    "igw-12345678",
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetInternetServiceArgs;
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) {
        final var internetService01 = OutscaleFunctions.getInternetService(GetInternetServiceArgs.builder()
            .filters(GetInternetServiceFilterArgs.builder()
                .name("internet_service_ids")
                .values("igw-12345678")
                .build())
            .build());

    }
}
Copy
variables:
  internetService01:
    fn::invoke:
      function: outscale:getInternetService
      arguments:
        filters:
          - name: internet_service_ids
            values:
              - igw-12345678
Copy

Using getInternetService

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getInternetService(args: GetInternetServiceArgs, opts?: InvokeOptions): Promise<GetInternetServiceResult>
function getInternetServiceOutput(args: GetInternetServiceOutputArgs, opts?: InvokeOptions): Output<GetInternetServiceResult>
Copy
def get_internet_service(filters: Optional[Sequence[GetInternetServiceFilter]] = None,
                         id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetInternetServiceResult
def get_internet_service_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetInternetServiceFilterArgs]]]] = None,
                         id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetInternetServiceResult]
Copy
func LookupInternetService(ctx *Context, args *LookupInternetServiceArgs, opts ...InvokeOption) (*LookupInternetServiceResult, error)
func LookupInternetServiceOutput(ctx *Context, args *LookupInternetServiceOutputArgs, opts ...InvokeOption) LookupInternetServiceResultOutput
Copy

> Note: This function is named LookupInternetService in the Go SDK.

public static class GetInternetService 
{
    public static Task<GetInternetServiceResult> InvokeAsync(GetInternetServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetInternetServiceResult> Invoke(GetInternetServiceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetInternetServiceResult> getInternetService(GetInternetServiceArgs args, InvokeOptions options)
public static Output<GetInternetServiceResult> getInternetService(GetInternetServiceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getInternetService:getInternetService
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetInternetServiceFilter>
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
Id string
Filters []GetInternetServiceFilter
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
Id string
filters List<GetInternetServiceFilter>
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id String
filters GetInternetServiceFilter[]
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id string
filters Sequence[GetInternetServiceFilter]
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id str
filters List<Property Map>
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id String

getInternetService Result

The following output properties are available:

Id string
InternetServiceId string
The ID of the internet service.
NetId string
The ID of the Net attached to the internet service.
RequestId string
State string
The state of the attachment of the internet service to the Net (always available).
Tags List<GetInternetServiceTag>
One or more tags associated with the internet service.
Filters List<GetInternetServiceFilter>
Id string
InternetServiceId string
The ID of the internet service.
NetId string
The ID of the Net attached to the internet service.
RequestId string
State string
The state of the attachment of the internet service to the Net (always available).
Tags []GetInternetServiceTag
One or more tags associated with the internet service.
Filters []GetInternetServiceFilter
id String
internetServiceId String
The ID of the internet service.
netId String
The ID of the Net attached to the internet service.
requestId String
state String
The state of the attachment of the internet service to the Net (always available).
tags List<GetInternetServiceTag>
One or more tags associated with the internet service.
filters List<GetInternetServiceFilter>
id string
internetServiceId string
The ID of the internet service.
netId string
The ID of the Net attached to the internet service.
requestId string
state string
The state of the attachment of the internet service to the Net (always available).
tags GetInternetServiceTag[]
One or more tags associated with the internet service.
filters GetInternetServiceFilter[]
id str
internet_service_id str
The ID of the internet service.
net_id str
The ID of the Net attached to the internet service.
request_id str
state str
The state of the attachment of the internet service to the Net (always available).
tags Sequence[GetInternetServiceTag]
One or more tags associated with the internet service.
filters Sequence[GetInternetServiceFilter]
id String
internetServiceId String
The ID of the internet service.
netId String
The ID of the Net attached to 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.
filters List<Property Map>

Supporting Types

GetInternetServiceFilter

Name This property is required. string
Values This property is required. List<string>
Name This property is required. string
Values This property is required. []string
name This property is required. String
values This property is required. List<String>
name This property is required. string
values This property is required. string[]
name This property is required. str
values This property is required. Sequence[str]
name This property is required. String
values This property is required. List<String>

GetInternetServiceTag

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.

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.