1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ga
  5. getBasicAccelerateIpEndpointRelations
Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi

alicloud.ga.getBasicAccelerateIpEndpointRelations

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi

    This data source provides the Global Accelerator (GA) Basic Accelerate Ip Endpoint Relations of the current Alibaba Cloud user.

    NOTE: Available in v1.194.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.ga.getBasicAccelerateIpEndpointRelations({
        ids: ["example_id"],
        acceleratorId: "example_id",
    });
    export const gaBasicAccelerateIpEndpointRelationsId1 = ids.then(ids => ids.relations?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.ga.get_basic_accelerate_ip_endpoint_relations(ids=["example_id"],
        accelerator_id="example_id")
    pulumi.export("gaBasicAccelerateIpEndpointRelationsId1", ids.relations[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.GetBasicAccelerateIpEndpointRelations(ctx, &ga.GetBasicAccelerateIpEndpointRelationsArgs{
    			Ids: []string{
    				"example_id",
    			},
    			AcceleratorId: "example_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("gaBasicAccelerateIpEndpointRelationsId1", ids.Relations[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.GetBasicAccelerateIpEndpointRelations.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
            AcceleratorId = "example_id",
        });
    
        return new Dictionary<string, object?>
        {
            ["gaBasicAccelerateIpEndpointRelationsId1"] = ids.Apply(getBasicAccelerateIpEndpointRelationsResult => getBasicAccelerateIpEndpointRelationsResult.Relations[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.GetBasicAccelerateIpEndpointRelationsArgs;
    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.getBasicAccelerateIpEndpointRelations(GetBasicAccelerateIpEndpointRelationsArgs.builder()
                .ids("example_id")
                .acceleratorId("example_id")
                .build());
    
            ctx.export("gaBasicAccelerateIpEndpointRelationsId1", ids.applyValue(getBasicAccelerateIpEndpointRelationsResult -> getBasicAccelerateIpEndpointRelationsResult.relations()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:ga:getBasicAccelerateIpEndpointRelations
          Arguments:
            ids:
              - example_id
            acceleratorId: example_id
    outputs:
      gaBasicAccelerateIpEndpointRelationsId1: ${ids.relations[0].id}
    

    Using getBasicAccelerateIpEndpointRelations

    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 getBasicAccelerateIpEndpointRelations(args: GetBasicAccelerateIpEndpointRelationsArgs, opts?: InvokeOptions): Promise<GetBasicAccelerateIpEndpointRelationsResult>
    function getBasicAccelerateIpEndpointRelationsOutput(args: GetBasicAccelerateIpEndpointRelationsOutputArgs, opts?: InvokeOptions): Output<GetBasicAccelerateIpEndpointRelationsResult>
    def get_basic_accelerate_ip_endpoint_relations(accelerate_ip_id: Optional[str] = None,
                                                   accelerator_id: Optional[str] = None,
                                                   endpoint_id: Optional[str] = None,
                                                   ids: Optional[Sequence[str]] = None,
                                                   output_file: Optional[str] = None,
                                                   status: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetBasicAccelerateIpEndpointRelationsResult
    def get_basic_accelerate_ip_endpoint_relations_output(accelerate_ip_id: Optional[pulumi.Input[str]] = None,
                                                   accelerator_id: Optional[pulumi.Input[str]] = None,
                                                   endpoint_id: Optional[pulumi.Input[str]] = None,
                                                   ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                   output_file: Optional[pulumi.Input[str]] = None,
                                                   status: Optional[pulumi.Input[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetBasicAccelerateIpEndpointRelationsResult]
    func GetBasicAccelerateIpEndpointRelations(ctx *Context, args *GetBasicAccelerateIpEndpointRelationsArgs, opts ...InvokeOption) (*GetBasicAccelerateIpEndpointRelationsResult, error)
    func GetBasicAccelerateIpEndpointRelationsOutput(ctx *Context, args *GetBasicAccelerateIpEndpointRelationsOutputArgs, opts ...InvokeOption) GetBasicAccelerateIpEndpointRelationsResultOutput

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

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

    The following arguments are supported:

    AcceleratorId string
    The ID of the Global Accelerator Basic Accelerator instance.
    AccelerateIpId string
    The ID of the Basic Accelerate IP.
    EndpointId string
    The ID of the Basic Endpoint.
    Ids List<string>
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.
    AcceleratorId string
    The ID of the Global Accelerator Basic Accelerator instance.
    AccelerateIpId string
    The ID of the Basic Accelerate IP.
    EndpointId string
    The ID of the Basic Endpoint.
    Ids []string
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.
    acceleratorId String
    The ID of the Global Accelerator Basic Accelerator instance.
    accelerateIpId String
    The ID of the Basic Accelerate IP.
    endpointId String
    The ID of the Basic Endpoint.
    ids List<String>
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.
    acceleratorId string
    The ID of the Global Accelerator Basic Accelerator instance.
    accelerateIpId string
    The ID of the Basic Accelerate IP.
    endpointId string
    The ID of the Basic Endpoint.
    ids string[]
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.
    accelerator_id str
    The ID of the Global Accelerator Basic Accelerator instance.
    accelerate_ip_id str
    The ID of the Basic Accelerate IP.
    endpoint_id str
    The ID of the Basic Endpoint.
    ids Sequence[str]
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.
    acceleratorId String
    The ID of the Global Accelerator Basic Accelerator instance.
    accelerateIpId String
    The ID of the Basic Accelerate IP.
    endpointId String
    The ID of the Basic Endpoint.
    ids List<String>
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.

    getBasicAccelerateIpEndpointRelations Result

    The following output properties are available:

    AcceleratorId string
    The ID of the Global Accelerator Basic Accelerator instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Relations List<Pulumi.AliCloud.Ga.Outputs.GetBasicAccelerateIpEndpointRelationsRelation>
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations. Each element contains the following attributes:
    AccelerateIpId string
    The ID of the Basic Accelerate IP.
    EndpointId string
    The ID of the Basic Endpoint.
    OutputFile string
    Status string
    The status of the Basic Accelerate Ip Endpoint Relation.
    AcceleratorId string
    The ID of the Global Accelerator Basic Accelerator instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Relations []GetBasicAccelerateIpEndpointRelationsRelation
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations. Each element contains the following attributes:
    AccelerateIpId string
    The ID of the Basic Accelerate IP.
    EndpointId string
    The ID of the Basic Endpoint.
    OutputFile string
    Status string
    The status of the Basic Accelerate Ip Endpoint Relation.
    acceleratorId String
    The ID of the Global Accelerator Basic Accelerator instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    relations List<GetBasicAccelerateIpEndpointRelationsRelation>
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations. Each element contains the following attributes:
    accelerateIpId String
    The ID of the Basic Accelerate IP.
    endpointId String
    The ID of the Basic Endpoint.
    outputFile String
    status String
    The status of the Basic Accelerate Ip Endpoint Relation.
    acceleratorId string
    The ID of the Global Accelerator Basic Accelerator instance.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    relations GetBasicAccelerateIpEndpointRelationsRelation[]
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations. Each element contains the following attributes:
    accelerateIpId string
    The ID of the Basic Accelerate IP.
    endpointId string
    The ID of the Basic Endpoint.
    outputFile string
    status string
    The status of the Basic Accelerate Ip Endpoint Relation.
    accelerator_id str
    The ID of the Global Accelerator Basic Accelerator instance.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    relations Sequence[GetBasicAccelerateIpEndpointRelationsRelation]
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations. Each element contains the following attributes:
    accelerate_ip_id str
    The ID of the Basic Accelerate IP.
    endpoint_id str
    The ID of the Basic Endpoint.
    output_file str
    status str
    The status of the Basic Accelerate Ip Endpoint Relation.
    acceleratorId String
    The ID of the Global Accelerator Basic Accelerator instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    relations List<Property Map>
    A list of Global Accelerator Basic Accelerate Ip Endpoint Relations. Each element contains the following attributes:
    accelerateIpId String
    The ID of the Basic Accelerate IP.
    endpointId String
    The ID of the Basic Endpoint.
    outputFile String
    status String
    The status of the Basic Accelerate Ip Endpoint Relation.

    Supporting Types

    GetBasicAccelerateIpEndpointRelationsRelation

    AccelerateIpId string
    The ID of the Basic Accelerate IP.
    AcceleratorId string
    The ID of the Global Accelerator Basic Accelerator instance.
    BasicEndpointName string
    The name of the Basic Endpoint.
    EndpointAddress string
    The address of the Basic Endpoint.
    EndpointId string
    The ID of the Basic Endpoint.
    EndpointSubAddress string
    The sub address of the Basic Endpoint.
    EndpointSubAddressType string
    The sub address type of the Basic Endpoint.
    EndpointType string
    The type of the Basic Endpoint.
    EndpointZoneId string
    The zone id of the Basic Endpoint.
    Id string
    The id of the Global Accelerator Basic Accelerate Ip Endpoint Relation. It formats as <accelerator_id>:<accelerate_ip_id>:<endpoint_id>.
    IpAddress string
    The address of the Basic Accelerate IP.
    Status string
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.
    AccelerateIpId string
    The ID of the Basic Accelerate IP.
    AcceleratorId string
    The ID of the Global Accelerator Basic Accelerator instance.
    BasicEndpointName string
    The name of the Basic Endpoint.
    EndpointAddress string
    The address of the Basic Endpoint.
    EndpointId string
    The ID of the Basic Endpoint.
    EndpointSubAddress string
    The sub address of the Basic Endpoint.
    EndpointSubAddressType string
    The sub address type of the Basic Endpoint.
    EndpointType string
    The type of the Basic Endpoint.
    EndpointZoneId string
    The zone id of the Basic Endpoint.
    Id string
    The id of the Global Accelerator Basic Accelerate Ip Endpoint Relation. It formats as <accelerator_id>:<accelerate_ip_id>:<endpoint_id>.
    IpAddress string
    The address of the Basic Accelerate IP.
    Status string
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.
    accelerateIpId String
    The ID of the Basic Accelerate IP.
    acceleratorId String
    The ID of the Global Accelerator Basic Accelerator instance.
    basicEndpointName String
    The name of the Basic Endpoint.
    endpointAddress String
    The address of the Basic Endpoint.
    endpointId String
    The ID of the Basic Endpoint.
    endpointSubAddress String
    The sub address of the Basic Endpoint.
    endpointSubAddressType String
    The sub address type of the Basic Endpoint.
    endpointType String
    The type of the Basic Endpoint.
    endpointZoneId String
    The zone id of the Basic Endpoint.
    id String
    The id of the Global Accelerator Basic Accelerate Ip Endpoint Relation. It formats as <accelerator_id>:<accelerate_ip_id>:<endpoint_id>.
    ipAddress String
    The address of the Basic Accelerate IP.
    status String
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.
    accelerateIpId string
    The ID of the Basic Accelerate IP.
    acceleratorId string
    The ID of the Global Accelerator Basic Accelerator instance.
    basicEndpointName string
    The name of the Basic Endpoint.
    endpointAddress string
    The address of the Basic Endpoint.
    endpointId string
    The ID of the Basic Endpoint.
    endpointSubAddress string
    The sub address of the Basic Endpoint.
    endpointSubAddressType string
    The sub address type of the Basic Endpoint.
    endpointType string
    The type of the Basic Endpoint.
    endpointZoneId string
    The zone id of the Basic Endpoint.
    id string
    The id of the Global Accelerator Basic Accelerate Ip Endpoint Relation. It formats as <accelerator_id>:<accelerate_ip_id>:<endpoint_id>.
    ipAddress string
    The address of the Basic Accelerate IP.
    status string
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.
    accelerate_ip_id str
    The ID of the Basic Accelerate IP.
    accelerator_id str
    The ID of the Global Accelerator Basic Accelerator instance.
    basic_endpoint_name str
    The name of the Basic Endpoint.
    endpoint_address str
    The address of the Basic Endpoint.
    endpoint_id str
    The ID of the Basic Endpoint.
    endpoint_sub_address str
    The sub address of the Basic Endpoint.
    endpoint_sub_address_type str
    The sub address type of the Basic Endpoint.
    endpoint_type str
    The type of the Basic Endpoint.
    endpoint_zone_id str
    The zone id of the Basic Endpoint.
    id str
    The id of the Global Accelerator Basic Accelerate Ip Endpoint Relation. It formats as <accelerator_id>:<accelerate_ip_id>:<endpoint_id>.
    ip_address str
    The address of the Basic Accelerate IP.
    status str
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.
    accelerateIpId String
    The ID of the Basic Accelerate IP.
    acceleratorId String
    The ID of the Global Accelerator Basic Accelerator instance.
    basicEndpointName String
    The name of the Basic Endpoint.
    endpointAddress String
    The address of the Basic Endpoint.
    endpointId String
    The ID of the Basic Endpoint.
    endpointSubAddress String
    The sub address of the Basic Endpoint.
    endpointSubAddressType String
    The sub address type of the Basic Endpoint.
    endpointType String
    The type of the Basic Endpoint.
    endpointZoneId String
    The zone id of the Basic Endpoint.
    id String
    The id of the Global Accelerator Basic Accelerate Ip Endpoint Relation. It formats as <accelerator_id>:<accelerate_ip_id>:<endpoint_id>.
    ipAddress String
    The address of the Basic Accelerate IP.
    status String
    The status of the Global Accelerator Basic Accelerate Ip Endpoint Relation. Valid Value: active.

    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.68.0 published on Monday, Dec 2, 2024 by Pulumi