Search templates
Searching for template based on query parameters
Query Variables | Description |
---|---|
id | Template ID. |
name | Template name. |
scope | Template scope. Example: Global [note 3] |
collectorType | Collector type. Supported values are: Agent, Gateway, OpsRamp Cloud, AWS, GOOGLE, AZURE |
status | Template status. Example: ACTIVE, EOL |
generation | The generation. Example: 1, 2 |
startCreationDate | Search for templates created within a certain duration. startCreationDate denotes the from date. |
endCreationDate | Search for templates created within a certain duration. endCreationDate denotes the to date. |
startUpdationDate | Search for templates updated within a certain duration. startUpdationDate denotes the from update date. |
endUpdationDate | Search for templates updated within a certain duration. endUpdationDate denotes the to update date. |
sourceType | Template source. Supported values are: DEVICE, DATA_CENTER, VI_CLUSTER, VI_DATASTORE, JMX_APP_CLUSTER, JMX_APP_INSTANCE, DISTRIBUTED_VIRTUAL_SWITCH, CONTRAIL_ANALYTICS_NODE, CONTRAIL_CONFIG_NODE, CONTRAIL_CONTROL_NODE, VIRTUVAL_ROUTER, STORAGE_ARRAY_VOLUME |
Notes
- There are special characters that can be used in a query string:
- (+) represents the next field and must be URL-encoded.
- (:) represents equals. An example is key : value.
- Space characters must be URL-encoded.
- Date format must be yyyy-MM-ddTHH:mm:ssZ (GMT).
- Provide scope: Global, to get gGlobal templates
- Provide scope: OpsRamp, to get OpsRamp templates
- CLIENT AUTHENTICATION
- Provide scope: Partner, to get partner templates
- Provide scope: Client, to get client templates
- PARTNER AUTHENTICATION
1. Provide scope: Partner, to get partner templates
2. Use this API with respective client_id, to get client templates as shown in example URL 1
Note: queryString not required with scope.
- SERVICE PROVIDER AUTHENTICATION
- Use this API with respective msp_id, to get partner templates as shown in example URL 3
Note: queryString not required with scope.
2. Use this API with respective client_id, to get client templates as shown in example URL 1
Note: queryString not required with scope.
- Provide sourceType = DEVICE, to get available templates at the device level.
Note: This can be useful in assigning templates to a device.
get
/api/v2/tenants/{tenantId}/monitoring/templates/search
Path Parameters
- tenantId
Describes the clientId or mspId of tenant
Query Parameters
- pageNo
Default: 1
- pageSize
Default: 100
- isDescendingOrder
- sortName
Default: id
- queryString
00