1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. getCustomRoutingPortMappings
Alibaba Cloud v3.44.0 published on Thursday, Sep 28, 2023 by Pulumi

alicloud.ga.getCustomRoutingPortMappings

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.44.0 published on Thursday, Sep 28, 2023 by Pulumi

    This data source provides the Global Accelerator (GA) Custom Routing Port Mappings of the current Alibaba Cloud user.

    NOTE: Available in 1.197.0+

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.Ga.GetCustomRoutingPortMappings.Invoke(new()
        {
            AcceleratorId = "your_accelerator_id",
        });
    
        return new Dictionary<string, object?>
        {
            ["gaCustomRoutingPortMappingsAcceleratorId1"] = @default.Apply(@default => @default.Apply(getCustomRoutingPortMappingsResult => getCustomRoutingPortMappingsResult.CustomRoutingPortMappings[0]?.AcceleratorId)),
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := ga.GetCustomRoutingPortMappings(ctx, &ga.GetCustomRoutingPortMappingsArgs{
    			AcceleratorId: "your_accelerator_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("gaCustomRoutingPortMappingsAcceleratorId1", _default.CustomRoutingPortMappings[0].AcceleratorId)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ga.GaFunctions;
    import com.pulumi.alicloud.ga.inputs.GetCustomRoutingPortMappingsArgs;
    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 default = GaFunctions.getCustomRoutingPortMappings(GetCustomRoutingPortMappingsArgs.builder()
                .acceleratorId("your_accelerator_id")
                .build());
    
            ctx.export("gaCustomRoutingPortMappingsAcceleratorId1", default_.customRoutingPortMappings()[0].acceleratorId());
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.ga.get_custom_routing_port_mappings(accelerator_id="your_accelerator_id")
    pulumi.export("gaCustomRoutingPortMappingsAcceleratorId1", default.custom_routing_port_mappings[0].accelerator_id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.ga.getCustomRoutingPortMappings({
        acceleratorId: "your_accelerator_id",
    });
    export const gaCustomRoutingPortMappingsAcceleratorId1 = _default.then(_default => _default.customRoutingPortMappings?.[0]?.acceleratorId);
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:ga:getCustomRoutingPortMappings
          Arguments:
            acceleratorId: your_accelerator_id
    outputs:
      gaCustomRoutingPortMappingsAcceleratorId1: ${default.customRoutingPortMappings[0].acceleratorId}
    

    Using getCustomRoutingPortMappings

    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 getCustomRoutingPortMappings(args: GetCustomRoutingPortMappingsArgs, opts?: InvokeOptions): Promise<GetCustomRoutingPortMappingsResult>
    function getCustomRoutingPortMappingsOutput(args: GetCustomRoutingPortMappingsOutputArgs, opts?: InvokeOptions): Output<GetCustomRoutingPortMappingsResult>
    def get_custom_routing_port_mappings(accelerator_id: Optional[str] = None,
                                         endpoint_group_id: Optional[str] = None,
                                         listener_id: Optional[str] = None,
                                         output_file: Optional[str] = None,
                                         page_number: Optional[int] = None,
                                         page_size: Optional[int] = None,
                                         status: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetCustomRoutingPortMappingsResult
    def get_custom_routing_port_mappings_output(accelerator_id: Optional[pulumi.Input[str]] = None,
                                         endpoint_group_id: Optional[pulumi.Input[str]] = None,
                                         listener_id: Optional[pulumi.Input[str]] = None,
                                         output_file: Optional[pulumi.Input[str]] = None,
                                         page_number: Optional[pulumi.Input[int]] = None,
                                         page_size: Optional[pulumi.Input[int]] = None,
                                         status: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetCustomRoutingPortMappingsResult]
    func GetCustomRoutingPortMappings(ctx *Context, args *GetCustomRoutingPortMappingsArgs, opts ...InvokeOption) (*GetCustomRoutingPortMappingsResult, error)
    func GetCustomRoutingPortMappingsOutput(ctx *Context, args *GetCustomRoutingPortMappingsOutputArgs, opts ...InvokeOption) GetCustomRoutingPortMappingsResultOutput

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

    public static class GetCustomRoutingPortMappings 
    {
        public static Task<GetCustomRoutingPortMappingsResult> InvokeAsync(GetCustomRoutingPortMappingsArgs args, InvokeOptions? opts = null)
        public static Output<GetCustomRoutingPortMappingsResult> Invoke(GetCustomRoutingPortMappingsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCustomRoutingPortMappingsResult> getCustomRoutingPortMappings(GetCustomRoutingPortMappingsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:ga/getCustomRoutingPortMappings:getCustomRoutingPortMappings
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AcceleratorId string

    The ID of the GA instance.

    EndpointGroupId string

    The ID of the endpoint group.

    ListenerId string

    The ID of the listener.

    OutputFile string

    File name where to save data source results (after running pulumi preview).

    PageNumber int
    PageSize int
    Status string

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    AcceleratorId string

    The ID of the GA instance.

    EndpointGroupId string

    The ID of the endpoint group.

    ListenerId string

    The ID of the listener.

    OutputFile string

    File name where to save data source results (after running pulumi preview).

    PageNumber int
    PageSize int
    Status string

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    acceleratorId String

    The ID of the GA instance.

    endpointGroupId String

    The ID of the endpoint group.

    listenerId String

    The ID of the listener.

    outputFile String

    File name where to save data source results (after running pulumi preview).

    pageNumber Integer
    pageSize Integer
    status String

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    acceleratorId string

    The ID of the GA instance.

    endpointGroupId string

    The ID of the endpoint group.

    listenerId string

    The ID of the listener.

    outputFile string

    File name where to save data source results (after running pulumi preview).

    pageNumber number
    pageSize number
    status string

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    accelerator_id str

    The ID of the GA instance.

    endpoint_group_id str

    The ID of the endpoint group.

    listener_id str

    The ID of the listener.

    output_file str

    File name where to save data source results (after running pulumi preview).

    page_number int
    page_size int
    status str

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    acceleratorId String

    The ID of the GA instance.

    endpointGroupId String

    The ID of the endpoint group.

    listenerId String

    The ID of the listener.

    outputFile String

    File name where to save data source results (after running pulumi preview).

    pageNumber Number
    pageSize Number
    status String

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    getCustomRoutingPortMappings Result

    The following output properties are available:

    AcceleratorId string

    The ID of the GA instance.

    CustomRoutingPortMappings List<Pulumi.AliCloud.Ga.Outputs.GetCustomRoutingPortMappingsCustomRoutingPortMapping>

    A list of Custom Routing Port Mappings. Each element contains the following attributes:

    Id string

    The provider-assigned unique ID for this managed resource.

    EndpointGroupId string

    The ID of the endpoint group.

    ListenerId string

    The ID of the listener.

    OutputFile string
    PageNumber int
    PageSize int
    Status string

    The access policy of traffic for the backend instance.

    AcceleratorId string

    The ID of the GA instance.

    CustomRoutingPortMappings []GetCustomRoutingPortMappingsCustomRoutingPortMapping

    A list of Custom Routing Port Mappings. Each element contains the following attributes:

    Id string

    The provider-assigned unique ID for this managed resource.

    EndpointGroupId string

    The ID of the endpoint group.

    ListenerId string

    The ID of the listener.

    OutputFile string
    PageNumber int
    PageSize int
    Status string

    The access policy of traffic for the backend instance.

    acceleratorId String

    The ID of the GA instance.

    customRoutingPortMappings List<GetCustomRoutingPortMappingsCustomRoutingPortMapping>

    A list of Custom Routing Port Mappings. Each element contains the following attributes:

    id String

    The provider-assigned unique ID for this managed resource.

    endpointGroupId String

    The ID of the endpoint group.

    listenerId String

    The ID of the listener.

    outputFile String
    pageNumber Integer
    pageSize Integer
    status String

    The access policy of traffic for the backend instance.

    acceleratorId string

    The ID of the GA instance.

    customRoutingPortMappings GetCustomRoutingPortMappingsCustomRoutingPortMapping[]

    A list of Custom Routing Port Mappings. Each element contains the following attributes:

    id string

    The provider-assigned unique ID for this managed resource.

    endpointGroupId string

    The ID of the endpoint group.

    listenerId string

    The ID of the listener.

    outputFile string
    pageNumber number
    pageSize number
    status string

    The access policy of traffic for the backend instance.

    accelerator_id str

    The ID of the GA instance.

    custom_routing_port_mappings Sequence[GetCustomRoutingPortMappingsCustomRoutingPortMapping]

    A list of Custom Routing Port Mappings. Each element contains the following attributes:

    id str

    The provider-assigned unique ID for this managed resource.

    endpoint_group_id str

    The ID of the endpoint group.

    listener_id str

    The ID of the listener.

    output_file str
    page_number int
    page_size int
    status str

    The access policy of traffic for the backend instance.

    acceleratorId String

    The ID of the GA instance.

    customRoutingPortMappings List<Property Map>

    A list of Custom Routing Port Mappings. Each element contains the following attributes:

    id String

    The provider-assigned unique ID for this managed resource.

    endpointGroupId String

    The ID of the endpoint group.

    listenerId String

    The ID of the listener.

    outputFile String
    pageNumber Number
    pageSize Number
    status String

    The access policy of traffic for the backend instance.

    Supporting Types

    GetCustomRoutingPortMappingsCustomRoutingPortMapping

    AcceleratorId string

    The ID of the GA instance.

    AcceleratorPort int

    The acceleration port.

    DestinationSocketAddresses List<Pulumi.AliCloud.Ga.Inputs.GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress>

    The service IP address and port of the backend instance.

    EndpointGroupId string

    The ID of the endpoint group.

    EndpointGroupRegion string

    The ID of the region in which the endpoint group resides.

    EndpointId string

    The ID of the endpoint.

    ListenerId string

    The ID of the listener.

    Protocols List<string>

    The protocol of the backend service.

    Status string

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    Vswitch string

    The ID of the endpoint (vSwitch).

    AcceleratorId string

    The ID of the GA instance.

    AcceleratorPort int

    The acceleration port.

    DestinationSocketAddresses []GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress

    The service IP address and port of the backend instance.

    EndpointGroupId string

    The ID of the endpoint group.

    EndpointGroupRegion string

    The ID of the region in which the endpoint group resides.

    EndpointId string

    The ID of the endpoint.

    ListenerId string

    The ID of the listener.

    Protocols []string

    The protocol of the backend service.

    Status string

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    Vswitch string

    The ID of the endpoint (vSwitch).

    acceleratorId String

    The ID of the GA instance.

    acceleratorPort Integer

    The acceleration port.

    destinationSocketAddresses List<GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress>

    The service IP address and port of the backend instance.

    endpointGroupId String

    The ID of the endpoint group.

    endpointGroupRegion String

    The ID of the region in which the endpoint group resides.

    endpointId String

    The ID of the endpoint.

    listenerId String

    The ID of the listener.

    protocols List<String>

    The protocol of the backend service.

    status String

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    vswitch String

    The ID of the endpoint (vSwitch).

    acceleratorId string

    The ID of the GA instance.

    acceleratorPort number

    The acceleration port.

    destinationSocketAddresses GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress[]

    The service IP address and port of the backend instance.

    endpointGroupId string

    The ID of the endpoint group.

    endpointGroupRegion string

    The ID of the region in which the endpoint group resides.

    endpointId string

    The ID of the endpoint.

    listenerId string

    The ID of the listener.

    protocols string[]

    The protocol of the backend service.

    status string

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    vswitch string

    The ID of the endpoint (vSwitch).

    accelerator_id str

    The ID of the GA instance.

    accelerator_port int

    The acceleration port.

    destination_socket_addresses Sequence[GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress]

    The service IP address and port of the backend instance.

    endpoint_group_id str

    The ID of the endpoint group.

    endpoint_group_region str

    The ID of the region in which the endpoint group resides.

    endpoint_id str

    The ID of the endpoint.

    listener_id str

    The ID of the listener.

    protocols Sequence[str]

    The protocol of the backend service.

    status str

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    vswitch str

    The ID of the endpoint (vSwitch).

    acceleratorId String

    The ID of the GA instance.

    acceleratorPort Number

    The acceleration port.

    destinationSocketAddresses List<Property Map>

    The service IP address and port of the backend instance.

    endpointGroupId String

    The ID of the endpoint group.

    endpointGroupRegion String

    The ID of the region in which the endpoint group resides.

    endpointId String

    The ID of the endpoint.

    listenerId String

    The ID of the listener.

    protocols List<String>

    The protocol of the backend service.

    status String

    The access policy of traffic for the backend instance. Valid Values: allow, deny.

    vswitch String

    The ID of the endpoint (vSwitch).

    GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress

    IpAddress string

    The service IP address of the backend instance.

    Port int

    The service port of the backend instance.

    IpAddress string

    The service IP address of the backend instance.

    Port int

    The service port of the backend instance.

    ipAddress String

    The service IP address of the backend instance.

    port Integer

    The service port of the backend instance.

    ipAddress string

    The service IP address of the backend instance.

    port number

    The service port of the backend instance.

    ip_address str

    The service IP address of the backend instance.

    port int

    The service port of the backend instance.

    ipAddress String

    The service IP address of the backend instance.

    port Number

    The service port of the backend instance.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the alicloud Terraform Provider.

    alicloud logo
    Alibaba Cloud v3.44.0 published on Thursday, Sep 28, 2023 by Pulumi