All Products
Search
Document Center

ApsaraDB for OceanBase:DescribeTenantSecurityConfigs

Last Updated:Oct 23, 2024

You can call this operation to query security check items of an OceanBase Database tenant.

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

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the OceanBase cluster.

ob317v4uif****
TenantIdstringNo

The ID of the tenant.

t4louaeei****
CheckIdstringNo

The unique identifier of the security check.

****

Response parameters

ParameterTypeDescriptionExample
object

The return result of the request.

RequestIdstring

The ID of the request.

523E7183-****-590D-****-12DFD316614B
Configsobject

The list of parameters.

TotalCheckCountinteger

The total number of security check items.

4
TotalRiskCountinteger

The total number of detected security risks.

0
TenantSecurityConfigsarray<object>

The check result.

TenantSecurityConfigsobject

The ID of the tenant.

TenantIdstring

The ID of the tenant.

xxx
TenantNamestring

The name of the tenant.

xxx
RiskCountinteger

The number of detected tenant security risks.

0
SecurityConfigsarray<object>

The list of risks.

SecurityConfigsobject

The list of risks.

ConfigGroupstring

The group of the risk.

WHITELIST
ConfigNamestring

The name of the risk.

WHITELIST_RANGE_LARGE
Riskboolean

Indicates whether the risk causes security issues.

true
RiskDescriptionstring

The description of the risk.

The scope of the allowlist is too big.
ConfigDescriptionstring

The name of the check item.

Check whether the scope of the cluster allowlist is too big
CheckIdstring

The unique identifier of the check.

 xxx
InstanceIdstring

The ID of the OceanBase cluster.

ob317v4uif****
CheckTimestring

The time when the check was performed.

2023-08-07 15:30:00

Examples

Sample success responses

JSONformat

{
  "RequestId": "523E7183-****-590D-****-12DFD316614B",
  "Configs": {
    "TotalCheckCount": 4,
    "TotalRiskCount": 0,
    "TenantSecurityConfigs": [
      {
        "TenantId": "xxx",
        "TenantName": "xxx",
        "RiskCount": 0,
        "SecurityConfigs": [
          {
            "ConfigGroup": "WHITELIST",
            "ConfigName": "WHITELIST_RANGE_LARGE",
            "Risk": true,
            "RiskDescription": "The scope of the allowlist is too big.",
            "ConfigDescription": "Check whether the scope of the cluster allowlist is too big"
          }
        ]
      }
    ],
    "CheckId": " xxx",
    "InstanceId": "ob317v4uif****",
    "CheckTime": "2023-08-07 15:30:00"
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2023-10-30The request parameters of the API has changed. The response structure of the API has changedView Change Details