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

outscale.getInternetServices

Explore with Pulumi AI

Provides information about Internet services.

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 internetServices01 = outscale.getInternetServices({
    filters: [
        {
            name: "tag_keys",
            values: ["env"],
        },
        {
            name: "tag_values",
            values: [
                "prod",
                "test",
            ],
        },
    ],
});
Copy
import pulumi
import pulumi_outscale as outscale

internet_services01 = outscale.get_internet_services(filters=[
    {
        "name": "tag_keys",
        "values": ["env"],
    },
    {
        "name": "tag_values",
        "values": [
            "prod",
            "test",
        ],
    },
])
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.GetInternetServices(ctx, &outscale.GetInternetServicesArgs{
			Filters: []outscale.GetInternetServicesFilter{
				{
					Name: "tag_keys",
					Values: []string{
						"env",
					},
				},
				{
					Name: "tag_values",
					Values: []string{
						"prod",
						"test",
					},
				},
			},
		}, 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 internetServices01 = Outscale.GetInternetServices.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetInternetServicesFilterInputArgs
            {
                Name = "tag_keys",
                Values = new[]
                {
                    "env",
                },
            },
            new Outscale.Inputs.GetInternetServicesFilterInputArgs
            {
                Name = "tag_values",
                Values = new[]
                {
                    "prod",
                    "test",
                },
            },
        },
    });

});
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.GetInternetServicesArgs;
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 internetServices01 = OutscaleFunctions.getInternetServices(GetInternetServicesArgs.builder()
            .filters(            
                GetInternetServicesFilterArgs.builder()
                    .name("tag_keys")
                    .values("env")
                    .build(),
                GetInternetServicesFilterArgs.builder()
                    .name("tag_values")
                    .values(                    
                        "prod",
                        "test")
                    .build())
            .build());

    }
}
Copy
variables:
  internetServices01:
    fn::invoke:
      function: outscale:getInternetServices
      arguments:
        filters:
          - name: tag_keys
            values:
              - env
          - name: tag_values
            values:
              - prod
              - test
Copy

Using getInternetServices

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 getInternetServices(args: GetInternetServicesArgs, opts?: InvokeOptions): Promise<GetInternetServicesResult>
function getInternetServicesOutput(args: GetInternetServicesOutputArgs, opts?: InvokeOptions): Output<GetInternetServicesResult>
Copy
def get_internet_services(filters: Optional[Sequence[GetInternetServicesFilter]] = None,
                          id: Optional[str] = None,
                          internet_service_ids: Optional[Sequence[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> GetInternetServicesResult
def get_internet_services_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetInternetServicesFilterArgs]]]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          internet_service_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetInternetServicesResult]
Copy
func GetInternetServices(ctx *Context, args *GetInternetServicesArgs, opts ...InvokeOption) (*GetInternetServicesResult, error)
func GetInternetServicesOutput(ctx *Context, args *GetInternetServicesOutputArgs, opts ...InvokeOption) GetInternetServicesResultOutput
Copy

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

public static class GetInternetServices 
{
    public static Task<GetInternetServicesResult> InvokeAsync(GetInternetServicesArgs args, InvokeOptions? opts = null)
    public static Output<GetInternetServicesResult> Invoke(GetInternetServicesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetInternetServicesResult> getInternetServices(GetInternetServicesArgs args, InvokeOptions options)
public static Output<GetInternetServicesResult> getInternetServices(GetInternetServicesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getInternetServices:getInternetServices
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetInternetServicesFilter>
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
InternetServiceIds List<string>
Filters []GetInternetServicesFilter
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
InternetServiceIds []string
filters List<GetInternetServicesFilter>
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
internetServiceIds List<String>
filters GetInternetServicesFilter[]
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
internetServiceIds string[]
filters Sequence[GetInternetServicesFilter]
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
internet_service_ids Sequence[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
internetServiceIds List<String>

getInternetServices Result

The following output properties are available:

id String
internetServices List<Property Map>
Information about one or more internet services.
requestId String
filters List<Property Map>
internetServiceIds List<String>

Supporting Types

GetInternetServicesFilter

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>

GetInternetServicesInternetService

InternetServiceId This property is required. string
The ID of the internet service.
NetId This property is required. string
The ID of the Net attached to the internet service.
State This property is required. string
The state of the attachment of the internet service to the Net (always available).
Tags This property is required. List<GetInternetServicesInternetServiceTag>
One or more tags associated with the internet service.
InternetServiceId This property is required. string
The ID of the internet service.
NetId This property is required. string
The ID of the Net attached to the internet service.
State This property is required. string
The state of the attachment of the internet service to the Net (always available).
Tags This property is required. []GetInternetServicesInternetServiceTag
One or more tags associated with the internet service.
internetServiceId This property is required. String
The ID of the internet service.
netId This property is required. String
The ID of the Net attached to the internet service.
state This property is required. String
The state of the attachment of the internet service to the Net (always available).
tags This property is required. List<GetInternetServicesInternetServiceTag>
One or more tags associated with the internet service.
internetServiceId This property is required. string
The ID of the internet service.
netId This property is required. string
The ID of the Net attached to the internet service.
state This property is required. string
The state of the attachment of the internet service to the Net (always available).
tags This property is required. GetInternetServicesInternetServiceTag[]
One or more tags associated with the internet service.
internet_service_id This property is required. str
The ID of the internet service.
net_id This property is required. str
The ID of the Net attached to the internet service.
state This property is required. str
The state of the attachment of the internet service to the Net (always available).
tags This property is required. Sequence[GetInternetServicesInternetServiceTag]
One or more tags associated with the internet service.
internetServiceId This property is required. String
The ID of the internet service.
netId This property is required. String
The ID of the Net attached to the internet service.
state This property is required. String
The state of the attachment of the internet service to the Net (always available).
tags This property is required. List<Property Map>
One or more tags associated with the internet service.

GetInternetServicesInternetServiceTag

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.