tencent cloud

文档CloudAuditPHP SDK DocumentationObtaining CloudAudit Info

Obtaining CloudAudit Info

PDF
聚焦模式
字号
最后更新时间: 2024-01-24 17:36:30

SDK Description

DescribeAudits is used to obtain the CloudAudit information.

Request Parameters

Parameter Name
Required
Type
Description
auditNameList
Yes
Array
The auditName list

Response Parameters

Parameter Name
Type
Description
auditLists
Array
The list of tracking sets
The parameter auditList is composed as follows:
Parameter Name
Type
Description
IsMultiRegionAudit
Number
Indicates whether to enable multi-region query. 0: No; 1: Yes.
KmsKeyId
String
Kms key ID
Name
String
Audit name
CosBucketName
String
COS bucket name
CosKeyPrefix
String
COS bucket Prefix
CmqTopicName
String
CMQ topic name
Status
Number
Audit status. 0: Disabled; 1: Enabled.

Example

Request example

$config = array('SecretId' => 'Your secretId',
'SecretKey' => 'Your secretKey',
'RequestMethod' => 'GET',
'DefaultRegion' => 'gz');
$ca = QcloudApi::load(QcloudApi::MODULE_CLOUDAUDIT, $config);
$package = array('auditNameList'=>'["ayisunxxx"]');
$a = $ca->DescribeAudits($package);
if ($a === false) {
$error = $ca->getError();
echo "Error code:" . $error->getCode() . ".\\n";
echo "message:" . $error->getMessage() . ".\\n";
echo "ext:" . var_export($error->getExt(), true) . ".\\n";
} else {
var_dump($a);
}
echo "\\nRequest :" . $ca->getLastRequest();
echo "\\nResponse :" . $ca->getLastResponse();
echo "\\n";

Response example

{
"auditList": [
{
"Name": "ayisunxxx",
"CosBucketName": "sundehuixxx",
"CosKeyPrefix": "91000000009",
"Status": 1,
"IsMultiRegionAudit": 1,
"CmqTopicName": ""
}
]
}

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈