v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1312112148.4 KB
services

Creates a tenancy unit with no tenant resources. If tenancy unit already exists, it will be returned, however, in this case, returned TenancyUnit does not have tenant_resources field set and ListTenancyUnits has to be used to get a complete TenancyUnit with all fields populated.

post/v1/{+parent}/tenancyUnits

Path parameters

parentstring required

Required. services/{service}/{collection id}/{resource id} {collection id} is the cloud resource collection type representing the service consumer, for example 'projects', or 'organizations'. {resource id} is the consumer numeric id, such as project number: '123456'. {service} the name of a managed service, such as 'service.googleapis.com'. Enables service binding using the new tenancy unit.

Request body

tenancyUnitIdstring

Optional. Optional service producer-provided identifier of the tenancy unit. Must be no longer than 40 characters and preferably URI friendly. If it isn't provided, a UID for the tenancy unit is automatically generated. The identifier must be unique across a managed service. If the tenancy unit already exists for the managed service and service consumer pair, calling CreateTenancyUnit returns the existing tenancy unit if the provided identifier is identical or empty, otherwise the call fails.

Response

Successful response