All Products
Search
Document Center

Cloud Backup:DescribeHanaDatabases

Last Updated:Dec 24, 2024

Queries the information about SAP HANA databases.

Operation description

After you register an SAP HANA instance and install a Cloud Backup client on the instance, you can call this operation to query the information about SAP HANA databases. You can call the StartHanaDatabaseAsync operation to start a database and call the StopHanaDatabaseAsync operation to stop a database.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
hbr:DescribeHanaDatabasesget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VaultIdstringNo

The ID of the backup vault.

v-00063fq******8xjr
ClusterIdstringYes

The ID of the SAP HANA instance.

cl-000hpc******uv14x
PageNumberintegerNo

The page number. Pages start from page 1. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Valid values: 1 to 99. Default value: 10.

10
ResourceGroupIdstringNo

The ID of the resource group.

rg-acfmw2azsegupmi

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

DAAB6A29-34EB-5F56-962F-D5BDBFE8A5C2
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codestring

The response code. The status code 200 indicates that the request was successful.

200
Messagestring

The returned message. If the request was successful, "successful" is returned. If the request failed, an error message is returned.

successful
PageNumberinteger

The page number. Pages start from page 1. Default value: 1.

1
PageSizeinteger

The number of entries per page. Valid values: 1 to 99. Default value: 10.

10
TotalCountlong

The total number of entries returned.

10
HanaDatabasesarray<object>

The information about SAP HANA databases.

HanaDatabaseobject

The information about SAP HANA databases.

Hoststring

The hostname.

izbp1jbf3zy******antqmz
SqlPortinteger

The port number.

30013
DatabaseNamestring

The database name.

SYSTEMDB
ServiceNamestring

The service name.

indexserver
ActiveStatusstring

Indicates whether the database is started. Valid values:

  • YES: The database is started.
  • NO: The database is not started.
YES
Detailstring

The detailed information.

master

Examples

Sample success responses

JSONformat

{
  "RequestId": "DAAB6A29-34EB-5F56-962F-D5BDBFE8A5C2",
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 10,
  "HanaDatabases": {
    "HanaDatabase": [
      {
        "Host": "izbp1jbf3zy******antqmz",
        "SqlPort": 30013,
        "DatabaseName": "SYSTEMDB",
        "ServiceName": "indexserver",
        "ActiveStatus": "YES",
        "Detail": "master"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history