Skip to main content
PATCH
Update VPC
This method uses a field mask, provided in the updateMask field, to specify which fields to modify. Requests with an omitted or empty updateMask are supported only for backward compatibility. For new code, always provide an explicit updateMask. Without one, update behavior varies by field and can clear values that you don’t resend. For general guidance on update masks, see Google AIP-134. The valid updateMask field paths are:
  • vpcPrefixes
  • hostPrefixes
  • ingress.disablePublicServices
  • egress.disablePublicAccess
  • dhcp.dns.servers
  • dhcp.dns.searchDomains
Any other path, including a top-level path like ingress or dhcp, is invalid. The server returns an error and makes no changes. When vpcPrefixes, dhcp.dns.servers, or dhcp.dns.searchDomains is included in updateMask, the supplied list replaces the stored one. An empty list clears that field. To clear search domains, include dhcp.dns.searchDomains in updateMask and supply an empty list. With an omitted or empty mask, an empty search-domain list preserves existing search domains. The hostPrefixes field is append-only. Include all existing entries unchanged and in their original order, followed by any new entries.
Example request

Authorizations

Authorization
string
header
default:Bearer {API_ACCESS_TOKEN}
required

CoreWeave API access token sent as a bearer token.

Path Parameters

id
string
required

The unique identifier for the VPC.

Body

application/json
id
string
required

The unique identifier for the VPC.

updateMask
string<field-mask>

A field mask specifying which fields to update. The valid field paths are:

  • vpcPrefixes
  • hostPrefixes
  • ingress.disablePublicServices
  • egress.disablePublicAccess
  • dhcp.dns.servers
  • dhcp.dns.searchDomains

The server rejects any other path with an INVALID_ARGUMENT error.

Requests with an omitted or empty updateMask are supported only for backward compatibility. For new code, always provide an explicit updateMask. Without one, update behavior varies by field and can clear values that you don't resend.

To clear search domains, include dhcp.dns.searchDomains in updateMask and supply an empty list. With an omitted or empty mask, an empty search-domain list preserves existing search domains.

For general guidance on update masks, see Google AIP-134.

vpcPrefixes
object[]

An array of additional prefixes associated with the VPC. Must be given in CIDR notation.

ingress
object

The ingress configuration of the VPC.

egress
object

The egress configuration of the VPC.

dhcp
object

The DHCP configuration of the VPC.

hostPrefixes
object[]

Complete desired list of host prefixes. Every existing element must be included unchanged and in its original position, followed by any new elements. New elements follow the same validation as CreateVPC. Existing elements cannot be removed or modified, including their CIDR lists. Existing elements cannot be reordered; new elements must be appended.

Response

OK

vpc
object

The VPC.