Queries projects and Logstores based on the name patterns of the default SLS project and Logstore for an Alibaba Cloud service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListProjectLogStores |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceProdCode |
string |
Yes |
The code of the product to query. |
sas |
| SourceLogCode |
string |
Yes |
The code of the log to query. |
cloud_siem_aegis_proc |
| SubUserId |
integer |
Yes |
The ID of the Alibaba Cloud account to query. |
123XXXXXXXX |
| RegionId |
string |
No |
The region of the Data Management center for threat analysis. Specify the region based on where your assets are located. Valid values:
|
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
CloudSiemSuccessResponse<List |
||
| Data |
array<object> |
The data returned. |
|
|
object |
The data returned. |
||
| Project |
string |
The name of the SLS project. |
cloud-siem-project |
| LogStore |
string |
The name of the SLS Logstore. |
cloud-siem-logstore |
| EndPoint |
string |
The endpoint of the SLS project. |
cn-hangzhou.log.aliyuncs.com |
| RegionId |
string |
The region where the SLS project resides. |
cn-hangzhou |
| LocalName |
string |
The name of the region where the SLS project resides. |
hangzhou |
| MainUserId |
integer |
The ID of the Alibaba Cloud account that is used to purchase Threat Analysis. |
123XXXXXXXXX |
| SubUserId |
integer |
The ID of the member account for which threat analysis is performed. |
123XXXXXXXX |
| SubUserName |
string |
The name of the member account. |
sas_account_xxxx |
| RequestId |
string |
The request ID. |
6276D891-*****-55B2-87B9-74D413F7**** |
Examples
Success response
JSON format
{
"Data": [
{
"Project": "cloud-siem-project",
"LogStore": "cloud-siem-logstore",
"EndPoint": "cn-hangzhou.log.aliyuncs.com",
"RegionId": "cn-hangzhou",
"LocalName": "hangzhou",
"MainUserId": 0,
"SubUserId": 0,
"SubUserName": "sas_account_xxxx"
}
],
"RequestId": "6276D891-*****-55B2-87B9-74D413F7****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.