v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13141948.7 KB
projects

Creates a namespace, and returns the new namespace.

post/v1/{+parent}/namespaces

Path parameters

parentstring required

Required. The resource name of the project and location the namespace will be created in.

Query parameters

namespaceIdstring

Required. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Request body

uidstring

Output only. The globally unique identifier of the namespace in the UUID4 format.

namestring

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

labelsobject

Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

Response

Successful response