v1

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

Creates a new Api in a given project and location.

post/v1/{+parent}/apis

Path parameters

parentstring required

Required. Parent resource of the API, of the form: projects/*/locations/global

Query parameters

apiIdstring

Required. Identifier to assign to the API. Must be unique within scope of the parent resource.

Request body

namestring

Output only. Resource name of the API. Format: projects/{project}/locations/global/apis/{api}

updateTimestring google-datetime

Output only. Updated time.

createTimestring google-datetime

Output only. Created time.

displayNamestring

Optional. Display name.

managedServicestring

Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API.

labelsobject

Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

state'STATE_UNSPECIFIED' | 'CREATING' | 'ACTIVE' | 'FAILED' | 'DELETING' | 'UPDATING'

Output only. State of the API.

Response

Successful response