1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cr
  5. getVpcEndpointLinkedVpcs
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cr.getVpcEndpointLinkedVpcs

Explore with Pulumi AI

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);
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetVpcEndpointLinkedVpcs(ctx *Context, args *GetVpcEndpointLinkedVpcsArgs, opts ...InvokeOption) (*GetVpcEndpointLinkedVpcsResult, error)
func GetVpcEndpointLinkedVpcsOutput(ctx *Context, args *GetVpcEndpointLinkedVpcsOutputArgs, opts ...InvokeOption) GetVpcEndpointLinkedVpcsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetVpcEndpointLinkedVpcsResult> getVpcEndpointLinkedVpcs(GetVpcEndpointLinkedVpcsArgs args, InvokeOptions options)
public static Output<GetVpcEndpointLinkedVpcsResult> getVpcEndpointLinkedVpcs(GetVpcEndpointLinkedVpcsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cr/getVpcEndpointLinkedVpcs:getVpcEndpointLinkedVpcs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
ModuleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the module that you want to access. Valid Values:

  • Registry: the image repository.
  • Chart: a Helm chart.
Ids Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
ModuleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the module that you want to access. Valid Values:

  • Registry: the image repository.
  • Chart: a Helm chart.
Ids Changes to this property will trigger replacement. []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 Changes to this property will trigger replacement. string
The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the instance.
moduleName
This property is required.
Changes to this property will trigger replacement.
String
The name of the module that you want to access. Valid Values:

  • Registry: the image repository.
  • Chart: a Helm chart.
ids Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
instanceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the instance.
moduleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the module that you want to access. Valid Values:

  • Registry: the image repository.
  • Chart: a Helm chart.
ids Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
instance_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the instance.
module_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the module that you want to access. Valid Values:

  • Registry: the image repository.
  • Chart: a Helm chart.
ids Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the instance.
moduleName
This property is required.
Changes to this property will trigger replacement.
String
The name of the module that you want to access. Valid Values:

  • Registry: the image repository.
  • Chart: a Helm chart.
ids Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 This property is required. bool
Indicates whether the default policy is used to access the instance.
Id This property is required. string
The ID of the Vpc Endpoint Linked Vpc. It formats as <instance_id>:<vpc_id>:<vswitch_id>:<module_name>.
InstanceId This property is required. string
The ID of the instance.
Ip This property is required. string
IP address.
ModuleName This property is required. string
The name of the module that you want to access. Valid Values:

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

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

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

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

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

  • Registry: the image repository.
  • Chart: a Helm chart.
status This property is required. String
The status of the Vpc Endpoint Linked Vpc. Valid Values: CREATING, RUNNING.
vpcId This property is required. String
The ID of the VPC.
vswitchId This property is required. 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.