GCP VPC Peer V2

Operations related to GCP VPC Peering with Cluster Data Centers.

List all GCP VPC Peering requests

SecurityBasic Authentication
Responses
200

Successfully retrieved GCP VPC Peering requests.

get/cluster-management/v2/data-sources/providers/gcp/vpc-peers/v2
Request samples
Response samples
application/json
[
  • {
    }
]

Create GCP VPC Peering Request

SecurityBasic Authentication
Request
Request Body schema: application/json
required
peerProjectId
required
string

The project ID of the owner of the accepter VPC.

peerSubnets
required
Array of strings

The subnets for the peering VPC.

peerVpcNetworkName
required
string

The name of the VPC Network you wish to peer to.

cdcId
required
string <uuid>

ID of the Cluster Data Centre.

Responses
202

GCP VPC Peering request created.

post/cluster-management/v2/resources/providers/gcp/vpc-peers/v2
Request samples
application/json
{
  • "cdcId": "f3eab841-6952-430d-ba90-1bfc3f15da10",
  • "peerProjectId": "example-project123",
  • "peerSubnets": [
    ],
  • "peerVpcNetworkName": "network-aabb1122"
}
Response samples
application/json
{
  • "cdcId": "f3eab841-6952-430d-ba90-1bfc3f15da10",
  • "peerProjectId": "example-project123",
  • "peerSubnets": [
    ],
  • "peerVpcNetworkName": "network-aabb1122"
}

Get GCP VPC Peering Connection info

Fetches the details for a given GCP VPC Peering Connection.

SecurityBasic Authentication
Request
path Parameters
vpcPeerId
required
string <uuid>

ID of the VPC Peering Connection

Responses
200

GCP VPC Peering Connection info retrieved.

404

VPC Peering Connection not found.

get/cluster-management/v2/resources/providers/gcp/vpc-peers/v2/{vpcPeerId}
Request samples
Response samples
application/json
{
  • "cdcId": "f3eab841-6952-430d-ba90-1bfc3f15da10",
  • "peerProjectId": "example-project123",
  • "peerSubnets": [
    ],
  • "peerVpcNetworkName": "network-aabb1122"
}

Delete GCP VPC Peering Connection

SecurityBasic Authentication
Request
path Parameters
vpcPeerId
required
string <uuid>

ID of the VPC Peering Connection

Responses
204

GCP VPC Peering request deleted

404

VPC Peering Connection not found.

delete/cluster-management/v2/resources/providers/gcp/vpc-peers/v2/{vpcPeerId}
Request samples
Response samples
application/json
{
  • "errors": [
    ]
}