3.0 KiB
3.0 KiB
\DatacenterApi
All URIs are relative to https://localhost/v1
Method | HTTP request | Description |
---|---|---|
DatacenterControllerCreateDatacenter | Post /datacenter/ | |
DatacenterControllerGetMultipleDatacentersByIDs | Get /datacenter/multi/{IDs} | |
DatacenterControllerGetOneDatacenter | Get /datacenter/{ID} |
DatacenterControllerCreateDatacenter
DatacenterControllerCreateDatacenter(ctx, body)
submit Datacenter object
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | ModelsDatacenterNewModel | The object content |
Return type
(empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DatacenterControllerGetMultipleDatacentersByIDs
[]ModelsComputingModel DatacenterControllerGetMultipleDatacentersByIDs(ctx, iDs)
Return Datacenter objects if found in the DB. Not found IDs will be ignored
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
iDs | **[]string** | List of datacenter IDs |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DatacenterControllerGetOneDatacenter
ModelsDatacenterModel DatacenterControllerGetOneDatacenter(ctx, iD)
find datacenter by ID
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
iD | string | the ID you want to get |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]