1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cr
  5. getVpcEndpointLinkedVpcs
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.cr.getVpcEndpointLinkedVpcs

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    This data source provides the CR Vpc Endpoint Linked Vpcs of the current Alibaba Cloud user.

    NOTE: Available in v1.199.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.cr.getVpcEndpointLinkedVpcs({
        ids: ["example_id"],
        instanceId: "your_cr_instance_id",
        moduleName: "Registry",
    });
    export const alicloudCrVpcEndpointLinkedVpcsId1 = ids.then(ids => ids.vpcEndpointLinkedVpcs?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.cr.get_vpc_endpoint_linked_vpcs(ids=["example_id"],
        instance_id="your_cr_instance_id",
        module_name="Registry")
    pulumi.export("alicloudCrVpcEndpointLinkedVpcsId1", ids.vpc_endpoint_linked_vpcs[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ids, err := cr.GetVpcEndpointLinkedVpcs(ctx, &cr.GetVpcEndpointLinkedVpcsArgs{
    			Ids: []string{
    				"example_id",
    			},
    			InstanceId: "your_cr_instance_id",
    			ModuleName: "Registry",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("alicloudCrVpcEndpointLinkedVpcsId1", ids.VpcEndpointLinkedVpcs[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.CR.GetVpcEndpointLinkedVpcs.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
            InstanceId = "your_cr_instance_id",
            ModuleName = "Registry",
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudCrVpcEndpointLinkedVpcsId1"] = ids.Apply(getVpcEndpointLinkedVpcsResult => getVpcEndpointLinkedVpcsResult.VpcEndpointLinkedVpcs[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cr.CrFunctions;
    import com.pulumi.alicloud.cr.inputs.GetVpcEndpointLinkedVpcsArgs;
    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 = CrFunctions.getVpcEndpointLinkedVpcs(GetVpcEndpointLinkedVpcsArgs.builder()
                .ids("example_id")
                .instanceId("your_cr_instance_id")
                .moduleName("Registry")
                .build());
    
            ctx.export("alicloudCrVpcEndpointLinkedVpcsId1", ids.applyValue(getVpcEndpointLinkedVpcsResult -> getVpcEndpointLinkedVpcsResult.vpcEndpointLinkedVpcs()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:cr:getVpcEndpointLinkedVpcs
          Arguments:
            ids:
              - example_id
            instanceId: your_cr_instance_id
            moduleName: Registry
    outputs:
      alicloudCrVpcEndpointLinkedVpcsId1: ${ids.vpcEndpointLinkedVpcs[0].id}
    

    Using getVpcEndpointLinkedVpcs

    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 getVpcEndpointLinkedVpcs(args: GetVpcEndpointLinkedVpcsArgs, opts?: InvokeOptions): Promise<GetVpcEndpointLinkedVpcsResult>
    function getVpcEndpointLinkedVpcsOutput(args: GetVpcEndpointLinkedVpcsOutputArgs, opts?: InvokeOptions): Output<GetVpcEndpointLinkedVpcsResult>
    def get_vpc_endpoint_linked_vpcs(ids: Optional[Sequence[str]] = None,
                                     instance_id: Optional[str] = None,
                                     module_name: Optional[str] = None,
                                     output_file: Optional[str] = None,
                                     status: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetVpcEndpointLinkedVpcsResult
    def get_vpc_endpoint_linked_vpcs_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                     instance_id: Optional[pulumi.Input[str]] = None,
                                     module_name: Optional[pulumi.Input[str]] = None,
                                     output_file: Optional[pulumi.Input[str]] = None,
                                     status: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetVpcEndpointLinkedVpcsResult]
    func GetVpcEndpointLinkedVpcs(ctx *Context, args *GetVpcEndpointLinkedVpcsArgs, opts ...InvokeOption) (*GetVpcEndpointLinkedVpcsResult, error)
    func GetVpcEndpointLinkedVpcsOutput(ctx *Context, args *GetVpcEndpointLinkedVpcsOutputArgs, opts ...InvokeOption) GetVpcEndpointLinkedVpcsResultOutput

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

    public static class GetVpcEndpointLinkedVpcs 
    {
        public static Task<GetVpcEndpointLinkedVpcsResult> InvokeAsync(GetVpcEndpointLinkedVpcsArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcEndpointLinkedVpcsResult> Invoke(GetVpcEndpointLinkedVpcsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcEndpointLinkedVpcsResult> getVpcEndpointLinkedVpcs(GetVpcEndpointLinkedVpcsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cr/getVpcEndpointLinkedVpcs:getVpcEndpointLinkedVpcs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The ID of the instance.
    ModuleName string
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    Ids List<string>
    A list of CR Vpc Endpoint Linked Vpc IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
    InstanceId string
    The ID of the instance.
    ModuleName string
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    Ids []string
    A list of CR Vpc Endpoint Linked Vpc IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
    instanceId String
    The ID of the instance.
    moduleName String
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    ids List<String>
    A list of CR Vpc Endpoint Linked Vpc IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
    instanceId string
    The ID of the instance.
    moduleName string
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    ids string[]
    A list of CR Vpc Endpoint Linked Vpc IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
    instance_id str
    The ID of the instance.
    module_name str
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    ids Sequence[str]
    A list of CR Vpc Endpoint Linked Vpc IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
    instanceId String
    The ID of the instance.
    moduleName String
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    ids List<String>
    A list of CR Vpc Endpoint Linked Vpc IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.

    getVpcEndpointLinkedVpcs Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    InstanceId string
    The ID of the instance.
    ModuleName string
    The name of the module that you want to access.
    VpcEndpointLinkedVpcs List<Pulumi.AliCloud.CR.Outputs.GetVpcEndpointLinkedVpcsVpcEndpointLinkedVpc>
    A list of CR Vpc Endpoint Linked Vpcs. Each element contains the following attributes:
    OutputFile string
    Status string
    The status of the Vpc Endpoint Linked Vpc.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    InstanceId string
    The ID of the instance.
    ModuleName string
    The name of the module that you want to access.
    VpcEndpointLinkedVpcs []GetVpcEndpointLinkedVpcsVpcEndpointLinkedVpc
    A list of CR Vpc Endpoint Linked Vpcs. Each element contains the following attributes:
    OutputFile string
    Status string
    The status of the Vpc Endpoint Linked Vpc.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    instanceId String
    The ID of the instance.
    moduleName String
    The name of the module that you want to access.
    vpcEndpointLinkedVpcs List<GetVpcEndpointLinkedVpcsVpcEndpointLinkedVpc>
    A list of CR Vpc Endpoint Linked Vpcs. Each element contains the following attributes:
    outputFile String
    status String
    The status of the Vpc Endpoint Linked Vpc.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    instanceId string
    The ID of the instance.
    moduleName string
    The name of the module that you want to access.
    vpcEndpointLinkedVpcs GetVpcEndpointLinkedVpcsVpcEndpointLinkedVpc[]
    A list of CR Vpc Endpoint Linked Vpcs. Each element contains the following attributes:
    outputFile string
    status string
    The status of the Vpc Endpoint Linked Vpc.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    instance_id str
    The ID of the instance.
    module_name str
    The name of the module that you want to access.
    vpc_endpoint_linked_vpcs Sequence[GetVpcEndpointLinkedVpcsVpcEndpointLinkedVpc]
    A list of CR Vpc Endpoint Linked Vpcs. Each element contains the following attributes:
    output_file str
    status str
    The status of the Vpc Endpoint Linked Vpc.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    instanceId String
    The ID of the instance.
    moduleName String
    The name of the module that you want to access.
    vpcEndpointLinkedVpcs List<Property Map>
    A list of CR Vpc Endpoint Linked Vpcs. Each element contains the following attributes:
    outputFile String
    status String
    The status of the Vpc Endpoint Linked Vpc.

    Supporting Types

    GetVpcEndpointLinkedVpcsVpcEndpointLinkedVpc

    DefaultAccess bool
    Indicates whether the default policy is used to access the instance.
    Id string
    The ID of the Vpc Endpoint Linked Vpc. It formats as <instance_id>:<vpc_id>:<vswitch_id>:<module_name>.
    InstanceId string
    The ID of the instance.
    Ip string
    IP address.
    ModuleName string
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    Status string
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
    VpcId string
    The ID of the VPC.
    VswitchId string
    The ID of the vSwitch.
    DefaultAccess bool
    Indicates whether the default policy is used to access the instance.
    Id string
    The ID of the Vpc Endpoint Linked Vpc. It formats as <instance_id>:<vpc_id>:<vswitch_id>:<module_name>.
    InstanceId string
    The ID of the instance.
    Ip string
    IP address.
    ModuleName string
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    Status string
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
    VpcId string
    The ID of the VPC.
    VswitchId string
    The ID of the vSwitch.
    defaultAccess Boolean
    Indicates whether the default policy is used to access the instance.
    id String
    The ID of the Vpc Endpoint Linked Vpc. It formats as <instance_id>:<vpc_id>:<vswitch_id>:<module_name>.
    instanceId String
    The ID of the instance.
    ip String
    IP address.
    moduleName String
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    status String
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
    vpcId String
    The ID of the VPC.
    vswitchId String
    The ID of the vSwitch.
    defaultAccess boolean
    Indicates whether the default policy is used to access the instance.
    id string
    The ID of the Vpc Endpoint Linked Vpc. It formats as <instance_id>:<vpc_id>:<vswitch_id>:<module_name>.
    instanceId string
    The ID of the instance.
    ip string
    IP address.
    moduleName string
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    status string
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
    vpcId string
    The ID of the VPC.
    vswitchId string
    The ID of the vSwitch.
    default_access bool
    Indicates whether the default policy is used to access the instance.
    id str
    The ID of the Vpc Endpoint Linked Vpc. It formats as <instance_id>:<vpc_id>:<vswitch_id>:<module_name>.
    instance_id str
    The ID of the instance.
    ip str
    IP address.
    module_name str
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    status str
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
    vpc_id str
    The ID of the VPC.
    vswitch_id str
    The ID of the vSwitch.
    defaultAccess Boolean
    Indicates whether the default policy is used to access the instance.
    id String
    The ID of the Vpc Endpoint Linked Vpc. It formats as <instance_id>:<vpc_id>:<vswitch_id>:<module_name>.
    instanceId String
    The ID of the instance.
    ip String
    IP address.
    moduleName String
    The name of the module that you want to access. Valid Values:

    • Registry: the image repository.
    • Chart: a Helm chart.
    status String
    The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
    vpcId String
    The ID of the VPC.
    vswitchId String
    The ID of the vSwitch.

    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.57.1 published on Wednesday, Jun 26, 2024 by Pulumi