GetPoliciesStats - Amazon OpenSearch Serverless


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.


Information about the data access policies in your account.

Type: AccessPolicyStats object


Information about the lifecycle policies in your account.

Type: LifecyclePolicyStats object


Information about the security configurations in your account.

Type: SecurityConfigStats object


Information about the security policies in your account.

Type: SecurityPolicyStats object


The total number of OpenSearch Serverless security policies and configurations in your account.

Type: Long


For information about the errors that are common to all actions, see Common Errors.


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: