Get USA States
You can get a representation of а collection of all USA states.
Request
To get USA states, send the GET HTTPS request to the URL of the /misc/usaStates collection.
HTTP Request
GET https://<Availability-Console>:1281/v2/misc/usaStates |
Request Headers
The request header must contain the authorization token for the current logon session.
Response
The server returns the following response to the client.
Response Code
A successfully completed operation returns response code 200 Success.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTP headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the request body message: application/json; charset=utf-8 |
Response Body
In the response body, Veeam Availability Console returns a representation of the /misc/usaStates collection.
Example
The following request returns all USA states.
Request: GET https://localhost:1281/v2/misc/usaStates
Request Header: Authorization: Bearer <Access-Token>
Response Code: 200 Success
Response Body: [ { "id": 1, "code": "AL", "name": "Alabama" }, { "id": 2, "code": "AK", "name": "Alaska" }, { "id": 3, "code": "AZ", "name": "Arizona" } ] |