describe_standards
¶
describe_standards(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
providers: Optional[StandardsProviders] = None,
) -> DescribeStandardsResponse
Returns a list of the available standards in Security Hub CSPM.
For each standard, the results include the standard ARN, the name, and a description.
Parameters:
-
next_token(Optional[NextToken], default:None) –The token that is required for pagination. On your first call to the
DescribeStandardsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
-
max_results(Optional[MaxResults], default:None) –The maximum number of standards to return.
-
providers(Optional[StandardsProviders], default:None) –A list of cloud providers to filter the standards by. For example, specify
Azureto return only standards that evaluate Azure resources.
Raises:
-
InternalException–Internal server error.
-
InvalidAccessException–The account doesn't have permission to perform this action.
-
InvalidInputException–The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To get available Azure security standards The following example returns a list of available security standards from a specified provider.
>>> client.describe_standards(providers=['Azure'])
To get available Security Hub standards
The following example returns a list of available security standards in Security Hub.
Source code in docs_src/capo_securityhub/_services/security_hub.py
3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 | |