All Products
Search
Document Center

Security Center:GetStorage

Last Updated:Jan 10, 2025

Queries the storage configurations for the threat analysis feature on the user side.

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
yundun-sas:GetStorageget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RoleTypeintegerNo

The type of the view. Valid values:

  • 0: the current Alibaba Cloud account
  • 1: the global account
1
RoleForlongNo

The ID of the account that you switch from the management account.

127XXXX
RegionIdstringNo

The data management center of the threat analysis feature. Specify this parameter based on the region where your assets reside. Valid values:

  • cn-hangzhou: Your assets reside in regions in China.
  • ap-southeast-1: Your assets reside in regions outside China.
cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

CloudSiemResponse

Dataobject

The information about the storage.

Ttlinteger

The storage period of logs. Unit: day. Default value: 180. Valid values: 30 to 3000.

180
Regionstring

The region where the data is stored.

If the data management center is cn-hangzhou, the default value of Region is cn-shanghai, which specifies the China (Shanghai) region. If the data management center is ap-southeast-1, the default value of Region is ap-southeast-1, which specifies the Singapore region.

cn-shanghai
DisplayRegionboolean

Indicates whether the storage region can be changed. Default value: false Valid values:

  • true
  • false
false
CanOperateboolean

Indicates whether the storage region can be changed for once. Default value: false Valid values:

  • true
  • false
false
RequestIdstring

The request ID.

97A31C3A-3F9F-5866-8979-5159E3DC****

Examples

Sample success responses

JSONformat

{
  "Data": {
    "Ttl": 180,
    "Region": "cn-shanghai",
    "DisplayRegion": false,
    "CanOperate": false
  },
  "RequestId": "97A31C3A-3F9F-5866-8979-5159E3DC****"
}

Error codes

HTTP status codeError codeError message
500InternalErrorThe request processing has failed due to some unknown error.

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

Change history

Change timeSummary of changesOperation
2024-04-17The Error code has changed. The request parameters of the API has changedView Change Details
2023-12-13The Error code has changed. The response structure of the API has changedView Change Details