Method: projects.locations.lookupServiceProjectAttachment

Lists a service project attachment for a given service project. You can call this API from any project to find if it is attached to a host project.

HTTP request

GET https://apphub.googleapis.com/v1/{name=projects/*/locations/*}:lookupServiceProjectAttachment

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Service project ID and location to lookup service project attachment for. Only global location is supported. Expected format: projects/{project}/locations/{location}.

Request body

The request body must be empty.

Response body

Response for locations.lookupServiceProjectAttachment.

If successful, the response body contains data with the following structure:

JSON representation
{
  "serviceProjectAttachment": {
    object (ServiceProjectAttachment)
  }
}
Fields
serviceProjectAttachment

object (ServiceProjectAttachment)

Service project attachment for a project if exists, empty otherwise.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • apphub.serviceProjectAttachments.lookup

For more information, see the IAM documentation.