- [Resource: WorkloadProfile](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#WorkloadProfile)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#WorkloadProfile.SCHEMA_REPRESENTATION)
- [WorkloadType](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#WorkloadType)
- [SapWorkload](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#SapWorkload)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#SapWorkload.SCHEMA_REPRESENTATION)
- [SapComponent](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#SapComponent)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#SapComponent.SCHEMA_REPRESENTATION)
- [TopologyType](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#TopologyType)
- [DatabaseProperties](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#DatabaseProperties)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#DatabaseProperties.SCHEMA_REPRESENTATION)
- [BackupProperties](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#BackupProperties)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#BackupProperties.SCHEMA_REPRESENTATION)
- [BackupState](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#BackupState)
- [DatabaseType](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#DatabaseType)
- [Product](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#Product)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#Product.SCHEMA_REPRESENTATION)
- [Architecture](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#Architecture)
- [Methods](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#METHODS_SUMMARY)

## Resource: WorkloadProfile

Workload resource.

| JSON representation |
|---|
| ``` { "name": string, "labels": { string: string, ... }, "refreshedTime": string, "workloadType": enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#WorkloadType`), // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "sapWorkload": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#SapWorkload`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. name of resource names have the form 'projects/{projectId}/locations/{location}/workloadProfiles/{workloadId}' |
| `labels` | `map (key: string, value: string)` Optional. such as name, description, version. More example can be found in deployment An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `refreshedTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Required. time when the workload data was refreshed Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `workloadType` | ``enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#WorkloadType`)`` Required. The type of the workload |
| content of the workload The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `sapWorkload` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#SapWorkload`)`` The sap workload content |
| End of mutually exclusive fields. ||

## WorkloadType

Indicate the workload type

| Enums ||
|---|---|
| `WORKLOAD_TYPE_UNSPECIFIED` | unspecified workload type |
| `S4_HANA` | running sap workload s4/hana |

## SapWorkload

The body of sap workload

| JSON representation |
|---|
| ``` { "metadata": { string: string, ... }, "database": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#SapComponent`) }, "application": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#SapComponent`) }, "products": [ { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#Product`) } ], "architecture": enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#Architecture`) } ``` |

| Fields ||
|---|---|
| `metadata` | `map (key: string, value: string)` Output only. The metadata for SAP workload. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `database` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#SapComponent`)`` Output only. database component |
| `application` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#SapComponent`)`` Output only. application component |
| `products[]` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#Product`)`` Output only. The products on this workload. |
| `architecture` | ``enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#Architecture`)`` Output only. The architecture. |

## SapComponent

The component of sap workload

| JSON representation |
|---|
| ``` { "sid": string, "resources": [ { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource`) } ], "haHosts": [ string ], "topologyType": enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#TopologyType`), // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "databaseProperties": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#DatabaseProperties`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `sid` | `string` Output only. sid is the sap component identificator |
| `resources[]` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/CloudResource`)`` Output only. resources in the component |
| `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. |
| `topologyType` | ``enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#TopologyType`)`` The detected topology of the component. |
| One of the properties of resource. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `databaseProperties` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#DatabaseProperties`)`` Output only. All instance properties. |
| End of mutually exclusive fields. ||

## TopologyType

Different types of system topology.

| Enums ||
|---|---|
| `TOPOLOGY_TYPE_UNSPECIFIED` | Unspecified topology. |
| `TOPOLOGY_SCALE_UP` | A scale-up single node system. |
| `TOPOLOGY_SCALE_OUT` | A scale-out multi-node system. |

## DatabaseProperties

Database Properties.

| JSON representation |
|---|
| ``` { "backupProperties": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#BackupProperties`) }, "databaseType": enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#DatabaseType`) } ``` |

| Fields ||
|---|---|
| `backupProperties` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#BackupProperties`)`` Output only. Backup properties. |
| `databaseType` | ``enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#DatabaseType`)`` Output only. Type of the database. `HANA`, `DB2`, etc. |

## BackupProperties

Backup properties.

| JSON representation |
|---|
| ``` { "latestBackupTime": string, "latestBackupStatus": enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#BackupState`) } ``` |

| Fields ||
|---|---|
| `latestBackupTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The time when the latest backup was performed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `latestBackupStatus` | ``enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles#BackupState`)`` Output only. The state of the latest backup. |

## BackupState

the state of backup

| Enums ||
|---|---|
| `BACKUP_STATE_UNSPECIFIED` | unspecified |
| `BACKUP_STATE_SUCCESS` | SUCCESS state |
| `BACKUP_STATE_FAILURE` | FAILURE state |

## DatabaseType

Type of the database. `HANA`, `DB2`, etc.

| Enums ||
|---|---|
| `DATABASE_TYPE_UNSPECIFIED` | unspecified |
| `HANA` | SAP HANA |
| `MAX_DB` | SAP MAX_DB |
| `DB2` | IBM DB2 |
| `ORACLE` | Oracle Database |
| `SQLSERVER` | Microsoft SQL Server |
| `ASE` | SAP Sybase ASE |

## Product

Contains the details of a product.

| JSON representation |
|---|
| ``` { "name": string, "version": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Optional. Name of the product. |
| `version` | `string` Optional. Version of the product. |

## Architecture

Different types of system architecture.

| Enums ||
|---|---|
| `ARCHITECTURE_UNSPECIFIED` | Unspecified architecture. |
| `INVALID` | Invaliad architecture. |
| `CENTRALIZED` | A centralized system. |
| `DISTRIBUTED` | A distributed system. |
| `DISTRIBUTED_HA` | A distributed with HA system. |
| `STANDALONE_DATABASE` | A standalone database system. |
| `STANDALONE_DATABASE_HA` | A standalone database with HA system. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles/get` | Gets details of a discovered workload profile. |
| ### `https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.discoveredprofiles/list` | List discovered workload profiles |