Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.ga.getCustomRoutingEndpoints
Explore with Pulumi AI
This data source provides the Global Accelerator (GA) Custom Routing Endpoints 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 ids = alicloud.ga.getCustomRoutingEndpoints({
ids: ["example_id"],
acceleratorId: "your_accelerator_id",
});
export const gaCustomRoutingEndpointsId1 = ids.then(ids => ids.customRoutingEndpoints?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.ga.get_custom_routing_endpoints(ids=["example_id"],
accelerator_id="your_accelerator_id")
pulumi.export("gaCustomRoutingEndpointsId1", ids.custom_routing_endpoints[0].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 {
ids, err := ga.GetCustomRoutingEndpoints(ctx, &ga.GetCustomRoutingEndpointsArgs{
Ids: []string{
"example_id",
},
AcceleratorId: "your_accelerator_id",
}, nil)
if err != nil {
return err
}
ctx.Export("gaCustomRoutingEndpointsId1", ids.CustomRoutingEndpoints[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Ga.GetCustomRoutingEndpoints.Invoke(new()
{
Ids = new[]
{
"example_id",
},
AcceleratorId = "your_accelerator_id",
});
return new Dictionary<string, object?>
{
["gaCustomRoutingEndpointsId1"] = ids.Apply(getCustomRoutingEndpointsResult => getCustomRoutingEndpointsResult.CustomRoutingEndpoints[0]?.Id),
};
});
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.GetCustomRoutingEndpointsArgs;
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 ids = GaFunctions.getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs.builder()
.ids("example_id")
.acceleratorId("your_accelerator_id")
.build());
ctx.export("gaCustomRoutingEndpointsId1", ids.applyValue(getCustomRoutingEndpointsResult -> getCustomRoutingEndpointsResult.customRoutingEndpoints()[0].id()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:ga:getCustomRoutingEndpoints
Arguments:
ids:
- example_id
acceleratorId: your_accelerator_id
outputs:
gaCustomRoutingEndpointsId1: ${ids.customRoutingEndpoints[0].id}
Using getCustomRoutingEndpoints
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 getCustomRoutingEndpoints(args: GetCustomRoutingEndpointsArgs, opts?: InvokeOptions): Promise<GetCustomRoutingEndpointsResult>
function getCustomRoutingEndpointsOutput(args: GetCustomRoutingEndpointsOutputArgs, opts?: InvokeOptions): Output<GetCustomRoutingEndpointsResult>
def get_custom_routing_endpoints(accelerator_id: Optional[str] = None,
endpoint_group_id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
listener_id: Optional[str] = None,
output_file: Optional[str] = None,
page_number: Optional[int] = None,
page_size: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetCustomRoutingEndpointsResult
def get_custom_routing_endpoints_output(accelerator_id: Optional[pulumi.Input[str]] = None,
endpoint_group_id: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[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,
opts: Optional[InvokeOptions] = None) -> Output[GetCustomRoutingEndpointsResult]
func GetCustomRoutingEndpoints(ctx *Context, args *GetCustomRoutingEndpointsArgs, opts ...InvokeOption) (*GetCustomRoutingEndpointsResult, error)
func GetCustomRoutingEndpointsOutput(ctx *Context, args *GetCustomRoutingEndpointsOutputArgs, opts ...InvokeOption) GetCustomRoutingEndpointsResultOutput
> Note: This function is named GetCustomRoutingEndpoints
in the Go SDK.
public static class GetCustomRoutingEndpoints
{
public static Task<GetCustomRoutingEndpointsResult> InvokeAsync(GetCustomRoutingEndpointsArgs args, InvokeOptions? opts = null)
public static Output<GetCustomRoutingEndpointsResult> Invoke(GetCustomRoutingEndpointsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCustomRoutingEndpointsResult> getCustomRoutingEndpoints(GetCustomRoutingEndpointsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:ga/getCustomRoutingEndpoints:getCustomRoutingEndpoints
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.
- Ids List<string>
- A list of Custom Routing Endpoint IDs.
- Listener
Id string - The ID of the custom routing listener.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int
- Accelerator
Id string - The ID of the GA instance.
- Endpoint
Group stringId - The ID of the endpoint group.
- Ids []string
- A list of Custom Routing Endpoint IDs.
- Listener
Id string - The ID of the custom routing listener.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int
- accelerator
Id String - The ID of the GA instance.
- endpoint
Group StringId - The ID of the endpoint group.
- ids List<String>
- A list of Custom Routing Endpoint IDs.
- listener
Id String - The ID of the custom routing listener.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Integer - page
Size Integer
- accelerator
Id string - The ID of the GA instance.
- endpoint
Group stringId - The ID of the endpoint group.
- ids string[]
- A list of Custom Routing Endpoint IDs.
- listener
Id string - The ID of the custom routing listener.
- output
File string - File name where to save data source results (after running
pulumi preview
). - page
Number number - page
Size number
- accelerator_
id str - The ID of the GA instance.
- endpoint_
group_ strid - The ID of the endpoint group.
- ids Sequence[str]
- A list of Custom Routing Endpoint IDs.
- listener_
id str - The ID of the custom routing listener.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - page_
number int - page_
size int
- accelerator
Id String - The ID of the GA instance.
- endpoint
Group StringId - The ID of the endpoint group.
- ids List<String>
- A list of Custom Routing Endpoint IDs.
- listener
Id String - The ID of the custom routing listener.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Number - page
Size Number
getCustomRoutingEndpoints Result
The following output properties are available:
- Accelerator
Id string - The ID of the GA instance with which the endpoint is associated.
- Custom
Routing List<Pulumi.Endpoints Ali Cloud. Ga. Outputs. Get Custom Routing Endpoints Custom Routing Endpoint> - A list of Custom Routing Endpoints. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Endpoint
Group stringId - The ID of the Custom Routing Endpoint Group.
- Listener
Id string - The ID of the listener with which the endpoint is associated.
- Output
File string - Page
Number int - Page
Size int
- Accelerator
Id string - The ID of the GA instance with which the endpoint is associated.
- Custom
Routing []GetEndpoints Custom Routing Endpoints Custom Routing Endpoint - A list of Custom Routing Endpoints. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Endpoint
Group stringId - The ID of the Custom Routing Endpoint Group.
- Listener
Id string - The ID of the listener with which the endpoint is associated.
- Output
File string - Page
Number int - Page
Size int
- accelerator
Id String - The ID of the GA instance with which the endpoint is associated.
- custom
Routing List<GetEndpoints Custom Routing Endpoints Custom Routing Endpoint> - A list of Custom Routing Endpoints. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- endpoint
Group StringId - The ID of the Custom Routing Endpoint Group.
- listener
Id String - The ID of the listener with which the endpoint is associated.
- output
File String - page
Number Integer - page
Size Integer
- accelerator
Id string - The ID of the GA instance with which the endpoint is associated.
- custom
Routing GetEndpoints Custom Routing Endpoints Custom Routing Endpoint[] - A list of Custom Routing Endpoints. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- endpoint
Group stringId - The ID of the Custom Routing Endpoint Group.
- listener
Id string - The ID of the listener with which the endpoint is associated.
- output
File string - page
Number number - page
Size number
- accelerator_
id str - The ID of the GA instance with which the endpoint is associated.
- custom_
routing_ Sequence[Getendpoints Custom Routing Endpoints Custom Routing Endpoint] - A list of Custom Routing Endpoints. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- endpoint_
group_ strid - The ID of the Custom Routing Endpoint Group.
- listener_
id str - The ID of the listener with which the endpoint is associated.
- output_
file str - page_
number int - page_
size int
- accelerator
Id String - The ID of the GA instance with which the endpoint is associated.
- custom
Routing List<Property Map>Endpoints - A list of Custom Routing Endpoints. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- endpoint
Group StringId - The ID of the Custom Routing Endpoint Group.
- listener
Id String - The ID of the listener with which the endpoint is associated.
- output
File String - page
Number Number - page
Size Number
Supporting Types
GetCustomRoutingEndpointsCustomRoutingEndpoint
- Accelerator
Id string - The ID of the GA instance.
- Custom
Routing stringEndpoint Id - The ID of the Custom Routing Endpoint.
- Endpoint string
- The ID of the endpoint (vSwitch).
- Endpoint
Group stringId - The ID of the endpoint group.
- Id string
- The id of the Global Accelerator Custom Routing Endpoint. It formats as
<endpoint_group_id>:<custom_routing_endpoint_id>
. - Listener
Id string - The ID of the custom routing listener.
- Traffic
To stringEndpoint Policy - The access policy of traffic for the specified endpoint.
- Type string
- The backend service type of the endpoint.
- Accelerator
Id string - The ID of the GA instance.
- Custom
Routing stringEndpoint Id - The ID of the Custom Routing Endpoint.
- Endpoint string
- The ID of the endpoint (vSwitch).
- Endpoint
Group stringId - The ID of the endpoint group.
- Id string
- The id of the Global Accelerator Custom Routing Endpoint. It formats as
<endpoint_group_id>:<custom_routing_endpoint_id>
. - Listener
Id string - The ID of the custom routing listener.
- Traffic
To stringEndpoint Policy - The access policy of traffic for the specified endpoint.
- Type string
- The backend service type of the endpoint.
- accelerator
Id String - The ID of the GA instance.
- custom
Routing StringEndpoint Id - The ID of the Custom Routing Endpoint.
- endpoint String
- The ID of the endpoint (vSwitch).
- endpoint
Group StringId - The ID of the endpoint group.
- id String
- The id of the Global Accelerator Custom Routing Endpoint. It formats as
<endpoint_group_id>:<custom_routing_endpoint_id>
. - listener
Id String - The ID of the custom routing listener.
- traffic
To StringEndpoint Policy - The access policy of traffic for the specified endpoint.
- type String
- The backend service type of the endpoint.
- accelerator
Id string - The ID of the GA instance.
- custom
Routing stringEndpoint Id - The ID of the Custom Routing Endpoint.
- endpoint string
- The ID of the endpoint (vSwitch).
- endpoint
Group stringId - The ID of the endpoint group.
- id string
- The id of the Global Accelerator Custom Routing Endpoint. It formats as
<endpoint_group_id>:<custom_routing_endpoint_id>
. - listener
Id string - The ID of the custom routing listener.
- traffic
To stringEndpoint Policy - The access policy of traffic for the specified endpoint.
- type string
- The backend service type of the endpoint.
- accelerator_
id str - The ID of the GA instance.
- custom_
routing_ strendpoint_ id - The ID of the Custom Routing Endpoint.
- endpoint str
- The ID of the endpoint (vSwitch).
- endpoint_
group_ strid - The ID of the endpoint group.
- id str
- The id of the Global Accelerator Custom Routing Endpoint. It formats as
<endpoint_group_id>:<custom_routing_endpoint_id>
. - listener_
id str - The ID of the custom routing listener.
- traffic_
to_ strendpoint_ policy - The access policy of traffic for the specified endpoint.
- type str
- The backend service type of the endpoint.
- accelerator
Id String - The ID of the GA instance.
- custom
Routing StringEndpoint Id - The ID of the Custom Routing Endpoint.
- endpoint String
- The ID of the endpoint (vSwitch).
- endpoint
Group StringId - The ID of the endpoint group.
- id String
- The id of the Global Accelerator Custom Routing Endpoint. It formats as
<endpoint_group_id>:<custom_routing_endpoint_id>
. - listener
Id String - The ID of the custom routing listener.
- traffic
To StringEndpoint Policy - The access policy of traffic for the specified endpoint.
- type String
- The backend service type of the endpoint.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.