Method: projects.locations.hostProjectRegistrations.create

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.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



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

Query parameters



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 hostProjectRegistration.gcp_project field.

Request body

The request body contains an instance of HostProjectRegistration.

Response body

If successful, the response body contains a newly created instance of HostProjectRegistration.

Authorization scopes

Requires the following OAuth scope:


IAM Permissions

Requires the following IAM permission on the parent resource:

  • apihub.runTimeProjectAttachments.create

For more information, see the IAM documentation.