Method: projects.locations.discoveredWorkloads.lookup

Lists a Discovered Workload in a host project and location, with a given resource URI.

HTTP request

GET https://apphub.googleapis.com/v1/{parent=projects/*/locations/*}/discoveredWorkloads:lookup

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Host project ID and location to lookup Discovered Workload in. Expected format: projects/{project}/locations/{location}.

Query parameters

Parameters
uri

string

Required. Resource URI to find Discovered Workload for. Accepts both project number and project ID and does translation when needed.

Request body

The request body must be empty.

Response body

Response for discoveredWorkloads.lookup.

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

JSON representation
{
  "discoveredWorkload": {
    object (DiscoveredWorkload)
  }
}
Fields
discoveredWorkload

object (DiscoveredWorkload)

Discovered Workload 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 parent resource:

  • apphub.discoveredWorkloads.list

For more information, see the IAM documentation.