---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/discoveredprofiles"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/discoveredprofiles"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/discoveredprofiles

`GET /v1/projects/{projectsId}/locations/{locationsId}/discoveredprofiles`

## Request

- Base URL: `https://workloadmanager.googleapis.com`
- URL: `https://workloadmanager.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/discoveredprofiles`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

List discovered workload profiles

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `filter` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- ListDiscoveredProfilesResponse: List discovered profile Response returns discovered profiles from agents
  - `nextPageToken` string: Output only. A token identifying a page of results the server should return
  - `unreachable` string[]: Locations that could not be reached.
  - `workloadProfiles` WorkloadProfile[]: Output only. The list of workload profiles
    - `labels` object: Optional. such as name, description, version. More example can be found in deployment
    - `name` string: Identifier. name of resource names have the form 'projects/{project_id}/locations/{location}/workloadProfiles/{workload_id}'
    - `refreshedTime` string, google-datetime: Required. time when the workload data was refreshed
    - `sapWorkload` SapWorkload: The body of sap workload
      - `application` SapComponent: The component of sap workload
        - `databaseProperties` DatabaseProperties: Database Properties.
          - `backupProperties` BackupProperties: Backup properties.
            - `latestBackupStatus` 'BACKUP_STATE_UNSPECIFIED' | 'BACKUP_STATE_SUCCESS' | 'BACKUP_STATE_FAILURE': Output only. The state of the latest backup.
            - `latestBackupTime` string, google-datetime: The time when the latest backup was performed.
          - `databaseType` 'DATABASE_TYPE_UNSPECIFIED' | 'HANA' | 'MAX_DB' | 'DB2' | 'ORACLE' | 'SQLSERVER' | 'ASE': Output only. Type of the database. `HANA`, `DB2`, etc.
        - `haHosts` string[]: List of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA.
        - `resources` CloudResource[]: Output only. resources in the component
          - `instanceProperties` InstanceProperties: Instance Properties.
            - `instanceNumber` string: Optional. Instance number.
            - `machineType` string: Optional. Instance machine type.
            - `roles` string[]: Optional. Instance roles.
            - `sapInstanceProperties` SapInstanceProperties: SAP instance properties.
              - …
            - `status` string: Optional. Instance status.
            - `upcomingMaintenanceEvent` UpcomingMaintenanceEvent: Maintenance Event
              - …
          - `kind` 'RESOURCE_KIND_UNSPECIFIED' | 'RESOURCE_KIND_INSTANCE' | 'RESOURCE_KIND_DISK' | 'RESOURCE_KIND_ADDRESS' | 'RESOURCE_KIND_FILESTORE' | 'RESOURCE_KIND_HEALTH_CHECK' | 'RESOURCE_KIND_FORWARDING_RULE' | 'RESOURCE_KIND_BACKEND_SERVICE' | 'RESOURCE_KIND_SUBNETWORK' | 'RESOURCE_KIND_NETWORK' | 'RESOURCE_KIND_PUBLIC_ADDRESS' | 'RESOURCE_KIND_INSTANCE_GROUP': Output only.
          - `name` string: Output only. resource name Example: compute.googleapis.com/projects/wlm-obs-dev/zones/us-central1-a/instances/sap-pri
        - `sid` string: Output only. sid is the sap component identificator
        - `topologyType` 'TOPOLOGY_TYPE_UNSPECIFIED' | 'TOPOLOGY_SCALE_UP' | 'TOPOLOGY_SCALE_OUT': The detected topology of the component.
      - `architecture` 'ARCHITECTURE_UNSPECIFIED' | 'INVALID' | 'CENTRALIZED' | 'DISTRIBUTED' | 'DISTRIBUTED_HA' | 'STANDALONE_DATABASE' | 'STANDALONE_DATABASE_HA': Output only. The architecture.
      - `database` SapComponent: The component of sap workload
        - `databaseProperties` DatabaseProperties: Database Properties.
          - `backupProperties` BackupProperties: Backup properties.
            - `latestBackupStatus` 'BACKUP_STATE_UNSPECIFIED' | 'BACKUP_STATE_SUCCESS' | 'BACKUP_STATE_FAILURE': Output only. The state of the latest backup.
            - `latestBackupTime` string, google-datetime: The time when the latest backup was performed.
          - `databaseType` 'DATABASE_TYPE_UNSPECIFIED' | 'HANA' | 'MAX_DB' | 'DB2' | 'ORACLE' | 'SQLSERVER' | 'ASE': Output only. Type of the database. `HANA`, `DB2`, etc.
        - `haHosts` string[]: List of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA.
        - `resources` CloudResource[]: Output only. resources in the component
          - `instanceProperties` InstanceProperties: Instance Properties.
            - `instanceNumber` string: Optional. Instance number.
            - `machineType` string: Optional. Instance machine type.
            - `roles` string[]: Optional. Instance roles.
            - `sapInstanceProperties` SapInstanceProperties: SAP instance properties.
              - …
            - `status` string: Optional. Instance status.
            - `upcomingMaintenanceEvent` UpcomingMaintenanceEvent: Maintenance Event
              - …
          - `kind` 'RESOURCE_KIND_UNSPECIFIED' | 'RESOURCE_KIND_INSTANCE' | 'RESOURCE_KIND_DISK' | 'RESOURCE_KIND_ADDRESS' | 'RESOURCE_KIND_FILESTORE' | 'RESOURCE_KIND_HEALTH_CHECK' | 'RESOURCE_KIND_FORWARDING_RULE' | 'RESOURCE_KIND_BACKEND_SERVICE' | 'RESOURCE_KIND_SUBNETWORK' | 'RESOURCE_KIND_NETWORK' | 'RESOURCE_KIND_PUBLIC_ADDRESS' | 'RESOURCE_KIND_INSTANCE_GROUP': Output only.
          - `name` string: Output only. resource name Example: compute.googleapis.com/projects/wlm-obs-dev/zones/us-central1-a/instances/sap-pri
        - `sid` string: Output only. sid is the sap component identificator
        - `topologyType` 'TOPOLOGY_TYPE_UNSPECIFIED' | 'TOPOLOGY_SCALE_UP' | 'TOPOLOGY_SCALE_OUT': The detected topology of the component.
      - `metadata` object: Output only. The metadata for SAP workload.
      - `products` Product[]: Output only. The products on this workload.
        - `name` string: Optional. Name of the product.
        - `version` string: Optional. Version of the product.
    - `workloadType` 'WORKLOAD_TYPE_UNSPECIFIED' | 'S4_HANA': Required. The type of the workload

---

[API](https://skmtc.dev/google/apis/workloadmanager.md) - [All operations](https://skmtc.dev/google/apis/workloadmanager/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/workloadmanager/revisions/5d93d5206535?raw)
