Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.privatelink.getVpcEndpoints
Explore with Pulumi AI
This data source provides the Privatelink Vpc Endpoints of the current Alibaba Cloud user.
NOTE: Available in 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)
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
})
}
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 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.applyValue(getVpcEndpointsResult -> getVpcEndpointsResult.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}
Using getVpcEndpoints
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 getVpcEndpoints(args: GetVpcEndpointsArgs, opts?: InvokeOptions): Promise<GetVpcEndpointsResult>
function getVpcEndpointsOutput(args: GetVpcEndpointsOutputArgs, opts?: InvokeOptions): Output<GetVpcEndpointsResult>
def get_vpc_endpoints(connection_status: Optional[str] = None,
enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
service_name: Optional[str] = None,
status: Optional[str] = None,
vpc_endpoint_name: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcEndpointsResult
def get_vpc_endpoints_output(connection_status: Optional[pulumi.Input[str]] = None,
enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
vpc_endpoint_name: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcEndpointsResult]
func GetVpcEndpoints(ctx *Context, args *GetVpcEndpointsArgs, opts ...InvokeOption) (*GetVpcEndpointsResult, error)
func GetVpcEndpointsOutput(ctx *Context, args *GetVpcEndpointsOutputArgs, opts ...InvokeOption) GetVpcEndpointsResultOutput
> Note: This function is named GetVpcEndpoints
in the Go SDK.
public static class GetVpcEndpoints
{
public static Task<GetVpcEndpointsResult> InvokeAsync(GetVpcEndpointsArgs args, InvokeOptions? opts = null)
public static Output<GetVpcEndpointsResult> Invoke(GetVpcEndpointsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpcEndpointsResult> getVpcEndpoints(GetVpcEndpointsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:privatelink/getVpcEndpoints:getVpcEndpoints
arguments:
# arguments dictionary
The following arguments are supported:
- Connection
Status string - The status of Connection.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids List<string>
- A list of Vpc Endpoint IDs.
- Name
Regex string - A regex string to filter results by Vpc Endpoint name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Service
Name string - The name of the terminal node service associated with the terminal node.
- Status string
- The status of Vpc Endpoint.
- Vpc
Endpoint stringName - The name of Vpc Endpoint.
- Vpc
Id string - The private network to which the terminal node belongs..
- Connection
Status string - The status of Connection.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of Vpc Endpoint IDs.
- Name
Regex string - A regex string to filter results by Vpc Endpoint name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Service
Name string - The name of the terminal node service associated with the terminal node.
- Status string
- The status of Vpc Endpoint.
- Vpc
Endpoint stringName - The name of Vpc Endpoint.
- Vpc
Id string - The private network to which the terminal node belongs..
- connection
Status String - The status of Connection.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Vpc Endpoint IDs.
- name
Regex String - A regex string to filter results by Vpc Endpoint name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - service
Name String - The name of the terminal node service associated with the terminal node.
- status String
- The status of Vpc Endpoint.
- vpc
Endpoint StringName - The name of Vpc Endpoint.
- vpc
Id String - The private network to which the terminal node belongs..
- connection
Status string - The status of Connection.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of Vpc Endpoint IDs.
- name
Regex string - A regex string to filter results by Vpc Endpoint name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - service
Name string - The name of the terminal node service associated with the terminal node.
- status string
- The status of Vpc Endpoint.
- vpc
Endpoint stringName - The name of Vpc Endpoint.
- vpc
Id string - The private network to which the terminal node belongs..
- connection_
status str - The status of Connection.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids Sequence[str]
- A list of Vpc Endpoint IDs.
- name_
regex str - A regex string to filter results by Vpc Endpoint name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - service_
name str - The name of the terminal node service associated with the terminal node.
- status str
- The status of Vpc Endpoint.
- vpc_
endpoint_ strname - The name of Vpc Endpoint.
- vpc_
id str - The private network to which the terminal node belongs..
- connection
Status String - The status of Connection.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Vpc Endpoint IDs.
- name
Regex String - A regex string to filter results by Vpc Endpoint name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - service
Name String - The name of the terminal node service associated with the terminal node.
- status String
- The status of Vpc Endpoint.
- vpc
Endpoint StringName - The name of Vpc Endpoint.
- vpc
Id String - The private network to which the terminal node belongs..
getVpcEndpoints Result
The following output properties are available:
- Endpoints
List<Pulumi.
Ali Cloud. Private Link. Outputs. Get Vpc Endpoints Endpoint> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Connection
Status string - Enable
Details bool - Name
Regex string - Output
File string - Service
Name string - Status string
- Vpc
Endpoint stringName - Vpc
Id string
- Endpoints
[]Get
Vpc Endpoints Endpoint - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Connection
Status string - Enable
Details bool - Name
Regex string - Output
File string - Service
Name string - Status string
- Vpc
Endpoint stringName - Vpc
Id string
- endpoints
List<Get
Vpc Endpoints Endpoint> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- connection
Status String - enable
Details Boolean - name
Regex String - output
File String - service
Name String - status String
- vpc
Endpoint StringName - vpc
Id String
- endpoints
Get
Vpc Endpoints Endpoint[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- connection
Status string - enable
Details boolean - name
Regex string - output
File string - service
Name string - status string
- vpc
Endpoint stringName - vpc
Id string
- endpoints
Sequence[Get
Vpc Endpoints Endpoint] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- connection_
status str - enable_
details bool - name_
regex str - output_
file str - service_
name str - status str
- vpc_
endpoint_ strname - vpc_
id str
- endpoints List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- connection
Status String - enable
Details Boolean - name
Regex String - output
File String - service
Name String - status String
- vpc
Endpoint StringName - vpc
Id String
Supporting Types
GetVpcEndpointsEndpoint
- Bandwidth int
- The Bandwidth.
- Connection
Status string - The status of Connection.
- Endpoint
Business stringStatus - The status of Endpoint Business.
- Endpoint
Description string - The description of Vpc Endpoint.
- Endpoint
Domain string - The Endpoint Domain.
- Endpoint
Id string - The ID of the Vpc Endpoint.
- Id string
- The ID of the Vpc Endpoint.
- Security
Group List<string>Ids - The security group associated with the terminal node network card.
- Service
Id string - The terminal node service associated with the terminal node.
- Service
Name string - The name of the terminal node service associated with the terminal node.
- Status string
- The status of Vpc Endpoint.
- Vpc
Endpoint stringName - The name of Vpc Endpoint.
- Vpc
Id string - The private network to which the terminal node belongs.
- Bandwidth int
- The Bandwidth.
- Connection
Status string - The status of Connection.
- Endpoint
Business stringStatus - The status of Endpoint Business.
- Endpoint
Description string - The description of Vpc Endpoint.
- Endpoint
Domain string - The Endpoint Domain.
- Endpoint
Id string - The ID of the Vpc Endpoint.
- Id string
- The ID of the Vpc Endpoint.
- Security
Group []stringIds - The security group associated with the terminal node network card.
- Service
Id string - The terminal node service associated with the terminal node.
- Service
Name string - The name of the terminal node service associated with the terminal node.
- Status string
- The status of Vpc Endpoint.
- Vpc
Endpoint stringName - The name of Vpc Endpoint.
- Vpc
Id string - The private network to which the terminal node belongs.
- bandwidth Integer
- The Bandwidth.
- connection
Status String - The status of Connection.
- endpoint
Business StringStatus - The status of Endpoint Business.
- endpoint
Description String - The description of Vpc Endpoint.
- endpoint
Domain String - The Endpoint Domain.
- endpoint
Id String - The ID of the Vpc Endpoint.
- id String
- The ID of the Vpc Endpoint.
- security
Group List<String>Ids - The security group associated with the terminal node network card.
- service
Id String - The terminal node service associated with the terminal node.
- service
Name String - The name of the terminal node service associated with the terminal node.
- status String
- The status of Vpc Endpoint.
- vpc
Endpoint StringName - The name of Vpc Endpoint.
- vpc
Id String - The private network to which the terminal node belongs.
- bandwidth number
- The Bandwidth.
- connection
Status string - The status of Connection.
- endpoint
Business stringStatus - The status of Endpoint Business.
- endpoint
Description string - The description of Vpc Endpoint.
- endpoint
Domain string - The Endpoint Domain.
- endpoint
Id string - The ID of the Vpc Endpoint.
- id string
- The ID of the Vpc Endpoint.
- security
Group string[]Ids - The security group associated with the terminal node network card.
- service
Id string - The terminal node service associated with the terminal node.
- service
Name string - The name of the terminal node service associated with the terminal node.
- status string
- The status of Vpc Endpoint.
- vpc
Endpoint stringName - The name of Vpc Endpoint.
- vpc
Id string - The private network to which the terminal node belongs.
- bandwidth int
- The Bandwidth.
- connection_
status str - The status of Connection.
- endpoint_
business_ strstatus - The status of Endpoint Business.
- endpoint_
description str - The description of Vpc Endpoint.
- endpoint_
domain str - The Endpoint Domain.
- endpoint_
id str - The ID of the Vpc Endpoint.
- id str
- The ID of the Vpc Endpoint.
- security_
group_ Sequence[str]ids - The security group associated with the terminal node network card.
- service_
id str - The terminal node service associated with the terminal node.
- service_
name str - The name of the terminal node service associated with the terminal node.
- status str
- The status of Vpc Endpoint.
- vpc_
endpoint_ strname - The name of Vpc Endpoint.
- vpc_
id str - The private network to which the terminal node belongs.
- bandwidth Number
- The Bandwidth.
- connection
Status String - The status of Connection.
- endpoint
Business StringStatus - The status of Endpoint Business.
- endpoint
Description String - The description of Vpc Endpoint.
- endpoint
Domain String - The Endpoint Domain.
- endpoint
Id String - The ID of the Vpc Endpoint.
- id String
- The ID of the Vpc Endpoint.
- security
Group List<String>Ids - The security group associated with the terminal node network card.
- service
Id String - The terminal node service associated with the terminal node.
- service
Name String - The name of the terminal node service associated with the terminal node.
- status String
- The status of Vpc Endpoint.
- vpc
Endpoint StringName - The name of Vpc Endpoint.
- vpc
Id String - The private network to which the terminal node belongs.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.