All Products
Search
Document Center

Security Center:DescribeContainerFieldStatistics

Last Updated:Aug 24, 2024

Queries the statistical information about containers.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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

Request parameters

ParameterTypeRequiredDescriptionExample
The current API does not require request parameters

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

F8B6F758-BCD4-597A-8A2C-DA5A552C****
ContainerGroupedFieldsobject

The statistical information about containers.

RiskImageCountinteger

The number of the images on which risks are detected.

1
RiskPodCountinteger

The number of the pods on which risks are detected.

2
NamespaceCountinteger

The number of namespaces.

3
PodCountinteger

The number of pods.

1
AppCountinteger

The number of applications.

3
ContainerCountinteger

The number of containers.

1
ImageCountinteger

The number of images.

3
RiskContainerCountinteger

The number of the containers on which risks are detected.

1
ClusterCountinteger

The number of clusters.

1
RiskAppCountinteger

The number of the applications on which risks are detected.

1
RiskClusterCountinteger

The number of the clusters on which risks are detected.

1
RiskInstanceCountinteger

The number of the instances on which risks are detected.

3
InstanceCountinteger

The number of instances.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "F8B6F758-BCD4-597A-8A2C-DA5A552C****",
  "ContainerGroupedFields": {
    "RiskImageCount": 1,
    "RiskPodCount": 2,
    "NamespaceCount": 3,
    "PodCount": 1,
    "AppCount": 3,
    "ContainerCount": 1,
    "ImageCount": 3,
    "RiskContainerCount": 1,
    "ClusterCount": 1,
    "RiskAppCount": 1,
    "RiskClusterCount": 1,
    "RiskInstanceCount": 3,
    "InstanceCount": 1
  }
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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