Define an API Query for cloud computing devices
- UpdatedAug 3, 2023
- 5 minutes to read
- Vancouver
- Service Mapping
As part of creating or modifying a discovery pattern, you can use the Cloud REST Call operation to extract information from configuration items of the PaaS (Platform as a Service) type, such as Microsoft Azure or Amazon Web Services.
Before you begin
Role required: pd_admin
- Verify that the operating system of the configuration item (CI) for which you
want to use the Cloud REST Call operation extends the Logical Data Center OS
type [cmdb_ci_logical_datacenter]:
- Navigate to the Basic tab of the CI pattern.
- 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.
- Navigate to the relevant pattern step:
- Select the relevant pattern step or click
to add a step.
- Select the relevant pattern step or click
Basic knowledge of programming is desirable.
About this task
Deploy the Cloud REST Call operation in patterns used for discovery of PaaS CIs.
Procedure
Example
Use the Cloud REST Call operation to extract information on Database instances running on the region us-west-2 in the Amazon cloud.

What to do next
- Continue editing the pattern by adding a new step and defining its operation or
- Finalize the pattern.
Related Content
- Enter values and variables in patterns
There are several ways to enter values in Pattern Designer. You can use the following types of values in patterns: strings, variables, concatenated variables, and eval() functions. Do not use GlideRecords in patterns.
- Activate pattern Debug mode
Working in Debug mode, Pattern Designer performs all operations as you configure them. It allows you to see results immediately.
- Make a step conditional
If necessary, create a precondition that defines how Discovery and Service Mapping execute a pattern step.
- Pattern variables
You use variables in discovery patterns to refer to parameters or attributes of the CI that the pattern discovers.