Documentation
¶
Index ¶
- func Action(client *golangsdk.ServiceClient, clusterID string, opts ActionOpts) error
- func Disable(client *golangsdk.ServiceClient, clusterID string) error
- func Enable(client *golangsdk.ServiceClient, clusterID string, opts EnableOpts) error
- func UpdateWhitelist(client *golangsdk.ServiceClient, clusterID string, opts UpdateWhitelistOpts) error
- type ActionOpts
- type ConnectionResp
- type EnableOpts
- type UpdateWhitelistOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
func Action(client *golangsdk.ServiceClient, clusterID string, opts ActionOpts) error
Accept or Reject VPC Endpoint Connection
func Disable ¶
func Disable(client *golangsdk.ServiceClient, clusterID string) error
EnableVpcEndpoint function is used to Disable VCP endpoint of the cluster.
func Enable ¶
func Enable(client *golangsdk.ServiceClient, clusterID string, opts EnableOpts) error
EnableVpcEndpoint function is used to Enable VCP endpoint of the cluster.
func UpdateWhitelist ¶
func UpdateWhitelist(client *golangsdk.ServiceClient, clusterID string, opts UpdateWhitelistOpts) error
Modifying the VPC Endpoint Service Whitelist
Types ¶
type ActionOpts ¶
type ActionOpts struct {
// Specifies whether to accept or reject a VPC endpoint for a VPC endpoint service.
// receive: means to accept the VPC endpoint.
// reject: means to reject the VPC endpoint.
Action string `json:"action" required:"true"`
// Lists VPC endpoint IDs.
// Each request accepts or rejects only one VPC endpoint
Endpoints []string `json:"endpointIdList" required:"true"`
}
type ConnectionResp ¶
type ConnectionResp struct {
ID string `json:"id"`
Status string `json:"status"`
MaxSession string `json:"maxSession"`
SpecificationName string `json:"specificationName"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"update_at"`
DomainId string `json:"domain_id"`
}
func ListConnections ¶
func ListConnections(client *golangsdk.ServiceClient, id string) ([]ConnectionResp, error)
List VPC Endpoint Connections
type EnableOpts ¶
type EnableOpts struct {
// Indicates whether to enable the internal DNS name .
EndpointWithDnsName *bool `json:"endpointWithDnsName"`
}
type UpdateWhitelistOpts ¶
type UpdateWhitelistOpts struct {
// List of Tenant IDs to whitelist
Permissions []string `json:"vpcPermissions" required:"true"`
}
Click to show internal directories.
Click to hide internal directories.