Define a Cloud REST Query for cloud computing devices
-
- UpdatedAug 3, 2023
- 4 minutes to read
- Vancouver
- Service Mapping
As part of creating or modifying a discovery pattern, you can use the Cloud REST Query operation to extract information from configuration items (CIs) of the PaaS (Platform as a Service) type, such as Microsoft Azure or Amazon Web Services.
Before you begin
- Verify that the operating system of the CIs for which you want to use the Cloud
REST Query operation extends the Logical Data Center OS type
[cmdb_ci_logical_datacenter]:
- Navigate to .
- Double-click the relevant pattern to open it in the Pattern Designer.
- Click the Basic tab.
- Note the operating system for this CI.
- Navigate to .
- Set the search field to Label and enter the name of the operating system as stated on the Basic tab of the pattern.
- Find the operating system in the list and verify that Logical Datacenter appears in the Extends table column.
Basic knowledge of programming is desirable.
Role required: pd_admin
About this task
Deploy the Cloud REST Query operation in patterns used for discovery of PaaS CIs. This Java-script based custom operation is available only after downloading patterns version 1.0.24 or later from ServiceNow Store. Use this operation instead of the Cloud REST Call operation available in the base system.
Procedure
Example

Use the Cloud REST Query operation to extract information about AWS buckets, their names and creation dates.