Update VPC
Update selected fields on a CoreWeave VPC using a field mask.
- The API server is
https://api.coreweave.com. - Replace
{API_ACCESS_TOKEN}with your CoreWeave API access token. - For required permissions, see IAM Access Policies.
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:
vpcPrefixeshostPrefixesingress.disablePublicServicesegress.disablePublicAccessdhcp.dns.serversdhcp.dns.searchDomains
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.
Authorizations
CoreWeave API access token sent as a bearer token.
Path Parameters
The unique identifier for the VPC.
Body
The unique identifier for the VPC.
A field mask specifying which fields to update. The valid field paths are:
vpcPrefixeshostPrefixesingress.disablePublicServicesegress.disablePublicAccessdhcp.dns.serversdhcp.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.
An array of additional prefixes associated with the VPC. Must be given in CIDR notation.
The ingress configuration of the VPC.
The egress configuration of the VPC.
The DHCP configuration of the VPC.
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
The VPC.