Permissions granted to the credential when it is associated with a product.
Used by actions: CreateProductSecret.
| Name | Type | Required | Description |
|---|---|---|---|
| PrivilegeName | String | Yes | Permission name. Currently supported options: GlobalPrivileges DatabasePrivileges TablePrivileges ColumnPrivileges When the permission is DatabasePrivileges, the database name must be specified through the Database parameter; When the permission is TablePrivileges, the database name and the table name in the database must be specified through the Database and TableName parameters; When the permission is ColumnPrivileges, the database, the table name in the database, and the column name in the table must be specified through the Database, TableName, and CoulmnName parameters. |
| Privileges | Array of String | Yes | List of permissions. For Mysql, the optional permission values are: 1. For GlobalPrivileges, the optional permission values are: "SELECT","INSERT","UPDATE","DELETE","CREATE", "PROCESS", "DROP","REFERENCES","INDEX","ALTER","SHOW DATABASES","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER". Note: If this parameter is not passed, the permission will be cleared. 2. For DatabasePrivileges, the optional permission values are: "SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER". Note: If this parameter is not passed, the permission will be cleared. 3. For TablePrivileges, the optional permission values are: "SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER". Note: If this parameter is not passed, the permission will be cleared. 4. For ColumnPrivileges, the optional permission values are: "SELECT","INSERT","UPDATE","REFERENCES". Note: If this parameter is not passed, the permission will be cleared. |
| Database | String | No | This value is valid only when PrivilegeName is DatabasePrivileges. |
| TableName | String | No | This value is valid only when PrivilegeName is TablePrivileges, and in this case, Database must be filled in to explicitly specify the database instance. |
| ColumnName | String | No | This value is valid only when PrivilegeName is ColumnPrivileges, and in this case, the following must be filled in: Database - explicitly specifies the database instance. TableName - explicitly specifies the table. |
| SchemaName | String | No | This value is valid only when PrivilegeName is SchemaPrivileges, and in this case, the following must be filled in: Currently required only for PostgreSQL. |
| SequenceName | String | No | This value is valid only when PrivilegeName is SequencePrivileges, and in this case, the following must be filled in: Currently required only for PostgreSQL. |
| ProcedureName | String | No | This value is valid only when PrivilegeName is ProcedurePrivileges, and in this case, the following must be filled in: Currently required only for PostgreSQL. |
| TypeName | String | No | This value is valid only when PrivilegeName is TypePrivileges, and in this case, the following must be filled in: Currently required only for PostgreSQL. |
| FunctionName | String | No | This value is valid only when PrivilegeName is FunctionPrivileges, and in this case, the following must be filled in: Currently required only for PostgreSQL. |
| ViewName | String | No | This value is valid only when PrivilegeName is ViewPrivileges, and in this case, the following must be filled in: Currently required only for PostgreSQL. |
| MatviewName | String | No | This value is valid only when PrivilegeName is MatviewPrivileges, and in this case, the following must be filled in: Currently required only for PostgreSQL. |
Account information corresponding to the credential (username, host, version, and rotation time)
Used by actions: DescribeRotationHistory, DescribeSecret.
| Name | Type | Required | Description |
|---|---|---|---|
| AccountName | String | No | Account name |
| Host | Array of String | No | Host for account login |
| Version | String | No | Account status (active/pending rotation) |
| RotatedTime | String | No | Account rotation time |
Basic information of the credential
Used by actions: ListSecrets.
| Name | Type | Description |
|---|---|---|
| SecretName | String | Credential name |
| Description | String | Description of the credential |
| KmsKeyId | String | KMS KeyId used to encrypt the credential |
| CreateUin | Integer | Creator UIN |
| Status | String | Credential status: Enabled, Disabled, PendingDelete, Creating, Failed |
| DeleteTime | Integer | Deletion date of the credential, valid when the status is PendingDelete, in unix timestamp |
| CreateTime | Integer | Creation time of the credential, in unix timestamp |
| KmsKeyType | String | KMS CMK type used to encrypt the credential. DEFAULT indicates the default key created by SecretsManager, and CUSTOMER indicates a user-specified key |
| RotationStatus | Integer | 1: -- Rotation enabled; 0: -- Rotation disabled |
| NextRotationTime | Integer | Start time of the next rotation, in unix timestamp |
| SecretType | Integer | 0: -- User-defined credential; |
| ProductName | String | Cloud product name, effective only when SecretType is 1, that is, the credential type is cloud product credential |
| ResourceName | String | Effective when the credential type is SSH key pair credential, used to indicate the name of the SSH key pair credential. |
| ProjectID | Integer | Effective when the credential type is SSH key pair credential, used to indicate the project ID to which the SSH key pair belongs. |
| AssociatedInstanceIDs | Array of String | Effective when the credential type is SSH key pair credential, used to indicate the ID of the CVM instance associated with the SSH key pair. |
| TargetUin | Integer | Effective when the credential type is cloud API key pair credential, used to indicate the UIN of the user to which the cloud API key pair belongs. |
| RotationFrequency | Integer | Rotation frequency, in days, effective when rotation is enabled. |
| ResourceID | String | ID of the cloud product instance corresponding to the cloud product credential. |
| RotationBeginTime | String | User-specified start time of rotation. |
| EncryptType | Integer | Credential encryption type Valid values:
Default value: 0 |
| EncryptSwitching | Boolean | Credential key encryption switching in progress |
| CreateUinString | String | Creator UIN string |
| TargetUinString | String | Owner UIN string Used for compatibility with uint64 to prevent precision loss |
Tag key and tag value.
Used by actions: CreateProductSecret, CreateSSHKeyPairSecret, CreateSecret.
| Name | Type | Required | Description |
|---|---|---|---|
| TagKey | String | Yes | Tag key. |
| TagValue | String | Yes | Tag value. |
Tag filter
Used by actions: ListSecrets.
| Name | Type | Required | Description |
|---|---|---|---|
| TagKey | String | Yes | Tag key. |
| TagValue | Array of String | No | Tag value. |
List of secret version numbers
Used by actions: ListSecretVersionIds.
| Name | Type | Description |
|---|---|---|
| VersionId | String | Version number |
| CreateTime | Integer | Creation time, unix timestamp. |
| VersionStages | Array of String | List of public version tags held by this version, used to view tag targets. Custom, cloud product, and Redis/MongoDB secrets return this field in the version list, containing only Stage_Current. An empty array [] is returned when there are no tags. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan