...
Using Cloudaware CLI, engineers can retrieve incidents related to a specific asset and update incident details. Here are sample queries:
Get an incident related to an AWS Lambda Function and update the incident severity:
Code Block |
---|
sf data query --query "SELECT Id, CA10__incidentId__c, CA10__severity__c FROM CA10__CaIncident__c WHERE CA10__awsLambdaFunctionArn__c = '<lambda_function_arn>' LIMIT 1" |
WHERE
<specific application name>
- a placeholder of the name of the application that is queried
Update the incident severity to ‘High’. Specify the record Id returned from the previous query:
Code Block |
---|
sf data update record --sobject CA10__CaIncident__c --record-id <record_id> --values "CA10__severity__c=High" |
WHERE
<record_id>
- a placeholder of the record ID for the incident returned from the previous query
Query all cloud services used by a specific application
...
1) Use Child Relationship Names in sub-queries;
Find a necessary Child Relationship Name by executing the following command for a Parent object:
...