Data Warehouse Service
| Details
  • Cluster Management APIs
    • ChangeSecurityGroup
    • CreateCluster
    • DeleteCluster
    • DeleteDwsCluster
    • ListClusterDetails
    • ListClusters
    • ListNodeTypes
    • ResetPassword
    • ResizeCluster
    • RestartCluster
    • ShowClusterFlavor
    • ShowClusters
  • Snapshot Management APIs
    • CreateSnapshot
    • DeleteSnapshot
    • ListSnapshotDetails
    • ListSnapshots
    • RestoreCluster
  • Audit logs
    • DisableLtsLogs
    • EnableLtsLogs
    • ListLtsLogs
  • Cluster Management
    • ListConfigurationsAuditRecords
    • SaveClusterDescriptionInfo
    • ShowClusterRedistribution
    • ShowInstance
  • Host Monitoring
    • ListQueries
    • ListTablesStatistic
    • ShowQueryDetail
  • Resource Management
    • DeleteWorkloadPlan
    • ShowWorkloadPlan
    • StartWorkloadPlan
    • StopWorkloadPlan
  • Snapshot Management
    • AddSnapshotCrossRegionPolicy
    • DeleteSnapshotCrossRegionPolicy
    • ListSnapshotCrossRegion
    • ListSnapshotCrossRegionPolicy
    • RestoreTable
  • Upgrade Management
    • ExecuteClusterUpgradeAction
    • ListUpdatableVersion
    • ListUpdateRecord

ResetPassword

POST
https://dws.af-north-1.myhuaweicloud.com/v1.0/{project_id}/clusters/{cluster_id}/reset-password
Advanced
Required parameters only
Default
Encrypt sensitive parameters
*
Region
Parameters
*
cluster_id
*
project_id
Body
*{
*
new_password
:
}
API Description

This API is used to reset the password of cluster administrator.

URL
POST  https://dws.af-north-1.myhuaweicloud.com/v1.0/{project_id}/clusters/{cluster_id}/reset-password
Request Parameters
NameTypeINMandatoryDescription
project_id
stringpath Yes

Project ID

cluster_id
stringpath Yes

ID of the cluster whose password is to be reset.

Body Parameters
NameTypeMandatoryDescription
new_password
string Yes

New administrator password for logging in to a data warehouse cluster A password must conform to the following rules:

  • Contains 8 to 32 characters.

  • Cannot be the same as the username or the username written in reverse order.

  • Contains at least three types of the following:

    • Lowercase letters
    • Uppercase letters
    • Digits
    • Special characters: ~!?,.:;-_'"(){}[]/<>@#%^&*+|\=
  • Cannot be the same as previous passwords.

  • Cannot be a weak password.

Response Parameters
Status code: 200

Normal

Status code: 400

Request error.

Status code: 401

Authorization failed.

Status code: 403

No operation permission.

Status code: 404

No resources found.

Status code: 500

Internal service error.

Status code: 503

The service is unavailable.

Example Request
Example 1
"POST https://{Endpoint}/v1.0/89cd04f168b84af6be287f71730fdb4b/clusters/4ca46bf1-5c61-48ff-b4f3-0ad4e5e3ba90/reset-password"
{ "new_password": "NewPassw0rd!" }
SDK
Click Data Warehouse Service (DWS) SDK to download the SDK in your programming language or view the SDK documentation. To learn how to install an SDK and perform authentication, read Usage.
Error Code

Outline

API Description
URL
Request Parameters
Response Parameters
Example Request
SDK
Error Code