v1

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

Create a host project registration. A Google cloud project can be registered as a host project if it is not attached as a runtime project to another host project. A project can be registered as a host project only once. Subsequent register calls for the same project will fail.

post/v1/{+parent}/hostProjectRegistrations

Path parameters

parentstring required

Required. The parent resource for the host project. Format: projects/{project}/locations/{location}

Query parameters

hostProjectRegistrationIdstring

Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.

Request body

namestring

Identifier. The name of the host project registration. Format: "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".

gcpProjectstring

Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.

createTimestring google-datetime

Output only. The time at which the host project registration was created.

Response

Successful response