Returns a list of cases that you specify by passing one or more case IDs¶
Description¶
Returns a list of cases that you specify by passing one or more case IDs. You can use the afterTime and beforeTime parameters to filter the cases by date. You can set values for the includeResolvedCases and includeCommunications parameters to specify how much information to return.
The response returns the following in JSON format:
- One or more CaseDetails data types.
- One or more
nextTokenvalues, which specify where to paginate the returned records represented by theCaseDetailsobjects.
Case data is available for 24 months after creation. If a case was created more than 24 months ago, a request might return an error.
- You must have an Amazon Web Services Business Support+, Amazon Web Services Enterprise Support, or Amazon Web Services Unified Operations plan to use the Amazon Web Services Support API. If you're in an Amazon Web Services Region that doesn't offer one of these Amazon Web Services Support plans, or if you haven't transitioned to one of these plans, you can use the Amazon Web Services Support API with a Business, Enterprise On-Ramp, or Enterprise Support plan.
- If you call the Amazon Web Services Support API from an account that doesn't have an Amazon Web Services Business Support+, Amazon Web Services Enterprise Support, or Amazon Web Services Unified Operations plan, the
SubscriptionRequiredExceptionerror message appears. For information about changing your support plan, see Amazon Web Services Support.
Each Communication returned by this operation includes attachment information in two fields:
attachmentSet: returns only attachments that are 5 MB or smaller. Attachments larger than 5 MB are not included in this field.attachments: returns all attachments regardless of size.
Amazon Web Services recommends that you use the attachments field and download each attachment with get_attachment_download_link, which supports attachments of any size. The attachmentSet field and describe_attachment return only attachments that are 5 MB or smaller.
Usage¶
support_describe_cases(caseIdList, displayId, afterTime, beforeTime,
includeResolvedCases, nextToken, maxResults, language,
includeCommunications, dryRun)
Arguments¶
-
caseIdListA list of ID numbers of the support cases you want returned. The maximum number of cases is 100.
-
displayIdThe ID displayed for a case in the Amazon Web Services Support Center user interface.
-
afterTimeThe start date for a filtered date search on support case communications. Case communications are available for 24 months after creation.
-
beforeTimeThe end date for a filtered date search on support case communications. Case communications are available for 24 months after creation.
-
includeResolvedCasesSpecifies whether to include resolved support cases in the
describe_casesresponse. By default, resolved cases aren't included. -
nextTokenA resumption point for pagination.
-
maxResultsThe maximum number of results to return before paginating.
-
languageThe language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese ("ja") , Chinese ("zh"), Spanish ("es"), Portuguese ("pt"), French ("fr"), Korean (“ko”), and Turkish ("tr"). You must specify the ISO 639-1 code for the
languageparameter if you want support in that language. -
includeCommunicationsSpecifies whether to include communications in the
describe_casesresponse. By default, communications are included. -
dryRunSpecifies whether to validate the request without actually returning case data. When set to
true, the request is validated but no cases are returned, and the operation returns aDryRunOperationException. When omitted or set tofalse, the request runs normally.
Value¶
A list with the following syntax:
list(
cases = list(
list(
caseId = "string",
displayId = "string",
subject = "string",
status = "string",
serviceCode = "string",
categoryCode = "string",
severityCode = "string",
submittedBy = "string",
timeCreated = "string",
recentCommunications = list(
communications = list(
list(
caseId = "string",
body = "string",
submittedBy = "string",
timeCreated = "string",
attachments = list(
list(
attachmentId = "string",
fileName = "string"
)
),
attachmentSet = list(
list(
attachmentId = "string",
fileName = "string"
)
)
)
),
nextToken = "string"
),
ccEmailAddresses = list(
"string"
),
language = "string"
)
),
nextToken = "string"
)