v1

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

Attach an existing project to the tenancy unit as a new tenant resource. The project could either be the tenant project reserved by calling AddTenantProject under a tenancy unit of a service producer's project of a managed service, or from a separate project. The caller is checked against a set of permissions as if calling AddTenantProject on the same service consumer. To trigger the attachment, the targeted tenant project must be in a folder. Make sure the ServiceConsumerManagement service account is the owner of that project. These two requirements are already met if the project is reserved by calling AddTenantProject. Operation.

post/v1/{+name}:attachProject

Path parameters

namestring required

Required. Name of the tenancy unit that the project will be attached to. Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.

Request body

externalResourcestring

When attaching an external project, this is in the format of projects/{project_number}.

reservedResourcestring

When attaching a reserved project already in tenancy units, this is the tag of a tenant resource under the tenancy unit for the managed service's service producer project. The reserved tenant resource must be in an active state.

tagstring

Required. Tag of the tenant resource after attachment. Must be less than 128 characters. Required.

Response

Successful response