1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getErAssociationsV3
opentelekomcloud 1.36.45 published on Friday, Aug 15, 2025 by opentelekomcloud

opentelekomcloud.getErAssociationsV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.45 published on Friday, Aug 15, 2025 by opentelekomcloud

    Use this data source to get the list of associations.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const instanceId = config.requireObject("instanceId");
    const routeTableId = config.requireObject("routeTableId");
    const test = opentelekomcloud.getErAssociationsV3({
        instanceId: instanceId,
        routeTableId: routeTableId,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    instance_id = config.require_object("instanceId")
    route_table_id = config.require_object("routeTableId")
    test = opentelekomcloud.get_er_associations_v3(instance_id=instance_id,
        route_table_id=route_table_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		instanceId := cfg.RequireObject("instanceId")
    		routeTableId := cfg.RequireObject("routeTableId")
    		_, err := opentelekomcloud.GetErAssociationsV3(ctx, &opentelekomcloud.GetErAssociationsV3Args{
    			InstanceId:   instanceId,
    			RouteTableId: routeTableId,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var instanceId = config.RequireObject<dynamic>("instanceId");
        var routeTableId = config.RequireObject<dynamic>("routeTableId");
        var test = Opentelekomcloud.GetErAssociationsV3.Invoke(new()
        {
            InstanceId = instanceId,
            RouteTableId = routeTableId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetErAssociationsV3Args;
    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 config = ctx.config();
            final var instanceId = config.get("instanceId");
            final var routeTableId = config.get("routeTableId");
            final var test = OpentelekomcloudFunctions.getErAssociationsV3(GetErAssociationsV3Args.builder()
                .instanceId(instanceId)
                .routeTableId(routeTableId)
                .build());
    
        }
    }
    
    configuration:
      instanceId:
        type: dynamic
      routeTableId:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: opentelekomcloud:getErAssociationsV3
          arguments:
            instanceId: ${instanceId}
            routeTableId: ${routeTableId}
    

    Using getErAssociationsV3

    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 getErAssociationsV3(args: GetErAssociationsV3Args, opts?: InvokeOptions): Promise<GetErAssociationsV3Result>
    function getErAssociationsV3Output(args: GetErAssociationsV3OutputArgs, opts?: InvokeOptions): Output<GetErAssociationsV3Result>
    def get_er_associations_v3(attachment_id: Optional[str] = None,
                               attachment_type: Optional[str] = None,
                               id: Optional[str] = None,
                               instance_id: Optional[str] = None,
                               route_table_id: Optional[str] = None,
                               status: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetErAssociationsV3Result
    def get_er_associations_v3_output(attachment_id: Optional[pulumi.Input[str]] = None,
                               attachment_type: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               instance_id: Optional[pulumi.Input[str]] = None,
                               route_table_id: Optional[pulumi.Input[str]] = None,
                               status: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetErAssociationsV3Result]
    func GetErAssociationsV3(ctx *Context, args *GetErAssociationsV3Args, opts ...InvokeOption) (*GetErAssociationsV3Result, error)
    func GetErAssociationsV3Output(ctx *Context, args *GetErAssociationsV3OutputArgs, opts ...InvokeOption) GetErAssociationsV3ResultOutput

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

    public static class GetErAssociationsV3 
    {
        public static Task<GetErAssociationsV3Result> InvokeAsync(GetErAssociationsV3Args args, InvokeOptions? opts = null)
        public static Output<GetErAssociationsV3Result> Invoke(GetErAssociationsV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetErAssociationsV3Result> getErAssociationsV3(GetErAssociationsV3Args args, InvokeOptions options)
    public static Output<GetErAssociationsV3Result> getErAssociationsV3(GetErAssociationsV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getErAssociationsV3:getErAssociationsV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Specifies the ER instance ID to which the association belongs.
    RouteTableId string
    Specifies the route table ID to which the association belongs.
    AttachmentId string
    Specifies the attachment ID corresponding to the association.
    AttachmentType string
    Specifies the attachment type corresponding to the association.
    Id string
    The association ID.
    Status string
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed
    InstanceId string
    Specifies the ER instance ID to which the association belongs.
    RouteTableId string
    Specifies the route table ID to which the association belongs.
    AttachmentId string
    Specifies the attachment ID corresponding to the association.
    AttachmentType string
    Specifies the attachment type corresponding to the association.
    Id string
    The association ID.
    Status string
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed
    instanceId String
    Specifies the ER instance ID to which the association belongs.
    routeTableId String
    Specifies the route table ID to which the association belongs.
    attachmentId String
    Specifies the attachment ID corresponding to the association.
    attachmentType String
    Specifies the attachment type corresponding to the association.
    id String
    The association ID.
    status String
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed
    instanceId string
    Specifies the ER instance ID to which the association belongs.
    routeTableId string
    Specifies the route table ID to which the association belongs.
    attachmentId string
    Specifies the attachment ID corresponding to the association.
    attachmentType string
    Specifies the attachment type corresponding to the association.
    id string
    The association ID.
    status string
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed
    instance_id str
    Specifies the ER instance ID to which the association belongs.
    route_table_id str
    Specifies the route table ID to which the association belongs.
    attachment_id str
    Specifies the attachment ID corresponding to the association.
    attachment_type str
    Specifies the attachment type corresponding to the association.
    id str
    The association ID.
    status str
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed
    instanceId String
    Specifies the ER instance ID to which the association belongs.
    routeTableId String
    Specifies the route table ID to which the association belongs.
    attachmentId String
    Specifies the attachment ID corresponding to the association.
    attachmentType String
    Specifies the attachment type corresponding to the association.
    id String
    The association ID.
    status String
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed

    getErAssociationsV3 Result

    The following output properties are available:

    Associations List<GetErAssociationsV3Association>
    All associations that match the filter parameters. The associations structure is documented below.
    Id string
    The association ID.
    InstanceId string
    RouteTableId string
    AttachmentId string
    The attachment ID corresponding to the association.
    AttachmentType string
    The type of the attachment corresponding to the association.
    Status string
    The current status of the association.
    Associations []GetErAssociationsV3Association
    All associations that match the filter parameters. The associations structure is documented below.
    Id string
    The association ID.
    InstanceId string
    RouteTableId string
    AttachmentId string
    The attachment ID corresponding to the association.
    AttachmentType string
    The type of the attachment corresponding to the association.
    Status string
    The current status of the association.
    associations List<GetErAssociationsV3Association>
    All associations that match the filter parameters. The associations structure is documented below.
    id String
    The association ID.
    instanceId String
    routeTableId String
    attachmentId String
    The attachment ID corresponding to the association.
    attachmentType String
    The type of the attachment corresponding to the association.
    status String
    The current status of the association.
    associations GetErAssociationsV3Association[]
    All associations that match the filter parameters. The associations structure is documented below.
    id string
    The association ID.
    instanceId string
    routeTableId string
    attachmentId string
    The attachment ID corresponding to the association.
    attachmentType string
    The type of the attachment corresponding to the association.
    status string
    The current status of the association.
    associations Sequence[GetErAssociationsV3Association]
    All associations that match the filter parameters. The associations structure is documented below.
    id str
    The association ID.
    instance_id str
    route_table_id str
    attachment_id str
    The attachment ID corresponding to the association.
    attachment_type str
    The type of the attachment corresponding to the association.
    status str
    The current status of the association.
    associations List<Property Map>
    All associations that match the filter parameters. The associations structure is documented below.
    id String
    The association ID.
    instanceId String
    routeTableId String
    attachmentId String
    The attachment ID corresponding to the association.
    attachmentType String
    The type of the attachment corresponding to the association.
    status String
    The current status of the association.

    Supporting Types

    GetErAssociationsV3Association

    AttachmentId string
    Specifies the attachment ID corresponding to the association.
    AttachmentType string
    Specifies the attachment type corresponding to the association.
    CreatedAt string
    The creation time.
    Id string
    The association ID.
    ResourceId string
    The resource ID of the attachment corresponding to the association.
    RouteTableId string
    Specifies the route table ID to which the association belongs.
    Status string
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed
    UpdatedAt string
    The latest update time.
    AttachmentId string
    Specifies the attachment ID corresponding to the association.
    AttachmentType string
    Specifies the attachment type corresponding to the association.
    CreatedAt string
    The creation time.
    Id string
    The association ID.
    ResourceId string
    The resource ID of the attachment corresponding to the association.
    RouteTableId string
    Specifies the route table ID to which the association belongs.
    Status string
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed
    UpdatedAt string
    The latest update time.
    attachmentId String
    Specifies the attachment ID corresponding to the association.
    attachmentType String
    Specifies the attachment type corresponding to the association.
    createdAt String
    The creation time.
    id String
    The association ID.
    resourceId String
    The resource ID of the attachment corresponding to the association.
    routeTableId String
    Specifies the route table ID to which the association belongs.
    status String
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed
    updatedAt String
    The latest update time.
    attachmentId string
    Specifies the attachment ID corresponding to the association.
    attachmentType string
    Specifies the attachment type corresponding to the association.
    createdAt string
    The creation time.
    id string
    The association ID.
    resourceId string
    The resource ID of the attachment corresponding to the association.
    routeTableId string
    Specifies the route table ID to which the association belongs.
    status string
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed
    updatedAt string
    The latest update time.
    attachment_id str
    Specifies the attachment ID corresponding to the association.
    attachment_type str
    Specifies the attachment type corresponding to the association.
    created_at str
    The creation time.
    id str
    The association ID.
    resource_id str
    The resource ID of the attachment corresponding to the association.
    route_table_id str
    Specifies the route table ID to which the association belongs.
    status str
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed
    updated_at str
    The latest update time.
    attachmentId String
    Specifies the attachment ID corresponding to the association.
    attachmentType String
    Specifies the attachment type corresponding to the association.
    createdAt String
    The creation time.
    id String
    The association ID.
    resourceId String
    The resource ID of the attachment corresponding to the association.
    routeTableId String
    Specifies the route table ID to which the association belongs.
    status String
    Specifies the status of the association. Default value is available. The valid values are as follows:

    • available
    • failed
    updatedAt String
    The latest update time.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.45 published on Friday, Aug 15, 2025 by opentelekomcloud