1. Packages
  2. Outscale Provider
  3. API Docs
  4. getNetAccessPointServices
outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale

outscale.getNetAccessPointServices

Explore with Pulumi AI

outscale logo
outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale

    Provides information about Net access point services.

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

    Example Usage

    List all services available to create Net access points

    import * as pulumi from "@pulumi/pulumi";
    import * as outscale from "@pulumi/outscale";
    
    const all_services = outscale.getNetAccessPointServices({});
    
    import pulumi
    import pulumi_outscale as outscale
    
    all_services = outscale.get_net_access_point_services()
    
    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.GetNetAccessPointServices(ctx, &outscale.GetNetAccessPointServicesArgs{}, 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 all_services = Outscale.GetNetAccessPointServices.Invoke();
    
    });
    
    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.GetNetAccessPointServicesArgs;
    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 all-services = OutscaleFunctions.getNetAccessPointServices();
    
        }
    }
    
    variables:
      all-services:
        fn::invoke:
          function: outscale:getNetAccessPointServices
          arguments: {}
    

    List one or more services according to their service IDs

    import * as pulumi from "@pulumi/pulumi";
    import * as outscale from "@pulumi/outscale";
    
    const services01 = outscale.getNetAccessPointServices({
        filters: [{
            name: "service_ids",
            values: [
                "pl-12345678",
                "pl-12345679",
            ],
        }],
    });
    
    import pulumi
    import pulumi_outscale as outscale
    
    services01 = outscale.get_net_access_point_services(filters=[{
        "name": "service_ids",
        "values": [
            "pl-12345678",
            "pl-12345679",
        ],
    }])
    
    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.GetNetAccessPointServices(ctx, &outscale.GetNetAccessPointServicesArgs{
    			Filters: []outscale.GetNetAccessPointServicesFilter{
    				{
    					Name: "service_ids",
    					Values: []string{
    						"pl-12345678",
    						"pl-12345679",
    					},
    				},
    			},
    		}, 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 services01 = Outscale.GetNetAccessPointServices.Invoke(new()
        {
            Filters = new[]
            {
                new Outscale.Inputs.GetNetAccessPointServicesFilterInputArgs
                {
                    Name = "service_ids",
                    Values = new[]
                    {
                        "pl-12345678",
                        "pl-12345679",
                    },
                },
            },
        });
    
    });
    
    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.GetNetAccessPointServicesArgs;
    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 services01 = OutscaleFunctions.getNetAccessPointServices(GetNetAccessPointServicesArgs.builder()
                .filters(GetNetAccessPointServicesFilterArgs.builder()
                    .name("service_ids")
                    .values(                
                        "pl-12345678",
                        "pl-12345679")
                    .build())
                .build());
    
        }
    }
    
    variables:
      services01:
        fn::invoke:
          function: outscale:getNetAccessPointServices
          arguments:
            filters:
              - name: service_ids
                values:
                  - pl-12345678
                  - pl-12345679
    

    List one or more services according to their service names

    import * as pulumi from "@pulumi/pulumi";
    import * as outscale from "@pulumi/outscale";
    
    const services02 = outscale.getNetAccessPointServices({
        filters: [{
            name: "service_names",
            values: ["com.outscale.eu-west-2.api"],
        }],
    });
    
    import pulumi
    import pulumi_outscale as outscale
    
    services02 = outscale.get_net_access_point_services(filters=[{
        "name": "service_names",
        "values": ["com.outscale.eu-west-2.api"],
    }])
    
    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.GetNetAccessPointServices(ctx, &outscale.GetNetAccessPointServicesArgs{
    			Filters: []outscale.GetNetAccessPointServicesFilter{
    				{
    					Name: "service_names",
    					Values: []string{
    						"com.outscale.eu-west-2.api",
    					},
    				},
    			},
    		}, 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 services02 = Outscale.GetNetAccessPointServices.Invoke(new()
        {
            Filters = new[]
            {
                new Outscale.Inputs.GetNetAccessPointServicesFilterInputArgs
                {
                    Name = "service_names",
                    Values = new[]
                    {
                        "com.outscale.eu-west-2.api",
                    },
                },
            },
        });
    
    });
    
    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.GetNetAccessPointServicesArgs;
    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 services02 = OutscaleFunctions.getNetAccessPointServices(GetNetAccessPointServicesArgs.builder()
                .filters(GetNetAccessPointServicesFilterArgs.builder()
                    .name("service_names")
                    .values("com.outscale.eu-west-2.api")
                    .build())
                .build());
    
        }
    }
    
    variables:
      services02:
        fn::invoke:
          function: outscale:getNetAccessPointServices
          arguments:
            filters:
              - name: service_names
                values:
                  - com.outscale.eu-west-2.api
    

    Using getNetAccessPointServices

    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 getNetAccessPointServices(args: GetNetAccessPointServicesArgs, opts?: InvokeOptions): Promise<GetNetAccessPointServicesResult>
    function getNetAccessPointServicesOutput(args: GetNetAccessPointServicesOutputArgs, opts?: InvokeOptions): Output<GetNetAccessPointServicesResult>
    def get_net_access_point_services(filters: Optional[Sequence[GetNetAccessPointServicesFilter]] = None,
                                      id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetNetAccessPointServicesResult
    def get_net_access_point_services_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNetAccessPointServicesFilterArgs]]]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetNetAccessPointServicesResult]
    func GetNetAccessPointServices(ctx *Context, args *GetNetAccessPointServicesArgs, opts ...InvokeOption) (*GetNetAccessPointServicesResult, error)
    func GetNetAccessPointServicesOutput(ctx *Context, args *GetNetAccessPointServicesOutputArgs, opts ...InvokeOption) GetNetAccessPointServicesResultOutput

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

    public static class GetNetAccessPointServices 
    {
        public static Task<GetNetAccessPointServicesResult> InvokeAsync(GetNetAccessPointServicesArgs args, InvokeOptions? opts = null)
        public static Output<GetNetAccessPointServicesResult> Invoke(GetNetAccessPointServicesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetAccessPointServicesResult> getNetAccessPointServices(GetNetAccessPointServicesArgs args, InvokeOptions options)
    public static Output<GetNetAccessPointServicesResult> getNetAccessPointServices(GetNetAccessPointServicesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: outscale:index/getNetAccessPointServices:getNetAccessPointServices
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetNetAccessPointServicesFilter>
    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 []GetNetAccessPointServicesFilter
    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<GetNetAccessPointServicesFilter>
    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 GetNetAccessPointServicesFilter[]
    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[GetNetAccessPointServicesFilter]
    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

    getNetAccessPointServices Result

    The following output properties are available:

    Id string
    RequestId string
    Services List<GetNetAccessPointServicesService>
    The names of the services you can use for Net access points.
    Filters List<GetNetAccessPointServicesFilter>
    Id string
    RequestId string
    Services []GetNetAccessPointServicesService
    The names of the services you can use for Net access points.
    Filters []GetNetAccessPointServicesFilter
    id String
    requestId String
    services List<GetNetAccessPointServicesService>
    The names of the services you can use for Net access points.
    filters List<GetNetAccessPointServicesFilter>
    id string
    requestId string
    services GetNetAccessPointServicesService[]
    The names of the services you can use for Net access points.
    filters GetNetAccessPointServicesFilter[]
    id String
    requestId String
    services List<Property Map>
    The names of the services you can use for Net access points.
    filters List<Property Map>

    Supporting Types

    GetNetAccessPointServicesFilter

    Name string
    Values List<string>
    Name string
    Values []string
    name String
    values List<String>
    name string
    values string[]
    name str
    values Sequence[str]
    name String
    values List<String>

    GetNetAccessPointServicesService

    IpRanges List<string>
    The list of network prefixes used by the service, in CIDR notation.
    ServiceId string
    The ID of the service.
    ServiceName string
    The name of the service.
    IpRanges []string
    The list of network prefixes used by the service, in CIDR notation.
    ServiceId string
    The ID of the service.
    ServiceName string
    The name of the service.
    ipRanges List<String>
    The list of network prefixes used by the service, in CIDR notation.
    serviceId String
    The ID of the service.
    serviceName String
    The name of the service.
    ipRanges string[]
    The list of network prefixes used by the service, in CIDR notation.
    serviceId string
    The ID of the service.
    serviceName string
    The name of the service.
    ip_ranges Sequence[str]
    The list of network prefixes used by the service, in CIDR notation.
    service_id str
    The ID of the service.
    service_name str
    The name of the service.
    ipRanges List<String>
    The list of network prefixes used by the service, in CIDR notation.
    serviceId String
    The ID of the service.
    serviceName String
    The name of the service.

    Package Details

    Repository
    outscale outscale/terraform-provider-outscale
    License
    Notes
    This Pulumi package is based on the outscale Terraform Provider.
    outscale logo
    outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale