-
Notifications
You must be signed in to change notification settings - Fork 5
/
getEndpoints.go
40 lines (35 loc) · 1.45 KB
/
getEndpoints.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package polardb
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// The `polardb.getEndpoints` data source provides a collection of PolarDB endpoints available in Alibaba Cloud account.
// Filters support regular expression for the cluster name, searches by clusterId, and other filters which are listed below.
//
// > **NOTE:** Available in v1.68.0+.
func GetEndpoints(ctx *pulumi.Context, args *GetEndpointsArgs, opts ...pulumi.InvokeOption) (*GetEndpointsResult, error) {
var rv GetEndpointsResult
err := ctx.Invoke("alicloud:polardb/getEndpoints:getEndpoints", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getEndpoints.
type GetEndpointsArgs struct {
// PolarDB cluster ID.
DbClusterId string `pulumi:"dbClusterId"`
// endpoint of the cluster.
DbEndpointId *string `pulumi:"dbEndpointId"`
}
// A collection of values returned by getEndpoints.
type GetEndpointsResult struct {
DbClusterId string `pulumi:"dbClusterId"`
// The endpoint ID.
DbEndpointId *string `pulumi:"dbEndpointId"`
// A list of PolarDB cluster endpoints. Each element contains the following attributes:
Endpoints []GetEndpointsEndpoint `pulumi:"endpoints"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
}