Method: services.tenancyUnits.addProject

Add a new tenant project to the tenancy unit. There can be a maximum of 512 tenant projects in a tenancy unit. If there are previously failed tenancyUnits.addProject calls, you might need to call tenancyUnits.removeProject first to resolve them before you can make another call to tenancyUnits.addProject with the same tag. Operation<response: Empty>.

HTTP request

POST https://serviceconsumermanagement.googleapis.com/v1/{parent=services/*/*/*/tenancyUnits/*}:addProject

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.

Authorization requires the following Google IAM permission on the specified resource parent:

  • serviceconsumermanagement.tenancyu.addResource

Request body

The request body contains data with the following structure:

JSON representation
{
  "tag": string,
  "projectConfig": {
    object (TenantProjectConfig)
  }
}
Fields
tag

string

Tag of the added project. Must be less than 128 characters. Required.

projectConfig

object (TenantProjectConfig)

Configuration of the new tenant project to be added to tenancy unit resources.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

Try it!