0.1.0
DO!DevOps info@dodevops.io http://dodevops.io
- http
- application/json
- application/json
Type: basic
| Method | URI | Name | Summary |
|---|---|---|---|
| GET | /datastores | get datastores | Retrieve a list of datastores |
| Method | URI | Name | Summary |
|---|---|---|---|
| GET | /hosts | get hosts | Retrieve a list of ESXi hosts |
| Method | URI | Name | Summary |
|---|---|---|---|
| GET | /status | get status | Checks whether the service is running |
| Method | URI | Name | Summary |
|---|---|---|---|
| GET | /vms | get vms | Retrieve a list of all vms |
| GET | /vms/{id}/fqdn | get vms ID fqdn | Get fqdn of VM |
| GET | /vms/{id}/info | get vms ID info | Get informational data about a VM |
| GET | /vms/{id}/tags | get vms ID tags | Retrieve tags |
GET /datastores
Fetches a list of registered datastores in the vCenter
- application/json
- BasicAuth
| Code | Status | Description | Has headers | Schema |
|---|---|---|---|---|
| 200 | OK | OK | schema | |
| 400 | Bad Request | Invalid request | schema | |
| 401 | Unauthorized | Authorization is required | schema |
Status: OK
Status: Bad Request
Status: Unauthorized
GET /hosts
Fetches a list of registered ESXi hosts in the vCenter
- application/json
- BasicAuth
| Code | Status | Description | Has headers | Schema |
|---|---|---|---|---|
| 200 | OK | OK | schema | |
| 400 | Bad Request | Invalid request | schema | |
| 401 | Unauthorized | Authorization is required | schema |
Status: OK
Status: Bad Request
Status: Unauthorized
GET /status
Just responses with a 200 to signal that the service is running
- application/json
| Code | Status | Description | Has headers | Schema |
|---|---|---|---|---|
| 200 | OK | OK | schema |
Status: OK
GET /vms
Fetches a list of vms from the vCenter
- application/json
- BasicAuth
| Code | Status | Description | Has headers | Schema |
|---|---|---|---|---|
| 200 | OK | OK | schema | |
| 400 | Bad Request | Invalid request | schema | |
| 401 | Unauthorized | Authorization is required | schema |
Status: OK
Status: Bad Request
Status: Unauthorized
GET /vms/{id}/fqdn
Try to find out the fqdn of the given VM using the guest tools
- application/json
- BasicAuth
| Name | Source | Type | Go type | Separator | Required | Default | Description |
|---|---|---|---|---|---|---|---|
| id | path |
string | string |
✓ | ID of VM |
| Code | Status | Description | Has headers | Schema |
|---|---|---|---|---|
| 200 | OK | OK | schema | |
| 400 | Bad Request | Invalid request | schema | |
| 401 | Unauthorized | Authorization is required | schema |
Status: OK
Status: Bad Request
Status: Unauthorized
GET /vms/{id}/info
Find out some information about a VM and return them
- application/json
- BasicAuth
| Name | Source | Type | Go type | Separator | Required | Default | Description |
|---|---|---|---|---|---|---|---|
| id | path |
string | string |
✓ | ID of VM |
| Code | Status | Description | Has headers | Schema |
|---|---|---|---|---|
| 200 | OK | OK | schema | |
| 400 | Bad Request | Invalid request | schema | |
| 401 | Unauthorized | Authorization is required | schema |
Status: OK
Status: Bad Request
Status: Unauthorized
GET /vms/{id}/tags
Retrieve tags and their categories for a vm
- application/json
- BasicAuth
| Name | Source | Type | Go type | Separator | Required | Default | Description |
|---|---|---|---|---|---|---|---|
| id | path |
string | string |
✓ | ID of VM |
| Code | Status | Description | Has headers | Schema |
|---|---|---|---|---|
| 200 | OK | OK | schema | |
| 400 | Bad Request | Invalid request | schema | |
| 401 | Unauthorized | Authorization is required | schema |
Status: OK
Status: Bad Request
Status: Unauthorized
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| capacity | integer | int64 |
||||
| datastore | string | string |
||||
| free_space | integer | int64 |
||||
| name | string | string |
||||
| type | string | string |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| connection_state | string | string |
||||
| host | string | string |
||||
| name | string | string |
||||
| power_state | string | string |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| name | string | string |
||||
| power_state | string | string |
||||
| vm | string | string |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| cpu_cores | integer | int64 |
||||
| name | string | string |
||||
| provisioned_ram | integer | int64 |
||||
| provisioned_storage | integer | int64 |
||||
| used_storage | integer | int64 |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| category | string | string |
Category holds the tag category | |||
| value | string | string |
Value holds the value of the tag |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| datastores | EndpointsDatastoresResult | EndpointsDatastoresResult |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| count | integer | int64 |
||||
| datastores | []APIDatastore | []*APIDatastore |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| fqdn | string | string |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| hosts | EndpointsHostsResult | EndpointsHostsResult |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| count | integer | int64 |
||||
| hosts | []APIHost | []*APIHost |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| status | string | string |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| tags | EndpointsTagsResult | EndpointsTagsResult |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| count | integer | int64 |
||||
| tags | []APIVMTag | []*APIVMTag |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| vms | EndpointsVMSResult | EndpointsVMSResult |
Properties
| Name | Type | Go type | Required | Default | Description | Example |
|---|---|---|---|---|---|---|
| count | integer | int64 |
||||
| vms | []APIVM | []*APIVM |