Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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);
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:
- Instance
Id string - The ID of the instance.
- Module
Name 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.
- Output
File 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 string - The ID of the instance.
- Module
Name 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.
- Output
File 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 String - The ID of the instance.
- module
Name 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.
- output
File 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 string - The ID of the instance.
- module
Name 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.
- output
File 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
.
- instance
Id String - The ID of the instance.
- module
Name 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.
- output
File 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>
- Instance
Id string - The ID of the instance.
- Module
Name string - The name of the module that you want to access.
- Vpc
Endpoint List<Pulumi.Linked Vpcs Ali Cloud. CR. Outputs. Get Vpc Endpoint Linked Vpcs Vpc Endpoint Linked Vpc> - A list of CR Vpc Endpoint Linked Vpcs. Each element contains the following attributes:
- Output
File string - Status string
- The status of the Vpc Endpoint Linked Vpc.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Instance
Id string - The ID of the instance.
- Module
Name string - The name of the module that you want to access.
- Vpc
Endpoint []GetLinked Vpcs Vpc Endpoint Linked Vpcs Vpc Endpoint Linked Vpc - A list of CR Vpc Endpoint Linked Vpcs. Each element contains the following attributes:
- Output
File 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>
- instance
Id String - The ID of the instance.
- module
Name String - The name of the module that you want to access.
- vpc
Endpoint List<GetLinked Vpcs Vpc Endpoint Linked Vpcs Vpc Endpoint Linked Vpc> - A list of CR Vpc Endpoint Linked Vpcs. Each element contains the following attributes:
- output
File String - status String
- The status of the Vpc Endpoint Linked Vpc.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- instance
Id string - The ID of the instance.
- module
Name string - The name of the module that you want to access.
- vpc
Endpoint GetLinked Vpcs Vpc Endpoint Linked Vpcs Vpc Endpoint Linked Vpc[] - A list of CR Vpc Endpoint Linked Vpcs. Each element contains the following attributes:
- output
File 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_ Sequence[Getlinked_ vpcs Vpc Endpoint Linked Vpcs Vpc Endpoint Linked Vpc] - 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>
- instance
Id String - The ID of the instance.
- module
Name String - The name of the module that you want to access.
- vpc
Endpoint List<Property Map>Linked Vpcs - A list of CR Vpc Endpoint Linked Vpcs. Each element contains the following attributes:
- output
File String - status String
- The status of the Vpc Endpoint Linked Vpc.
Supporting Types
GetVpcEndpointLinkedVpcsVpcEndpointLinkedVpc
- Default
Access 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>
. - Instance
Id string - The ID of the instance.
- Ip string
- IP address.
- Module
Name 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
. - Vpc
Id string - The ID of the VPC.
- Vswitch
Id string - The ID of the vSwitch.
- Default
Access 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>
. - Instance
Id string - The ID of the instance.
- Ip string
- IP address.
- Module
Name 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
. - Vpc
Id string - The ID of the VPC.
- Vswitch
Id string - The ID of the vSwitch.
- default
Access 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>
. - instance
Id String - The ID of the instance.
- ip String
- IP address.
- module
Name 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
. - vpc
Id String - The ID of the VPC.
- vswitch
Id String - The ID of the vSwitch.
- default
Access 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>
. - instance
Id string - The ID of the instance.
- ip string
- IP address.
- module
Name 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
. - vpc
Id string - The ID of the VPC.
- vswitch
Id 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.
- default
Access 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>
. - instance
Id String - The ID of the instance.
- ip String
- IP address.
- module
Name 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
. - vpc
Id String - The ID of the VPC.
- vswitch
Id 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.