URL

GET https://{api-url}/api/v2/tenants/{tenantId}/policies/discovery

Sample URLs

For AWS:

https://{api-url}/api/v2/tenants/client_105261/policies/discovery
https://{api-url}/api/v2/tenants/msp_101/policies/discovery

For Azure:

https://{api-url}/api/v2/tenants/client_105261/policies/discovery
https://{api-url}/api/v2/tenants/msp_521/policies/discovery

Status code

200 OK

Sample response

For AWS:

[{
		"id": 110,
		"name": "AWS discovery profile",
		"credentialSet": "AWS_AWSIntegration",
		"credential": {
			"credentialName": "AWS_AWSIntegration",
			"accountId": "290642135903"
		},
		"policy": {
			"id": 136,
			"name": "AWS discovery profile",
			"entityType": "ALL",
			"matchType": "ANY",
			"rules": [{
				"filterType": "ANY_CLOUD_RESOURCE"
			}],
			"actions": [{
					"action": "MANAGE DEVICE",
					"items": []
				},
				{
					"action": "STREAM AWS ALERTS",
					"items": [{
						"item": "https://cloudwatch-url",
						"parameters": {},
						"instances": {}
					}]
				}
			],
			"executionOrder": 0
		},
		"schedule": {
			"patternType": "HOURLY",
			"pattern": "2",
			"startTime": "02:00:00"
		}
	},
	{
		"id": 111,
		"name": "AWS discovery profile",
		"credentialSet": "AWS_AWSIntegration",
		"credential": {
			"credentialName": "AWS_AWSIntegration",
			"accountId": "290642135903"
		},
		"schedule": {
			"patternType": "MINUTES",
			"pattern": "30",
			"startTime": "00:30:00"
		}
	}
]

For Azure:

[{
		"id": 102183,
		"name": "Azure",
		"credentialSet": "Azure Credentials",
		"credential": {
			"credentialName": "Azure Credentials",
			"accountId": "9ee6993f-a036-4118-9eab-c66d9fda1ef3"
		},
		"policy": {
			"id": 39733,
			"name": "Azure",
			"resourceType": "ALL",
			"matchType": "ANY",
			"rules": [{
					"filterType": "ANY_DEVICE"
				},
				{
					"filterType": "EBS"
				},
				{
					"filterType": "WEBSITE"
				},
				{
					"filterType": "SQL_SERVER"
				},
				{
					"filterType": "SQL_DATABASE"
				},
				{
					"filterType": "RESOURCE_GROUP"
				},
				{
					"filterType": "REDIS_CACHE"
				},
				{
					"filterType": "DOCUMENT_DB"
				}
			],
			"actions": [{
					"action": "MANAGE DEVICE",
					"items": []
				},
				{
					"action": "ASSIGN GATEWAY MANAGEMENT PROFILE",
					"items": [{
						"item": "24422",
						"parameters": {},
						"instances": {}
					}]
				},
				{
					"action": "INSTALL OPSRAMP AGENT",
					"items": [{
						"item": "169743",
						"parameters": {},
						"instances": {}
					}]
				},
				{
					"action": "SELECT GATEWAY",
					"items": [{
						"item": "24422",
						"parameters": {},
						"instances": {}
					}]
				}
			],
			"executionOrder": 0
		},
		"schedule": {
			"patternType": "MINUTES",
			"pattern": "30",
			"startTime": "00:30:00"
		}
	},
	{
		"id": 8751,
		"name": "Azure_profile",
		"credentialSet": "Azure Lab discovery profile",
		"credential": {
			"credentialName": "Azure Lab discovery profile",
			"accountId": "9ee6993f-a036-4118-9eab-c66d9fda1ef3"
		},
		"schedule": {
			"patternType": "MINUTES",
			"pattern": "30",
			"startTime": "00:30:00"
		}
	}
]