All Products
Search
Document Center

:DescribeResourceLogStatus

Last Updated:Feb 09, 2023

Queries the Log Service for WAF feature for a protected object.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the Web Application Firewall (WAF) instance.

NoteYou can call the DescribeInstance operation to query the ID of the WAF instance.
waf-cn-zz11zcl****
ResourcesstringYes

The protected object that you want to query. You can specify multiple protected objects. Separate them with commas (,).

alb-wewbb23dfsetetcic1242-0****,alb-wewbb23dfsetetcic1242-1****

Response parameters

ParameterTypeDescriptionExample
object

The result of the request.

RequestIdstring

The ID of the request.

0DABF8AB-2321-5F8D-A8D7-922D757FBFFE
Resultarray

The returned data.

object

The information about the protected object.

Resourcestring

The protected object.

alb-wewbb23dfsetetcic****
Statusboolean

Indicates whether the Log Service for WAF feature is enabled for the protected object. Valid values:

  • true: The Log Service for WAF feature is enabled for the protected object.
  • false: The Log Service for WAF feature is disabled for the protected object.
true

Example

Normal return example

JSONFormat

{
  "RequestId": "0DABF8AB-2321-5F8D-A8D7-922D757FBFFE",
  "Result": [
    {
      "Resource": "alb-wewbb23dfsetetcic****",
      "Status": true
    }
  ]
}

Error codes

For a list of error codes, visit the API error center.