Documentation is now available for the Fall 2020 Update release!

Resources for HTTP OAuth2 authentication type

This endpoint is used to create synthetic resources for HTTP OAuth2 type of authentication.

Leave Feedback


POST https://{api-url}/api/v2/tenants/{tenantId}/resources

Sample URLs



All fields are mandatory:

FieldData TypeDescription
hostName/resourceNameStringName of the host.
resourceTypeStringType of resource. Use SYNTHETIC for synthetic.
checkTypeStringSpecifies the category type.
Example: http, https, ftp, and so on.
urlStringURL of the synthetic.
locationUuidsStringArray of UUIDs of locations you want to bind.
credentialStringSpecifies the credentials. Examples:
  • "securityLevel" : "oauth2"
  • "oauthClientKey" : "clientKey should be here"
  • "oauthClientSecret" : "client secret should be here"
  • "oauthAccessTokenUrl" : "auth/oauth/token"
  • "oauthGrantType" : "client_credentials"

Sample request

	"checkType" : "HTTP",
	"resourceName" : "Indian",
	"url" : "",
	"credential" :{
			"securityLevel" : "oauth2",
			"oauthClientKey" : "kHSageRP9CTeCFP7Wfrzzc45pFJZ99N4",
			"oauthClientSecret" : "5w6rKEAgYpsYDdd8vm5PnUMsQWqTnh423FArQYxGW6V3zqDcTG2z7UvjV3YBMq9Y",
			"oauthAccessTokenUrl" : "auth/oauth/token",
			"oauthGrantType" : "client_credentials"
	"locationUuids" :
	   [ "7b77f37f-5eb0-4ec2-bd19-15cc6853e3ca"]  

Sample response

"resourceUUID": "32a6a17c-376a-421e-ad15-01d92803f40f",
"tenantID": "client_5"