Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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 in 1.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);
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)
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
})
}
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 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());
}
}
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:
- Accelerator
Id string - The ID of the GA instance.
- Endpoint
Group stringId - The ID of the endpoint group.
- Listener
Id string - The ID of the listener.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int - Status string
- The access policy of traffic for the backend instance. Valid Values:
allow
,deny
.
- Accelerator
Id string - The ID of the GA instance.
- Endpoint
Group stringId - The ID of the endpoint group.
- Listener
Id string - The ID of the listener.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int - Status string
- The access policy of traffic for the backend instance. Valid Values:
allow
,deny
.
- accelerator
Id String - The ID of the GA instance.
- endpoint
Group StringId - The ID of the endpoint group.
- listener
Id String - The ID of the listener.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Integer - page
Size Integer - status String
- The access policy of traffic for the backend instance. Valid Values:
allow
,deny
.
- accelerator
Id string - The ID of the GA instance.
- endpoint
Group stringId - The ID of the endpoint group.
- listener
Id string - The ID of the listener.
- output
File string - File name where to save data source results (after running
pulumi preview
). - page
Number number - page
Size 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_ strid - 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
.
- accelerator
Id String - The ID of the GA instance.
- endpoint
Group StringId - The ID of the endpoint group.
- listener
Id String - The ID of the listener.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Number - page
Size Number - status String
- The access policy of traffic for the backend instance. Valid Values:
allow
,deny
.
getCustomRoutingPortMappings Result
The following output properties are available:
- Accelerator
Id string - The ID of the GA instance.
- Custom
Routing List<Pulumi.Port Mappings Ali Cloud. Ga. Outputs. Get Custom Routing Port Mappings Custom Routing Port Mapping> - A list of Custom Routing Port Mappings. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Endpoint
Group stringId - The ID of the endpoint group.
- Listener
Id string - The ID of the listener.
- Output
File string - Page
Number int - Page
Size int - Status string
- The access policy of traffic for the backend instance.
- Accelerator
Id string - The ID of the GA instance.
- Custom
Routing []GetPort Mappings Custom Routing Port Mappings Custom Routing Port Mapping - A list of Custom Routing Port Mappings. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Endpoint
Group stringId - The ID of the endpoint group.
- Listener
Id string - The ID of the listener.
- Output
File string - Page
Number int - Page
Size int - Status string
- The access policy of traffic for the backend instance.
- accelerator
Id String - The ID of the GA instance.
- custom
Routing List<GetPort Mappings Custom Routing Port Mappings Custom Routing Port Mapping> - A list of Custom Routing Port Mappings. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- endpoint
Group StringId - The ID of the endpoint group.
- listener
Id String - The ID of the listener.
- output
File String - page
Number Integer - page
Size Integer - status String
- The access policy of traffic for the backend instance.
- accelerator
Id string - The ID of the GA instance.
- custom
Routing GetPort Mappings Custom Routing Port Mappings Custom Routing Port Mapping[] - A list of Custom Routing Port Mappings. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- endpoint
Group stringId - The ID of the endpoint group.
- listener
Id string - The ID of the listener.
- output
File string - page
Number number - page
Size number - status string
- The access policy of traffic for the backend instance.
- accelerator_
id str - The ID of the GA instance.
- custom_
routing_ Sequence[Getport_ mappings Custom Routing Port Mappings Custom Routing Port Mapping] - 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_ strid - 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.
- accelerator
Id String - The ID of the GA instance.
- custom
Routing List<Property Map>Port Mappings - A list of Custom Routing Port Mappings. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- endpoint
Group StringId - The ID of the endpoint group.
- listener
Id String - The ID of the listener.
- output
File String - page
Number Number - page
Size Number - status String
- The access policy of traffic for the backend instance.
Supporting Types
GetCustomRoutingPortMappingsCustomRoutingPortMapping
- Accelerator
Id string - The ID of the GA instance.
- Accelerator
Port int - The acceleration port.
- Destination
Socket List<Pulumi.Addresses Ali Cloud. Ga. Inputs. Get Custom Routing Port Mappings Custom Routing Port Mapping Destination Socket Address> - The service IP address and port of the backend instance.
- Endpoint
Group stringId - The ID of the endpoint group.
- Endpoint
Group stringRegion - The ID of the region in which the endpoint group resides.
- Endpoint
Id string - The ID of the endpoint.
- Listener
Id 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).
- Accelerator
Id string - The ID of the GA instance.
- Accelerator
Port int - The acceleration port.
- Destination
Socket []GetAddresses Custom Routing Port Mappings Custom Routing Port Mapping Destination Socket Address - The service IP address and port of the backend instance.
- Endpoint
Group stringId - The ID of the endpoint group.
- Endpoint
Group stringRegion - The ID of the region in which the endpoint group resides.
- Endpoint
Id string - The ID of the endpoint.
- Listener
Id 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 String - The ID of the GA instance.
- accelerator
Port Integer - The acceleration port.
- destination
Socket List<GetAddresses Custom Routing Port Mappings Custom Routing Port Mapping Destination Socket Address> - The service IP address and port of the backend instance.
- endpoint
Group StringId - The ID of the endpoint group.
- endpoint
Group StringRegion - The ID of the region in which the endpoint group resides.
- endpoint
Id String - The ID of the endpoint.
- listener
Id 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).
- accelerator
Id string - The ID of the GA instance.
- accelerator
Port number - The acceleration port.
- destination
Socket GetAddresses Custom Routing Port Mappings Custom Routing Port Mapping Destination Socket Address[] - The service IP address and port of the backend instance.
- endpoint
Group stringId - The ID of the endpoint group.
- endpoint
Group stringRegion - The ID of the region in which the endpoint group resides.
- endpoint
Id string - The ID of the endpoint.
- listener
Id 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_ Sequence[Getaddresses Custom Routing Port Mappings Custom Routing Port Mapping Destination Socket Address] - The service IP address and port of the backend instance.
- endpoint_
group_ strid - The ID of the endpoint group.
- endpoint_
group_ strregion - 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).
- accelerator
Id String - The ID of the GA instance.
- accelerator
Port Number - The acceleration port.
- destination
Socket List<Property Map>Addresses - The service IP address and port of the backend instance.
- endpoint
Group StringId - The ID of the endpoint group.
- endpoint
Group StringRegion - The ID of the region in which the endpoint group resides.
- endpoint
Id String - The ID of the endpoint.
- listener
Id 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
- ip_
address str - The service IP address of the backend instance.
- port int
- 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.