Inspector2.Client.
batch_get_free_trial_info
(**kwargs)¶Gets free trial status for multiple Amazon Web Services accounts.
See also: AWS API Documentation
Request Syntax
response = client.batch_get_free_trial_info(
accountIds=[
'string',
]
)
[REQUIRED]
The account IDs to get free trial status for.
{
'accounts': [
{
'accountId': 'string',
'freeTrialInfo': [
{
'end': datetime(2015, 1, 1),
'start': datetime(2015, 1, 1),
'status': 'ACTIVE'|'INACTIVE',
'type': 'EC2'|'ECR'|'LAMBDA'
},
]
},
],
'failedAccounts': [
{
'accountId': 'string',
'code': 'ACCESS_DENIED'|'INTERNAL_ERROR',
'message': 'string'
},
]
}
Response Structure
An array of objects that provide Amazon Inspector free trial details for each of the requested accounts.
Information about the Amazon Inspector free trial for an account.
The account associated with the Amazon Inspector free trial information.
Contains information about the Amazon Inspector free trial for an account.
An object that contains information about the Amazon Inspector free trial for an account.
The date and time that the Amazon Inspector free trail ends for a given account.
The date and time that the Amazon Inspector free trail started for a given account.
The order to sort results by.
The type of scan covered by the Amazon Inspector free trail.
An array of objects detailing any accounts that free trial data could not be returned for.
Information about an error received while accessing free trail data for an account.
The account associated with the Amazon Inspector free trial information.
The error code.
The error message returned.
Exceptions
Inspector2.Client.exceptions.ValidationException
Inspector2.Client.exceptions.AccessDeniedException
Inspector2.Client.exceptions.ThrottlingException
Inspector2.Client.exceptions.InternalServerException