All Products
Search
Document Center

Cloud Backup:DescribeHanaInstances

更新時間:Nov 06, 2024

Queries one or more SAP HANA instances that meet the specified conditions.

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:DescribeHanaInstancesget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VaultIdstringNo

The ID of the backup vault.

v-000b0ov******6zs
ClusterIdstringNo

The ID of the SAP HANA instance.

cl-0001zfc******50pr3
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
Tagarray<object>No

The tags of the SAP HANA instance.

objectNo

The tags of SAP HANA instance.

KeystringNo

The tag key.

ace:rm:rgld
ValuestringNo

The tag value.

rg-acfmwutpyat2kwy
ResourceGroupIdstringNo

The ID of the resource group.

rg-aekz24ikcjyqjkq

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

4003DD68-3C3C-5071-B4FC-631A6C1BAC1C
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
TotalCountinteger

The total number of entries returned.

21
Hanasarray<object>

The information about the SAP HANA instances.

Hanaobject

The SAP HANA instance.

Statuslong

The status of the SAP HANA instance. Valid values:

  • INITIALIZING: The instance is being initialized.
  • INITIALIZED: The instance is registered.
  • INVALID_HANA_NODE: The instance is invalid.
  • INITIALIZE_FAILED: The client fails to be installed on the instance.
INITIALIZED
Hoststring

The private or internal IP address of the host where the primary node of the SAP HANA instance resides.

47.100.XX.XX
VaultIdstring

The ID of the backup vault.

v-0000s974******1hl
UseSslboolean

Indicates whether the SAP HANA instance is connected over Secure Sockets Layer (SSL). Valid values:

  • true: The SAP HANA instance is connected over SSL.
  • false: The SAP HANA instance is not connected over SSL.
true
HanaNamestring

The name of the SAP HANA instance.

HANA-DEV
InstanceNumberinteger

The instance number of the SAP HANA system.

00
ValidateCertificateboolean

Indicates whether the SSL certificate of the SAP HANA instance is verified.

false
AlertSettingstring

The alert settings. Valid value: INHERITED, which indicates that the Cloud Backup client sends alert notifications by using the same method configured for the backup vault.

INHERITED
UserNamestring

The username of the SYSTEMDB database.

admin
StatusMessagestring

The status information.

INSTALL_CLIENT_FAILED
ClusterIdstring

The ID of the SAP HANA instance.

cl-0004cf6g6******0yd7y
Tagsarray<object>

The tags of the SAP HANA instance.

Tagobject

The tags of SAP HANA instance.

Keystring

The tag key.

ace:rm:rgld
Valuestring

The tag value.

rg-acfmwutpyat2kwy
ResourceGroupIdstring

The resource group ID.

rg-acfmvnf22m7itha
CrossAccountTypestring

Specifies whether data is backed up within the same Alibaba Cloud account or across Alibaba Cloud accounts. Valid values:

  • SELF_ACCOUNT: Data is backed up within the same Alibaba Cloud account.
  • CROSS_ACCOUNT: Data is backed up across Alibaba Cloud accounts.
CROSS_ACCOUNT
CrossAccountUserIdlong

The ID of the source Alibaba Cloud account that authorizes the current Alibaba Cloud account to back up data across Alibaba Cloud accounts.

158975xxxxx4625
CrossAccountRoleNamestring

The name of the Resource Access Management (RAM) role that is created within the source Alibaba Cloud account and assigned to the current Alibaba Cloud account to authorize the current Alibaba Cloud account to back up data across Alibaba Cloud accounts.

hbrcrossrole

Examples

Sample success responses

JSONformat

{
  "RequestId": "4003DD68-3C3C-5071-B4FC-631A6C1BAC1C",
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 21,
  "Hanas": {
    "Hana": [
      {
        "Status": 0,
        "Host": "47.100.XX.XX",
        "VaultId": "v-0000s974******1hl",
        "UseSsl": true,
        "HanaName": "HANA-DEV",
        "InstanceNumber": 0,
        "ValidateCertificate": false,
        "AlertSetting": "INHERITED",
        "UserName": "admin",
        "StatusMessage": "INSTALL_CLIENT_FAILED",
        "ClusterId": "cl-0004cf6g6******0yd7y",
        "Tags": {
          "Tag": [
            {
              "Key": "ace:rm:rgld",
              "Value": "rg-acfmwutpyat2kwy"
            }
          ]
        },
        "ResourceGroupId": "rg-acfmvnf22m7itha",
        "CrossAccountType": "CROSS_ACCOUNT",
        "CrossAccountUserId": 0,
        "CrossAccountRoleName": "hbrcrossrole"
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-05-22The response structure of the API has changedView Change Details