GetPoliciesStats
Returns statistical information about your OpenSearch Serverless access policies, security configurations, and security policies.
Response Syntax
{
"AccessPolicyStats": {
"DataPolicyCount": number
},
"LifecyclePolicyStats": {
"RetentionPolicyCount": number
},
"SecurityConfigStats": {
"SamlConfigCount": number
},
"SecurityPolicyStats": {
"EncryptionPolicyCount": number,
"NetworkPolicyCount": number
},
"TotalPolicyCount": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- AccessPolicyStats
-
Information about the data access policies in your account.
Type: AccessPolicyStats object
- LifecyclePolicyStats
-
Information about the lifecycle policies in your account.
Type: LifecyclePolicyStats object
- SecurityConfigStats
-
Information about the security configurations in your account.
Type: SecurityConfigStats object
- SecurityPolicyStats
-
Information about the security policies in your account.
Type: SecurityPolicyStats object
- TotalPolicyCount
-
The total number of OpenSearch Serverless security policies and configurations in your account.
Type: Long
Errors
For information about the errors that are common to all actions, see Common Errors.
- InternalServerException
-
Thrown when an error internal to the service occurs while processing a request.
HTTP Status Code: 500
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: