fbpx
GEThttps://api.spotinst.io/functions/pattern?environmentId=env-123&accountId={spotinst-account-id}

List all patterns.

Parameter Type Description
environmentId * String

The envionment ID

Example: env-12345
accountId String

The account ID

Example: act-12345
Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
	[{
		"id": "fnap-123",
		"environmentId": "env-123",
		"method": "GET",
		"pattern": "/foo/bar/{}/baz/*",
		"functionId": "fx-123",
		"functionVersion": 2
	}]