get Vpc Endpoints
This data source provides the Privatelink Vpc Endpoints of the current Alibaba Cloud user.
NOTE: Available since v1.109.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.privatelink.getVpcEndpoints({
ids: ["example_value"],
nameRegex: "the_resource_name",
});
export const firstPrivatelinkVpcEndpointId = example.then(example => example.endpoints?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.privatelink.get_vpc_endpoints(ids=["example_value"],
name_regex="the_resource_name")
pulumi.export("firstPrivatelinkVpcEndpointId", example.endpoints[0].id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = AliCloud.PrivateLink.GetVpcEndpoints.Invoke(new()
{
Ids = new[]
{
"example_value",
},
NameRegex = "the_resource_name",
});
return new Dictionary<string, object?>
{
["firstPrivatelinkVpcEndpointId"] = example.Apply(getVpcEndpointsResult => getVpcEndpointsResult.Endpoints[0]?.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/privatelink"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := privatelink.GetVpcEndpoints(ctx, &privatelink.GetVpcEndpointsArgs{
Ids: []string{
"example_value",
},
NameRegex: pulumi.StringRef("the_resource_name"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstPrivatelinkVpcEndpointId", example.Endpoints[0].Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.privatelink.PrivatelinkFunctions;
import com.pulumi.alicloud.privatelink.inputs.GetVpcEndpointsArgs;
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 example = PrivatelinkFunctions.getVpcEndpoints(GetVpcEndpointsArgs.builder()
.ids("example_value")
.nameRegex("the_resource_name")
.build());
ctx.export("firstPrivatelinkVpcEndpointId", example.endpoints()[0].id());
}
}
variables:
example:
fn::invoke:
function: alicloud:privatelink:getVpcEndpoints
arguments:
ids:
- example_value
nameRegex: the_resource_name
outputs:
firstPrivatelinkVpcEndpointId: ${example.endpoints[0].id}
Return
A collection of values returned by getVpcEndpoints.
Parameters
A collection of arguments for invoking getVpcEndpoints.
Return
A collection of values returned by getVpcEndpoints.
Parameters
The status of Connection.
Default to false
. Set it to true
can output more details about resource attributes.
A list of Vpc Endpoint IDs.
A regex string to filter results by Vpc Endpoint name.
File name where to save data source results (after running pulumi preview
).
The name of the terminal node service associated with the terminal node.
The status of Vpc Endpoint.
Query the instance bound to the tag. The format of the incoming value is json
string, including TagKey
and TagValue
. TagKey
cannot be null, and TagValue
can be empty. Format example {"key1":"value1"}
.
The name of Vpc Endpoint.
The private network to which the terminal node belongs..
See also
Return
A collection of values returned by getVpcEndpoints.
Parameters
Builder for com.pulumi.alicloud.privatelink.kotlin.inputs.GetVpcEndpointsPlainArgs.