1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ga
  5. getCustomRoutingPortMappings
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.ga.getCustomRoutingPortMappings

Explore with Pulumi AI

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

NOTE: Available since v1.197.0.

Example Usage

Basic Usage

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);
Copy
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)
Copy
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
	})
}
Copy
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)),
    };
});
Copy
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());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:ga:getCustomRoutingPortMappings
      arguments:
        acceleratorId: your_accelerator_id
outputs:
  gaCustomRoutingPortMappingsAcceleratorId1: ${default.customRoutingPortMappings[0].acceleratorId}
Copy

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>
Copy
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]
Copy
func GetCustomRoutingPortMappings(ctx *Context, args *GetCustomRoutingPortMappingsArgs, opts ...InvokeOption) (*GetCustomRoutingPortMappingsResult, error)
func GetCustomRoutingPortMappingsOutput(ctx *Context, args *GetCustomRoutingPortMappingsOutputArgs, opts ...InvokeOption) GetCustomRoutingPortMappingsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetCustomRoutingPortMappingsResult> getCustomRoutingPortMappings(GetCustomRoutingPortMappingsArgs args, InvokeOptions options)
public static Output<GetCustomRoutingPortMappingsResult> getCustomRoutingPortMappings(GetCustomRoutingPortMappingsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:ga/getCustomRoutingPortMappings:getCustomRoutingPortMappings
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AcceleratorId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the GA instance.
EndpointGroupId Changes to this property will trigger replacement. string
The ID of the endpoint group.
ListenerId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The access policy of traffic for the backend instance. Valid Values: allow, deny.
AcceleratorId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the GA instance.
EndpointGroupId Changes to this property will trigger replacement. string
The ID of the endpoint group.
ListenerId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The access policy of traffic for the backend instance. Valid Values: allow, deny.
acceleratorId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the GA instance.
endpointGroupId Changes to this property will trigger replacement. String
The ID of the endpoint group.
listenerId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The access policy of traffic for the backend instance. Valid Values: allow, deny.
acceleratorId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the GA instance.
endpointGroupId Changes to this property will trigger replacement. string
The ID of the endpoint group.
listenerId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The access policy of traffic for the backend instance. Valid Values: allow, deny.
accelerator_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the GA instance.
endpoint_group_id Changes to this property will trigger replacement. str
The ID of the endpoint group.
listener_id Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The access policy of traffic for the backend instance. Valid Values: allow, deny.
acceleratorId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the GA instance.
endpointGroupId Changes to this property will trigger replacement. String
The ID of the endpoint group.
listenerId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 This property is required. string
The ID of the GA instance.
AcceleratorPort This property is required. int
The acceleration port.
DestinationSocketAddresses This property is required. List<Pulumi.AliCloud.Ga.Inputs.GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress>
The service IP address and port of the backend instance.
EndpointGroupId This property is required. string
The ID of the endpoint group.
EndpointGroupRegion This property is required. string
The ID of the region in which the endpoint group resides.
EndpointId This property is required. string
The ID of the endpoint.
ListenerId This property is required. string
The ID of the listener.
Protocols This property is required. List<string>
The protocol of the backend service.
Status This property is required. string
The access policy of traffic for the backend instance. Valid Values: allow, deny.
Vswitch This property is required. string
The ID of the endpoint (vSwitch).
AcceleratorId This property is required. string
The ID of the GA instance.
AcceleratorPort This property is required. int
The acceleration port.
DestinationSocketAddresses This property is required. []GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress
The service IP address and port of the backend instance.
EndpointGroupId This property is required. string
The ID of the endpoint group.
EndpointGroupRegion This property is required. string
The ID of the region in which the endpoint group resides.
EndpointId This property is required. string
The ID of the endpoint.
ListenerId This property is required. string
The ID of the listener.
Protocols This property is required. []string
The protocol of the backend service.
Status This property is required. string
The access policy of traffic for the backend instance. Valid Values: allow, deny.
Vswitch This property is required. string
The ID of the endpoint (vSwitch).
acceleratorId This property is required. String
The ID of the GA instance.
acceleratorPort This property is required. Integer
The acceleration port.
destinationSocketAddresses This property is required. List<GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress>
The service IP address and port of the backend instance.
endpointGroupId This property is required. String
The ID of the endpoint group.
endpointGroupRegion This property is required. String
The ID of the region in which the endpoint group resides.
endpointId This property is required. String
The ID of the endpoint.
listenerId This property is required. String
The ID of the listener.
protocols This property is required. List<String>
The protocol of the backend service.
status This property is required. String
The access policy of traffic for the backend instance. Valid Values: allow, deny.
vswitch This property is required. String
The ID of the endpoint (vSwitch).
acceleratorId This property is required. string
The ID of the GA instance.
acceleratorPort This property is required. number
The acceleration port.
destinationSocketAddresses This property is required. GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress[]
The service IP address and port of the backend instance.
endpointGroupId This property is required. string
The ID of the endpoint group.
endpointGroupRegion This property is required. string
The ID of the region in which the endpoint group resides.
endpointId This property is required. string
The ID of the endpoint.
listenerId This property is required. string
The ID of the listener.
protocols This property is required. string[]
The protocol of the backend service.
status This property is required. string
The access policy of traffic for the backend instance. Valid Values: allow, deny.
vswitch This property is required. string
The ID of the endpoint (vSwitch).
accelerator_id This property is required. str
The ID of the GA instance.
accelerator_port This property is required. int
The acceleration port.
destination_socket_addresses This property is required. Sequence[GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress]
The service IP address and port of the backend instance.
endpoint_group_id This property is required. str
The ID of the endpoint group.
endpoint_group_region This property is required. str
The ID of the region in which the endpoint group resides.
endpoint_id This property is required. str
The ID of the endpoint.
listener_id This property is required. str
The ID of the listener.
protocols This property is required. Sequence[str]
The protocol of the backend service.
status This property is required. str
The access policy of traffic for the backend instance. Valid Values: allow, deny.
vswitch This property is required. str
The ID of the endpoint (vSwitch).
acceleratorId This property is required. String
The ID of the GA instance.
acceleratorPort This property is required. Number
The acceleration port.
destinationSocketAddresses This property is required. List<Property Map>
The service IP address and port of the backend instance.
endpointGroupId This property is required. String
The ID of the endpoint group.
endpointGroupRegion This property is required. String
The ID of the region in which the endpoint group resides.
endpointId This property is required. String
The ID of the endpoint.
listenerId This property is required. String
The ID of the listener.
protocols This property is required. List<String>
The protocol of the backend service.
status This property is required. String
The access policy of traffic for the backend instance. Valid Values: allow, deny.
vswitch This property is required. String
The ID of the endpoint (vSwitch).

GetCustomRoutingPortMappingsCustomRoutingPortMappingDestinationSocketAddress

IpAddress This property is required. string
The service IP address of the backend instance.
Port This property is required. int
The service port of the backend instance.
IpAddress This property is required. string
The service IP address of the backend instance.
Port This property is required. int
The service port of the backend instance.
ipAddress This property is required. String
The service IP address of the backend instance.
port This property is required. Integer
The service port of the backend instance.
ipAddress This property is required. string
The service IP address of the backend instance.
port This property is required. number
The service port of the backend instance.
ip_address This property is required. str
The service IP address of the backend instance.
port This property is required. int
The service port of the backend instance.
ipAddress This property is required. String
The service IP address of the backend instance.
port This property is required. 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.