CmdID / aws / aws iotthingsgraph
aws iotthingsgraph get-system-template
Gets a system. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To get a system
The following get-system-template example gets a definition for a system.
aws iotthingsgraph get-system-template --id "urn:tdm:us-west-2/123456789012/default:System:MySystem"Identify--idThe ID of the system to get.Its output
{
"description": {
"summary": {
"id": "urn:tdm:us-west-2/123456789012/default:System:MySystem",
"arn": "arn:aws:iotthingsgraph:us-west-2:123456789012:System/default/MyFlow",
"revisionNumber": 1,
"createdAt": 1559247540.656
},
"definition": {
"language": "GRAPHQL",
"text": "{\ntype MySystem @systemType(id: \"urn:tdm:us-west-2/123456789012/default:System:MySystem\", description: \"\") {\n camera: Camera @thing(id: \"urn:tdm:aws/examples:deviceModel:Camera\")\n screen: Screen @thing(id: \"urn:tdm:aws/examples:deviceModel:Screen\")\n motionSensor: MotionSensor @thing(id: \"urn:tdm:aws/examples:deviceModel:MotionSensor\")\n MyFlow: MyFlow @workflow(id: \"urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow\")\n}\n}"
},
"validatedNamespaceVersion": 5
}
}Options
--idThe ID of the system to get.--revision-numberThe number that specifies the revision of the system to get.