Provisioning State
Gets the provisioning state information (DEPRECATED: Use GET /api/v1/state/connections instead)
The bearer token can be obtained by creating a ServiceAccount.
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
GET /api/v1/environments/{environment}/proxy/api/v1/state HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"connections": {
"ANY_ADDITIONAL_PROPERTY": [
{
"name": "text",
"version": 1,
"tags": [
"text"
]
}
]
}
}Gets the raw provisioning.yaml file contents
The bearer token can be obtained by creating a ServiceAccount.
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
GET /api/v1/environments/{environment}/proxy/api/v1/state/connections HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
textUploads a complete provisioning manifest as YAML along with referenced files to the configured scanner folder. This replaces the entire connection state - any existing connections not in the manifest will be deleted. If no 'lensesHq' section is provided in the manifest, the existing HQ connection will be automatically preserved.
The bearer token can be obtained by creating a ServiceAccount.
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
The supplied identifier is already being used by another resource
An internal server error has occurred
POST /api/v1/environments/{environment}/proxy/api/v1/state/connections/upload HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 8
"binary"{
"valid": true,
"message": "text",
"connections": [
{
"name": "text",
"valid": true,
"error": "text",
"lineNumbers": [
1
],
"fieldPaths": [
"text"
]
}
],
"summary": {
"created": [
"text"
],
"updated": [
"text"
],
"deleted": [
"text"
]
}
}Validates a provisioning manifest with uploaded files without applying changes. Uses full upload validation (replaces entire state).
The bearer token can be obtained by creating a ServiceAccount.
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
POST /api/v1/environments/{environment}/proxy/api/v1/state/connections/validate/upload HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 8
"binary"{
"valid": true,
"message": "text",
"connections": [
{
"name": "text",
"valid": true,
"error": "text",
"lineNumbers": [
1
],
"fieldPaths": [
"text"
]
}
],
"summary": {
"created": [
"text"
],
"updated": [
"text"
],
"deleted": [
"text"
]
}
}Last updated
Was this helpful?

