Seleziona le tue preferenze relative ai cookie

Utilizziamo cookie essenziali e strumenti simili necessari per fornire il nostro sito e i nostri servizi. Utilizziamo i cookie prestazionali per raccogliere statistiche anonime in modo da poter capire come i clienti utilizzano il nostro sito e apportare miglioramenti. I cookie essenziali non possono essere disattivati, ma puoi fare clic su \"Personalizza\" o \"Rifiuta\" per rifiutare i cookie prestazionali.

Se sei d'accordo, AWS e le terze parti approvate utilizzeranno i cookie anche per fornire utili funzionalità del sito, ricordare le tue preferenze e visualizzare contenuti pertinenti, inclusa la pubblicità pertinente. Per continuare senza accettare questi cookie, fai clic su \"Continua\" o \"Rifiuta\". Per effettuare scelte più dettagliate o saperne di più, fai clic su \"Personalizza\".

GetOpsSummary - AWS Systems Manager
Questa pagina non è tradotta nella tua lingua. Richiedi traduzione

GetOpsSummary

View a summary of operations metadata (OpsData) based on specified filters and aggregators. OpsData can include information about AWS Systems Manager OpsCenter operational workitems (OpsItems) as well as information about any AWS resource or service configured to report OpsData to AWS Systems Manager Explorer.

Request Syntax

{ "Aggregators": [ { "Aggregators": [ "OpsAggregator" ], "AggregatorType": "string", "AttributeName": "string", "Filters": [ { "Key": "string", "Type": "string", "Values": [ "string" ] } ], "TypeName": "string", "Values": { "string" : "string" } } ], "Filters": [ { "Key": "string", "Type": "string", "Values": [ "string" ] } ], "MaxResults": number, "NextToken": "string", "ResultAttributes": [ { "TypeName": "string" } ], "SyncName": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

Aggregators

Optional aggregators that return counts of OpsData based on one or more expressions.

Type: Array of OpsAggregator objects

Array Members: Minimum number of 1 item. Maximum number of 12 items.

Required: No

Filters

Optional filters used to scope down the returned OpsData.

Type: Array of OpsFilter objects

Array Members: Minimum number of 1 item. Maximum number of 5 items.

Required: No

MaxResults

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 50.

Required: No

NextToken

A token to start the list. Use this token to get the next set of results.

Type: String

Required: No

ResultAttributes

The OpsData data type to return.

Type: Array of OpsResultAttribute objects

Array Members: Minimum number of 1 item.

Required: No

SyncName

Specify the name of a resource data sync to get.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Required: No

Response Syntax

{ "Entities": [ { "Data": { "string" : { "CaptureTime": "string", "Content": [ { "string" : "string" } ] } }, "Id": "string" } ], "NextToken": "string" }

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.

Entities

The list of aggregated details and filtered OpsData.

Type: Array of OpsEntity objects

NextToken

The token for the next set of items to return. Use this token to get the next set of results.

Type: String

Errors

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

InternalServerError

An error occurred on the server side.

HTTP Status Code: 500

InvalidAggregatorException

The specified aggregator isn't valid for the group type. Verify that the aggregator you provided is supported.

HTTP Status Code: 400

InvalidFilter

The filter name isn't valid. Verify that you entered the correct name and try again.

HTTP Status Code: 400

InvalidNextToken

The specified token isn't valid.

HTTP Status Code: 400

InvalidTypeNameException

The parameter type name isn't valid.

HTTP Status Code: 400

ResourceDataSyncNotFoundException

The specified sync name wasn't found.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of GetOpsSummary.

Sample Request

POST / HTTP/1.1 Host: ssm.us-east-2.amazonaws.com Accept-Encoding: identity X-Amz-Target: AmazonSSM.GetOpsSummary Content-Type: application/x-amz-json-1.1 User-Agent: aws-cli/1.17.12 Python/3.6.8 Darwin/18.7.0 botocore/1.14.12 X-Amz-Date: 20240330T152044Z Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20240330/us-east-2/ssm/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=39c3b3042cd2aEXAMPLE Content-Length: 2

Sample Response

{ "Entities": [ { "Data": { "AWS:OpsItem": { "CaptureTime": "2024-02-26T05:59:57.430Z", "Content": [ { "AccountId": "111122223333", "Category": "Availability", "CreatedBy": "arn:aws:sts::111122223333:assumed-role/OpsCenterRole/af3935bb93783f02aeea51784EXAMPLE", "CreatedTime": "2024-02-26T07:18:37.193Z", "Description": "CloudWatch Event Rule SSMOpsItems-SSM-maintenance-window-execution-failed was triggered. Your SSM Maintenance Window execution has failed. See below for more details.", "LastModifiedBy": "arn:aws:sts::111122223333:assumed-role/OpsCenterRole/af3935bb93783f02aeea51784EXAMPLE", "LastModifiedTime": "2024-02-26T07:18:37.193Z", "Notifications": "", "OperationalData": "{\"/aws/resources\":{\"type\":\"SearchableString\",\"value\":\"[{\\\"arn\\\":\\\"arn:aws:ssm:us-east-2:111122223333:maintenancewindow/mw-0e357ebdc6EXAMPLE\\\"}]\"},\"/aws/dedup\":{\"type\":\"SearchableString\",\"value\":\"{\\\"dedupString\\\":\\\"SSMOpsItems-SSM-maintenance-window-execution-failed\\\"}\"}}", "OpsItemId": "oi-f99f2EXAMPLE", "RelatedItems": "", "Severity": "3", "Source": "SSM", "Status": "Open", "Title": "SSM Maintenance Window execution failed" } ] } }, "Id": "oi-f99f2EXAMPLE" },---truncated--- ] }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

Argomento successivo:

GetParameter

Argomento precedente:

GetOpsMetadata
PrivacyCondizioni del sitoPreferenze cookie
© 2025, Amazon Web Services, Inc. o società affiliate. Tutti i diritti riservati.