# ProvisioningState

## GET /api/v1/environments/{environment}/proxy/api/v1/state

> Gets the provisioning state information

```json
{"openapi":"3.0.3","info":{"title":"Lenses API","version":"6.1"},"tags":[{"name":"Lenses_API_ProvisioningState"}],"paths":{"/api/v1/environments/{environment}/proxy/api/v1/state":{"get":{"tags":["Lenses_API_ProvisioningState"],"description":"Gets the provisioning state information","operationId":"viewProvisioningState","parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_ViewStateAPIResponse"}}}},"400":{"description":"The request input was invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_BadRequest"}}}},"401":{"description":"Authentication error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_Unauthorized"}}}},"402":{"description":"The purchased Lenses license does not provide access to this feature","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_LicenseError"}}}},"403":{"description":"Authorisation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_Forbidden"}}}},"404":{"description":"The requested resource cannot be found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_NotFound"}}}},"500":{"description":"An internal server error has occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_InternalError"}}}}}}}},"components":{"schemas":{"Lenses_API_ViewStateAPIResponse":{"required":["connections"],"type":"object","properties":{"connections":{"$ref":"#/components/schemas/Lenses_API_Map_String_List_ConnectionStateResponse"}}},"Lenses_API_Map_String_List_ConnectionStateResponse":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_ConnectionStateResponse"}}},"Lenses_API_ConnectionStateResponse":{"required":["name","version"],"type":"object","properties":{"name":{"type":"string"},"version":{"type":"integer"},"tags":{"type":"array","items":{"type":"string"}}}},"Lenses_API_BadRequest":{"required":["error"],"type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"error":{"type":"string"},"errorType":{"type":"string"}}},"Lenses_API_FieldError":{"required":["field","error"],"type":"object","properties":{"field":{"type":"string"},"error":{"type":"string"}}},"Lenses_API_Unauthorized":{"required":["error"],"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"errorType":{"type":"string"}}},"Lenses_API_LicenseError":{"required":["error"],"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"errorType":{"type":"string"}}},"Lenses_API_Forbidden":{"required":["error"],"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"errorType":{"type":"string"}}},"Lenses_API_NotFound":{"required":["error"],"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"errorType":{"type":"string"}}},"Lenses_API_InternalError":{"required":["error"],"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"errorType":{"type":"string"}}}}}}
```

## GET /api/v1/environments/{environment}/proxy/api/v1/state/connections

> Gets the provisioning connection state information

```json
{"openapi":"3.0.3","info":{"title":"Lenses API","version":"6.1"},"tags":[{"name":"Lenses_API_ProvisioningState"}],"paths":{"/api/v1/environments/{environment}/proxy/api/v1/state/connections":{"get":{"tags":["Lenses_API_ProvisioningState"],"description":"Gets the provisioning connection state information","operationId":"getProvisionedConnections","parameters":[{"name":"environment","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/yaml":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request input was invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_BadRequest"}}}},"401":{"description":"Authentication error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_Unauthorized"}}}},"402":{"description":"The purchased Lenses license does not provide access to this feature","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_LicenseError"}}}},"403":{"description":"Authorisation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_Forbidden"}}}},"404":{"description":"The requested resource cannot be found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_NotFound"}}}},"500":{"description":"An internal server error has occurred","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lenses_API_InternalError"}}}}}}}},"components":{"schemas":{"Lenses_API_BadRequest":{"required":["error"],"type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"error":{"type":"string"},"errorType":{"type":"string"}}},"Lenses_API_FieldError":{"required":["field","error"],"type":"object","properties":{"field":{"type":"string"},"error":{"type":"string"}}},"Lenses_API_Unauthorized":{"required":["error"],"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"errorType":{"type":"string"}}},"Lenses_API_LicenseError":{"required":["error"],"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"errorType":{"type":"string"}}},"Lenses_API_Forbidden":{"required":["error"],"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"errorType":{"type":"string"}}},"Lenses_API_NotFound":{"required":["error"],"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"errorType":{"type":"string"}}},"Lenses_API_InternalError":{"required":["error"],"type":"object","properties":{"error":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Lenses_API_FieldError"}},"errorType":{"type":"string"}}}}}}
```
