From 0908762667a4b75a27ed882835e93aceca7b9450 Mon Sep 17 00:00:00 2001 From: Mason Katz Date: Fri, 19 Apr 2024 16:12:33 -0700 Subject: [PATCH] docs: rebuild swagger --- swagger.json | 41616 +++++++++++++++++++++++++------------------------ 1 file changed, 20968 insertions(+), 20648 deletions(-) diff --git a/swagger.json b/swagger.json index 9cf2dd4..70b6527 100644 --- a/swagger.json +++ b/swagger.json @@ -44,19 +44,19 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -75,13 +75,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/sifi.InfoResponse" + "$ref": "#/definitions/manifold.InfoResponse" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -109,43 +109,43 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -182,43 +182,43 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -252,43 +252,43 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -316,446 +316,408 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v2/cloud/cluster/{cluster}": { + "get": { "security": [ { "Token": [] } ], - "description": "Creates a cluster", + "description": "Lists cluster information.", "tags": [ "default" ], - "summary": "post cluster", + "summary": "get cluster", "parameters": [ { - "description": "body", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateClusterRequest" - } + "type": "integer", + "description": "cluster id", + "name": "cluster", + "in": "path", + "required": true + }, + { + "type": "boolean", + "description": "decrypt secrets", + "name": "decrypt", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateClusterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ClusterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/cluster/{cluster}": { + "/v2/cloud/compute": { "get": { "security": [ { "Token": [] } ], - "description": "Lists cluster information.", + "description": "Get computes.", "tags": [ "default" ], - "summary": "get cluster", - "parameters": [ - { - "type": "integer", - "description": "cluster id", - "name": "cluster", - "in": "path", - "required": true - }, - { - "type": "boolean", - "description": "decrypt secrets", - "name": "decrypt", - "in": "query" - } - ], + "summary": "get computes", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ClusterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v2/cloud/datacenter": { + "get": { "security": [ { "Token": [] } ], - "description": "Deletes a cluster.", + "description": "List all datacenters.", "tags": [ "default" ], - "summary": "delete cluster", - "parameters": [ - { - "type": "integer", - "description": "cluster", - "name": "cluster", - "in": "path", - "required": true - } - ], + "summary": "get datacenters", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DataCentersResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v2/cloud/datacenter/{datacenter}": { + "get": { "security": [ { "Token": [] } ], - "description": "Update a cluster.", + "description": "List a datacenter.", "tags": [ "default" ], - "summary": "patch cluster", + "summary": "get datacenter", "parameters": [ { - "type": "integer", - "description": "cluster id", - "name": "cluster", + "type": "string", + "description": "DataCenter ID", + "name": "datacenter", "in": "path", "required": true - }, - { - "description": "data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateClusterRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateClusterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/cluster/{cluster}/datastore/{datastore}": { - "delete": { + "/v2/cloud/datastore": { + "get": { "security": [ { "Token": [] } ], - "description": "Deletes a datastore from a cluster.", + "description": "Lists all datastores.", "tags": [ "default" ], - "summary": "delete cluster datastore", - "parameters": [ - { - "type": "integer", - "description": "cluster id", - "name": "cluster", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "datastore id", - "name": "datastore", - "in": "path", - "required": true - } - ], + "summary": "list datastores", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoresResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v2/cloud/datastore/{datastore}": { + "get": { "security": [ { "Token": [] } ], - "description": "Adds a datastore to a cluster.", + "description": "Lists a datastores.", "tags": [ "default" ], - "summary": "add cluster datastore", + "summary": "list datastore", "parameters": [ { "type": "integer", - "description": "cluster id", - "name": "cluster", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "datastore id", + "description": "Datastore ID", "name": "datastore", "in": "path", "required": true @@ -765,315 +727,299 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddClusterDatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoreResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/cluster/{cluster}/host/{host}": { - "delete": { + "/v2/cloud/datastore/{datastore}/enable": { + "patch": { "security": [ { "Token": [] } ], - "description": "Deletes a host from a cluster.", + "description": "Enables a datastore.", "tags": [ "default" ], - "summary": "delete cluster host", + "summary": "enable datastore", "parameters": [ { "type": "integer", - "description": "cluster id", - "name": "cluster", + "description": "datastore id", + "name": "datastore", "in": "path", "required": true }, { - "type": "integer", - "description": "host id", - "name": "host", - "in": "path", - "required": true + "description": "Datastore ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableDatastoreRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableDatastoreResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v2/cloud/document": { + "post": { "security": [ { "Token": [] } ], - "description": "Adds a host to a cluster.", + "description": "allocate a document", "tags": [ "default" ], - "summary": "add cluster host", + "summary": "post a document", "parameters": [ { - "type": "integer", - "description": "cluster id", - "name": "cluster", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "host id", - "name": "host", - "in": "path", - "required": true + "description": "Document Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AllocateDocumentRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddClusterHostResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AllocateDocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/cluster/{cluster}/name": { - "patch": { + "/v2/cloud/document/{document}": { + "get": { "security": [ { "Token": [] } ], - "description": "Renames a cluster.", + "description": "Get a document.", "tags": [ "default" ], - "summary": "rename cluster", + "summary": "get document", "parameters": [ { "type": "integer", - "description": "cluster id", - "name": "cluster", + "description": "Document", + "name": "document", "in": "path", "required": true - }, - { - "description": "data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameClusterRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameClusterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/cluster/{cluster}/network/{network}": { + }, "delete": { "security": [ { "Token": [] } ], - "description": "Deletes a vnet from a cluster.", + "description": "delete a document", "tags": [ "default" ], - "summary": "delete cluster vnet", + "summary": "delete a document", "parameters": [ { "type": "integer", - "description": "cluster id", - "name": "cluster", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "vnet id", - "name": "network", + "description": "Document", + "name": "document", "in": "path", "required": true } @@ -1085,43 +1031,43 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -1132,225 +1078,272 @@ "Token": [] } ], - "description": "Adds a vnet to a cluster.", + "description": "Update a document.", "tags": [ "default" ], - "summary": "add cluster vnet", + "summary": "update a document", "parameters": [ { "type": "integer", - "description": "cluster id", - "name": "cluster", + "description": "document id", + "name": "document", "in": "path", "required": true }, { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true + "description": "Document Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDocumentRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddClusterNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/compute": { - "get": { + "/v2/cloud/document/{document}/clone": { + "post": { "security": [ { "Token": [] } ], - "description": "Get computes.", + "description": "Clone a document.", "tags": [ "default" ], - "summary": "get computes", + "summary": "post a clone", + "parameters": [ + { + "type": "integer", + "description": "Document", + "name": "document", + "in": "path", + "required": true + }, + { + "description": "Document", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneDocumentRequest" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneDocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datacenter": { - "get": { + "/v2/cloud/document/{document}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "List all datacenters.", + "description": "Lock a document.", "tags": [ "default" ], - "summary": "get datacenters", + "summary": "lock document", + "parameters": [ + { + "type": "integer", + "description": "document id", + "name": "document", + "in": "path", + "required": true + }, + { + "description": "Document Lock", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockDocumentRequest" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DataCentersResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockDocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v2/cloud/document/{document}/name": { + "patch": { "security": [ { "Token": [] } ], - "description": "Create a datacenter.", + "description": "Rename a document.", "tags": [ "default" ], - "summary": "post datacenter", + "summary": "patch name", "parameters": [ { - "description": "DataCenter Template", + "type": "integer", + "description": "document id", + "name": "document", + "in": "path", + "required": true + }, + { + "description": "Document", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateDataCenterRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameDocumentRequest" } } ], @@ -1358,457 +1351,445 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateDataCenterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameDocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datacenter/{datacenter}": { - "get": { + "/v2/cloud/document/{document}/ownership": { + "patch": { "security": [ { "Token": [] } ], - "description": "List a datacenter.", + "description": "Change ownership on a document.", "tags": [ "default" ], - "summary": "get datacenter", + "summary": "patch ownership", "parameters": [ { - "type": "string", - "description": "DataCenter ID", - "name": "datacenter", + "type": "integer", + "description": "document id", + "name": "document", "in": "path", "required": true + }, + { + "description": "Document Ownership", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentOwnershipRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v2/cloud/document/{document}/permissions": { + "patch": { "security": [ { "Token": [] } ], - "description": "Delete a datacenter.", + "description": "Change permissions on a document.", "tags": [ "default" ], - "summary": "delete datacenter", + "summary": "patch persmissions", "parameters": [ { - "type": "string", - "description": "DataCenter ID", - "name": "datacenter", + "type": "integer", + "description": "document id", + "name": "document", "in": "path", "required": true + }, + { + "description": "Document Permissions", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentPermissionsRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentPermissionsResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v2/cloud/document/{document}/unlock": { "patch": { "security": [ { "Token": [] } ], - "description": "Update a datacenter.", + "description": "Unlock a document.", "tags": [ "default" ], - "summary": "update datacenter", + "summary": "unlock document", "parameters": [ { "type": "integer", - "description": "datacenter id", - "name": "datacenter", + "description": "document id", + "name": "document", "in": "path", "required": true - }, - { - "description": "DataCenter Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDataCenterRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDataCenterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockDocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datacenter/{datacenter}/group/{group}": { - "delete": { + "/v2/cloud/documents": { + "get": { "security": [ { "Token": [] } ], - "description": "Remove a datacenter group.", + "description": "List all documents.", "tags": [ "default" ], - "summary": "remove datacenter group", + "summary": "list documents", "parameters": [ { - "type": "integer", - "description": "DataCenter ID", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Group ID", - "name": "group", - "in": "path", - "required": true + "type": "string", + "description": "Document Type", + "name": "type", + "in": "query" } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DocumentsResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v2/cloud/group": { + "get": { "security": [ { "Token": [] } ], - "description": "Add a datacenter group.", + "description": "List all groups.", "tags": [ "default" ], - "summary": "add datacenter group", - "parameters": [ - { - "type": "integer", - "description": "datacenter id", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "group id", - "name": "group", - "in": "path", - "required": true - } - ], + "summary": "list groups", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddDataCenterGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.GroupsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/datacenter/{datacenter}/name": { - "patch": { + }, + "post": { "security": [ { "Token": [] } ], - "description": "Rename a datacenter.", + "description": "Allocates a new group.", "tags": [ "default" ], - "summary": "rename datacenter", + "summary": "post group", "parameters": [ { - "type": "integer", - "description": "datacenter id", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "description": "DataCenter Name", + "description": "Group", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameDataCenterRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateGroupRequest" } } ], @@ -1816,133 +1797,113 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameDataCenterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datacenter/{datacenter}/zone/{zone}/cluster/{cluster}": { - "delete": { + "/v2/cloud/group/quota": { + "get": { "security": [ { "Token": [] } ], - "description": "Remove a datacenter cluster.", + "description": "Returns the default group quota limits.", "tags": [ "default" ], - "summary": "remove datacenter cluster", - "parameters": [ - { - "type": "integer", - "description": "DataCenter ID", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Zone ID", - "name": "zone", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Cluster ID", - "name": "cluster", - "in": "path", - "required": true - } - ], + "summary": "return the default group quota", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.GroupQuotaResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -1953,455 +1914,401 @@ "Token": [] } ], - "description": "Add a datacenter cluster.", + "description": "Updates the default group quota limits.", "tags": [ "default" ], - "summary": "add datacenter cluster", + "summary": "updates the default group quota limits", "parameters": [ { - "type": "integer", - "description": "datacenter id", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "zone id", - "name": "zone", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "cluster id", - "name": "cluster", - "in": "path", - "required": true + "description": "quota", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupQuotaRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddDataCenterClusterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupQuotaResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datacenter/{datacenter}/zone/{zone}/datastore/{datastore}": { - "delete": { + "/v2/cloud/group/{group}": { + "get": { "security": [ { "Token": [] } ], - "description": "Remove a datacenter datastore.", + "description": "Returns group info.", "tags": [ "default" ], - "summary": "remove datacenter datastore", + "summary": "get group info", "parameters": [ { "type": "integer", - "description": "DataCenter ID", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Zone ID", - "name": "zone", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Datastore ID", - "name": "datastore", + "description": "Group ID", + "name": "group", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.GroupResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "patch": { + "delete": { "security": [ { "Token": [] } ], - "description": "Add a datacenter datastore.", + "description": "Deletes a group.", "tags": [ "default" ], - "summary": "add datacenter datastore", + "summary": "delete group", "parameters": [ { "type": "integer", - "description": "datacenter id", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "zone id", - "name": "zone", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "datastore id", - "name": "datastore", + "description": "Group ID", + "name": "group", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddDataCenterDatastoreResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/datacenter/{datacenter}/zone/{zone}/host/{host}": { - "delete": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Remove a datacenter host.", + "description": "Udates the group", "tags": [ "default" ], - "summary": "remove datacenter host", + "summary": "patch group", "parameters": [ { "type": "integer", - "description": "DataCenter ID", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Zone ID", - "name": "zone", + "description": "group id", + "name": "group", "in": "path", "required": true }, { - "type": "integer", - "description": "Host ID", - "name": "host", - "in": "path", - "required": true + "description": "Group", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v2/cloud/group/{group}/admin": { "patch": { "security": [ { "Token": [] } ], - "description": "Add a datacenter host.", + "description": "Adds a User to the Group administrators set", "tags": [ "default" ], - "summary": "add datacenter host", + "summary": "add group admin", "parameters": [ { "type": "integer", - "description": "datacenter id", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "zone id", - "name": "zone", + "description": "Group ID", + "name": "group", "in": "path", "required": true }, { - "type": "integer", - "description": "host id", - "name": "host", - "in": "path", - "required": true + "description": "Group Admin", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddGroupAdminRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddDataCenterHostResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddGroupAdminResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datacenter/{datacenter}/zone/{zone}/network/{network}": { + "/v2/cloud/group/{group}/admin/{user}": { "delete": { "security": [ { "Token": [] } ], - "description": "Remove a datacenter network.", + "description": "Remove an User from the administrators set", "tags": [ "default" ], - "summary": "remove datacenter network", + "summary": "remove group admin", "parameters": [ { "type": "integer", - "description": "DataCenter ID", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Zone ID", - "name": "zone", + "description": "Group ID", + "name": "group", "in": "path", "required": true }, { "type": "integer", - "description": "Network ID", - "name": "network", + "description": "User ID", + "name": "user", "in": "path", "required": true } @@ -2413,192 +2320,197 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v2/cloud/group/{group}/quota": { + "post": { "security": [ { "Token": [] } ], - "description": "Add a datacenter network.", + "description": "Set quota for the group.", "tags": [ "default" ], - "summary": "add datacenter network", + "summary": "set quota", "parameters": [ { "type": "integer", - "description": "datacenter id", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "zone id", - "name": "zone", + "description": "Group ID", + "name": "group", "in": "path", "required": true }, { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true + "description": "Group quota", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetGroupQuotaRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddDataCenterNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetGroupQuotaResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datastore": { + "/v2/cloud/hook": { "get": { "security": [ { "Token": [] } ], - "description": "Lists all datastores.", + "description": "List hooks.", "tags": [ "default" ], - "summary": "list datastores", + "summary": "list hooks", + "parameters": [ + { + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoresResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HooksResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -2609,19 +2521,19 @@ "Token": [] } ], - "description": "Allocates a new datastore.", + "description": "Create a new hook.", "tags": [ "default" ], - "summary": "post datastore", + "summary": "post hook", "parameters": [ { - "description": "Datastore", + "description": "Host Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateDatastoreRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHookRequest" } } ], @@ -2629,71 +2541,71 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateDatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datastore/{datastore}": { + "/v2/cloud/hook/{hook}": { "get": { "security": [ { "Token": [] } ], - "description": "Lists a datastores.", + "description": "List a hook.", "tags": [ "default" ], - "summary": "list datastore", + "summary": "get a hook", "parameters": [ { "type": "integer", - "description": "Datastore ID", - "name": "datastore", + "description": "Hook ID", + "name": "hook", "in": "path", "required": true } @@ -2702,49 +2614,49 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -2755,16 +2667,16 @@ "Token": [] } ], - "description": "Deletes a datastore.", + "description": "Delete a hook.", "tags": [ "default" ], - "summary": "delete datastore", + "summary": "delete hook", "parameters": [ { "type": "integer", - "description": "Datastore ID", - "name": "datastore", + "description": "Hook ID", + "name": "hook", "in": "path", "required": true } @@ -2776,43 +2688,43 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -2823,26 +2735,26 @@ "Token": [] } ], - "description": "Updates a datastore.", + "description": "Update a hook.", "tags": [ "default" ], - "summary": "patch datastore", + "summary": "update hook", "parameters": [ { "type": "integer", - "description": "datastore id", - "name": "datastore", + "description": "hook id", + "name": "hook", "in": "path", "required": true }, { - "description": "Datastore", + "description": "Hook Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDatastoreRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateHookRequest" } } ], @@ -2850,81 +2762,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datastore/{datastore}/enable": { + "/v2/cloud/hook/{hook}/lock": { "patch": { "security": [ { "Token": [] } ], - "description": "Enables a datastore.", + "description": "Lock a hook.", "tags": [ "default" ], - "summary": "enable datastore", + "summary": "lock a hook", "parameters": [ { "type": "integer", - "description": "datastore id", - "name": "datastore", + "description": "hook id", + "name": "hook", "in": "path", "required": true }, { - "description": "Datastore ID", + "description": "Lock Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableDatastoreRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockHookRequest" } } ], @@ -2932,163 +2844,168 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableDatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datastore/{datastore}/name": { - "patch": { + "/v2/cloud/hook/{hook}/log": { + "get": { "security": [ { "Token": [] } ], - "description": "Renames a datastore.", + "description": "List hook logs.", "tags": [ "default" ], - "summary": "rename datastore", + "summary": "list hook logs", "parameters": [ { "type": "integer", - "description": "datastore id", - "name": "datastore", + "description": "Hook ID", + "name": "hook", "in": "path", "required": true }, { - "description": "name", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameDatastoreRequest" - } + "type": "string", + "description": "Minimum Date", + "name": "min", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Maximum Date", + "name": "max", + "in": "query", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameDatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookLogResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datastore/{datastore}/ownership": { + "/v2/cloud/hook/{hook}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the ownership of a datastore.", + "description": "Rename a hook.", "tags": [ "default" ], - "summary": "change datastore ownership", + "summary": "patch hook name", "parameters": [ { "type": "integer", - "description": "datastore id", - "name": "datastore", + "description": "hook id", + "name": "hook", "in": "path", "required": true }, { - "description": "ownership", + "description": "Hook Name", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDatastoreOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameHookRequest" } } ], @@ -3096,81 +3013,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDatastoreOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/datastore/{datastore}/permissions": { + "/v2/cloud/hook/{hook}/retry": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the permissions of a datastore.", + "description": "Retry a hook.", "tags": [ "default" ], - "summary": "change datastore permissions", + "summary": "retry a hook", "parameters": [ { "type": "integer", - "description": "datastore id", - "name": "datastore", + "description": "hook id", + "name": "hook", "in": "path", "required": true }, { - "description": "permissions", + "description": "Retry Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDatastorePermissionsRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RetryHookRequest" } } ], @@ -3178,74 +3095,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDatastorePermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RetryHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/document": { - "post": { + "/v2/cloud/hook/{hook}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "allocate a document", + "description": "Unlock a hook.", "tags": [ "default" ], - "summary": "post a allocate", + "summary": "unlock a hook", "parameters": [ { - "description": "Document Template", + "type": "integer", + "description": "hook id", + "name": "hook", + "in": "path", + "required": true + }, + { + "description": "Unlock Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AllocateDocumentRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockHookRequest" } } ], @@ -3253,302 +3177,363 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AllocateDocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/document/{document}": { + "/v2/cloud/host/monitoring": { "get": { "security": [ { "Token": [] } ], - "description": "Get a document.", + "description": "Get a compute host's monitoring data.", "tags": [ "default" ], - "summary": "get document", + "summary": "get computes monitoring", "parameters": [ { "type": "integer", - "description": "Document", - "name": "document", - "in": "path", - "required": true + "default": -1, + "description": "Seconds", + "name": "seconds", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostsMonitoringResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v2/cloud/host/{host}": { + "get": { "security": [ { "Token": [] } ], - "description": "delete a document", + "description": "Get a compute host.", "tags": [ "default" ], - "summary": "delete a document", + "summary": "get compute", "parameters": [ { "type": "integer", - "description": "Document", - "name": "document", + "description": "Host ID", + "name": "host", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v2/cloud/host/{host}/monitoring": { + "get": { "security": [ { "Token": [] } ], - "description": "Update a document.", + "description": "Get a compute host's monitoring data.", "tags": [ "default" ], - "summary": "update a document", + "summary": "get compute monitoring", "parameters": [ { "type": "integer", - "description": "document id", - "name": "document", + "description": "Host ID", + "name": "host", "in": "path", "required": true - }, - { - "description": "Document Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDocumentRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoringResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/document/{document}/clone": { - "post": { + "/v2/cloud/image": { + "get": { "security": [ { "Token": [] } ], - "description": "Clone a document.", + "description": "List images.", "tags": [ "default" ], - "summary": "post a clone", + "summary": "list images", "parameters": [ { - "type": "integer", - "description": "Document", - "name": "document", - "in": "path", - "required": true + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ImagesResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + }, + "post": { + "security": [ { - "description": "Document", + "Token": [] + } + ], + "description": "Create a new image.", + "tags": [ + "default" + ], + "summary": "post image", + "parameters": [ + { + "description": "Image Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneDocumentRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateImageRequest" } } ], @@ -3556,245 +3541,226 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneDocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/document/{document}/lock": { - "patch": { + "/v2/cloud/image/{image}": { + "get": { "security": [ { "Token": [] } ], - "description": "Lock a document.", + "description": "List image.", "tags": [ "default" ], - "summary": "lock document", + "summary": "list image", "parameters": [ + { + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" + }, { "type": "integer", - "description": "document id", - "name": "document", + "description": "Image ID", + "name": "image", "in": "path", "required": true - }, - { - "description": "Document Locl", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockDocumentRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockDocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/document/{document}/name": { - "patch": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Rename a document.", + "description": "Delete an image.", "tags": [ "default" ], - "summary": "patch name", + "summary": "delete image", "parameters": [ { - "type": "integer", - "description": "document id", - "name": "document", + "type": "string", + "description": "Image ID", + "name": "image", "in": "path", "required": true - }, - { - "description": "Document", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameDocumentRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameDocumentResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/document/{document}/ownership": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Change ownership on a document.", + "description": "Update an image.", "tags": [ "default" ], - "summary": "patch ownership", + "summary": "update image", "parameters": [ { "type": "integer", - "description": "document id", - "name": "document", + "description": "image id", + "name": "image", "in": "path", "required": true }, { - "description": "Document Ownership", + "description": "Image", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateImageRequest" } } ], @@ -3802,81 +3768,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/document/{document}/permissions": { - "patch": { + "/v2/cloud/image/{image}/clone": { + "post": { "security": [ { "Token": [] } ], - "description": "Change permissions on a document.", + "description": "Clone an image.", "tags": [ "default" ], - "summary": "patch persmissions", + "summary": "clone image", "parameters": [ { - "type": "integer", - "description": "document id", - "name": "document", + "type": "string", + "description": "Image ID", + "name": "image", "in": "path", "required": true }, { - "description": "Document Permissions", + "description": "Image", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentPermissionsRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneImageRequest" } } ], @@ -3884,281 +3850,245 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentPermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/document/{document}/unlock": { + "/v2/cloud/image/{image}/enable": { "patch": { "security": [ { "Token": [] } ], - "description": "Unlock a document.", + "description": "Enable an image.", "tags": [ "default" ], - "summary": "unlock document", + "summary": "enable image", "parameters": [ { "type": "integer", - "description": "document id", - "name": "document", + "description": "image id", + "name": "image", "in": "path", "required": true + }, + { + "description": "Image", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableImageRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockDocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/documents": { - "get": { + "/v2/cloud/image/{image}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "List all documents.", + "description": "Lock an image.", "tags": [ "default" ], - "summary": "list documents", + "summary": "lock image", "parameters": [ { - "type": "string", - "description": "Document Type", - "name": "type", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DocumentsResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + "type": "integer", + "description": "image id", + "name": "image", + "in": "path", + "required": true }, - "503": { - "description": "Service Unavailable", + { + "description": "Image", + "name": "data", + "in": "body", + "required": true, "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockImageRequest" } } - } - } - }, - "/v2/cloud/group": { - "get": { - "security": [ - { - "Token": [] - } ], - "description": "List all groups.", - "tags": [ - "default" - ], - "summary": "list groups", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.GroupsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v2/cloud/image/{image}/name": { + "patch": { "security": [ { "Token": [] } ], - "description": "Allocates a new group.", + "description": "Rename an image.", "tags": [ "default" ], - "summary": "post group", + "summary": "rename image", "parameters": [ { - "description": "Group", + "type": "integer", + "description": "image id", + "name": "image", + "in": "path", + "required": true + }, + { + "description": "Image", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameImageRequest" } } ], @@ -4166,136 +4096,163 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/group/quota": { - "get": { + "/v2/cloud/image/{image}/ownership": { + "patch": { "security": [ { "Token": [] } ], - "description": "Returns the default group quota limits.", + "description": "Change image ownership.", "tags": [ "default" ], - "summary": "return the default group quota", + "summary": "change image ownership", + "parameters": [ + { + "type": "integer", + "description": "image id", + "name": "image", + "in": "path", + "required": true + }, + { + "description": "Image", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageOwnershipRequest" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.GroupQuotaResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v2/cloud/image/{image}/permissions": { "patch": { "security": [ { "Token": [] } ], - "description": "Updates the default group quota limits.", + "description": "Change image permissions.", "tags": [ "default" ], - "summary": "updates the default group quota limits", + "summary": "change image permissions", "parameters": [ { - "description": "quota", + "type": "integer", + "description": "image id", + "name": "image", + "in": "path", + "required": true + }, + { + "description": "Image", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupQuotaRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImagePermissionsRequest" } } ], @@ -4303,142 +4260,160 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupQuotaResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImagePermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/group/{group}": { - "get": { + "/v2/cloud/image/{image}/persistent": { + "patch": { "security": [ { "Token": [] } ], - "description": "Returns group info.", + "description": "Set image persistent.", "tags": [ "default" ], - "summary": "get group info", + "summary": "set image persistent", "parameters": [ { "type": "integer", - "description": "Group ID", - "name": "group", + "description": "image id", + "name": "image", "in": "path", "required": true + }, + { + "description": "Image", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetImagePersistentRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.GroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetImagePersistentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v2/cloud/image/{image}/snapshot/{snapshot}": { "delete": { "security": [ { "Token": [] } ], - "description": "Deletes a group.", + "description": "Delete an image snapshot.", "tags": [ "default" ], - "summary": "delete group", + "summary": "delete image snapshot", "parameters": [ { - "type": "integer", - "description": "Group ID", - "name": "group", + "type": "string", + "description": "Image ID", + "name": "image", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Snapshot ID", + "name": "snapshot", "in": "path", "required": true } @@ -4450,386 +4425,392 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v2/cloud/image/{image}/snapshot/{snapshot}/flatten": { "patch": { "security": [ { "Token": [] } ], - "description": "Udates the group", + "description": "Flatten an image snapshot.", "tags": [ "default" ], - "summary": "patch group", + "summary": "flatten image snapshot", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "image id", + "name": "image", "in": "path", "required": true }, { - "description": "Group", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupRequest" - } + "type": "integer", + "description": "snapshot id", + "name": "snapshot", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.FlattenImageSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/group/{group}/admin": { + "/v2/cloud/image/{image}/snapshot/{snapshot}/revert": { "patch": { "security": [ { "Token": [] } ], - "description": "Adds a User to the Group administrators set", + "description": "Revert an image snapshot.", "tags": [ "default" ], - "summary": "add group admin", + "summary": "revert image snapshot", "parameters": [ { "type": "integer", - "description": "Group ID", - "name": "group", + "description": "image id", + "name": "image", "in": "path", "required": true }, { - "description": "Group Admin", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddGroupAdminRequest" - } + "type": "integer", + "description": "snapshot id", + "name": "snapshot", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddGroupAdminResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RevertImageSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/group/{group}/admin/{user}": { - "delete": { + "/v2/cloud/image/{image}/type": { + "patch": { "security": [ { "Token": [] } ], - "description": "Remove an User from the administrators set", + "description": "Change image type.", "tags": [ "default" ], - "summary": "remove group admin", + "summary": "change image type", "parameters": [ { "type": "integer", - "description": "Group ID", - "name": "group", + "description": "image id", + "name": "image", "in": "path", "required": true }, { - "type": "integer", - "description": "User ID", - "name": "user", - "in": "path", - "required": true + "description": "Image", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageTypeRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageTypeResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/group/{group}/quota": { - "post": { + "/v2/cloud/image/{image}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Set quota for the group.", + "description": "Unlock an image.", "tags": [ "default" ], - "summary": "set quota", + "summary": "unlock image", "parameters": [ { "type": "integer", - "description": "Group ID", - "name": "group", + "description": "image id", + "name": "image", "in": "path", "required": true - }, - { - "description": "Group quota", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetGroupQuotaRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetGroupQuotaResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/hook": { + "/v2/cloud/instance": { "get": { "security": [ { "Token": [] } ], - "description": "List hooks.", + "description": "Returns a list of instances.", "tags": [ "default" ], - "summary": "list hooks", + "summary": "get instance list", "parameters": [ { "type": "string", - "description": "Filter", - "name": "filter", + "description": "Comma separated list of instance IDs", + "name": "instance", + "in": "query" + }, + { + "type": "string", + "description": "State of instances to return", + "name": "state", + "in": "query" + }, + { + "type": "boolean", + "description": "Return extended information", + "name": "extended", "in": "query" } ], @@ -4837,49 +4818,49 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HooksResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -4890,19 +4871,19 @@ "Token": [] } ], - "description": "Create a new hook.", + "description": "Allocates a new instance.", "tags": [ "default" ], - "summary": "post hook", + "summary": "post an instance", "parameters": [ { - "description": "Host Template", + "description": "Instance Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHookRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceRequest" } } ], @@ -4910,471 +4891,352 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/hook/{hook}": { + "/v2/cloud/instance-group": { "get": { "security": [ { "Token": [] } ], - "description": "List a hook.", + "description": "Get a list of instance groups.", "tags": [ "default" ], - "summary": "get a hook", - "parameters": [ - { - "type": "integer", - "description": "Hook ID", - "name": "hook", - "in": "path", - "required": true - } - ], + "summary": "get instance groups", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroupsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Delete a hook.", - "tags": [ - "default" - ], - "summary": "delete hook", - "parameters": [ - { - "type": "integer", - "description": "Hook ID", - "name": "hook", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } - } - }, - "patch": { + "post": { "security": [ { "Token": [] } ], - "description": "Update a hook.", + "description": "Create an instance group.", "tags": [ "default" ], - "summary": "update hook", - "parameters": [ - { - "type": "integer", - "description": "hook id", - "name": "hook", - "in": "path", - "required": true - }, - { - "description": "Hook Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateHookRequest" - } - } - ], + "summary": "post instance group", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateHookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceGroupRequest" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/hook/{hook}/lock": { - "patch": { + "/v2/cloud/instance-group/{group}": { + "get": { "security": [ { "Token": [] } ], - "description": "Lock a hook.", + "description": "Get an instance group.", "tags": [ "default" ], - "summary": "lock a hook", + "summary": "get instance group", "parameters": [ + { + "type": "boolean", + "description": "decrypt", + "name": "decrypt", + "in": "query" + }, { "type": "integer", - "description": "hook id", - "name": "hook", + "description": "vmgroup id", + "name": "group", "in": "path", "required": true - }, - { - "description": "Lock Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockHookRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockHookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/hook/{hook}/log": { - "get": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "List hook logs.", + "description": "Delete an instance group.", "tags": [ "default" ], - "summary": "list hook logs", + "summary": "delete instance group", "parameters": [ { "type": "integer", - "description": "Hook ID", - "name": "hook", + "description": "Instance Group ID", + "name": "group", "in": "path", "required": true - }, - { - "type": "string", - "description": "Minimum Date", - "name": "min", - "in": "query", - "required": true - }, - { - "type": "string", - "description": "Maximum Date", - "name": "max", - "in": "query", - "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookLogResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/hook/{hook}/name": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Rename a hook.", + "description": "Update an instance group.", "tags": [ "default" ], - "summary": "patch hook name", + "summary": "patch instance group", "parameters": [ { "type": "integer", - "description": "hook id", - "name": "hook", + "description": "group id", + "name": "group", "in": "path", "required": true }, { - "description": "Hook Name", + "description": "Instance Group Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameHookRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceGroupRequest" } } ], @@ -5382,81 +5244,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameHookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/hook/{hook}/retry": { + "/v2/cloud/instance-group/{group}/lock": { "patch": { "security": [ { "Token": [] } ], - "description": "Retry a hook.", + "description": "Lock an instance group.", "tags": [ "default" ], - "summary": "retry a hook", + "summary": "lock instance group", "parameters": [ { "type": "integer", - "description": "hook id", - "name": "hook", + "description": "group id", + "name": "group", "in": "path", "required": true }, { - "description": "Retry Data", + "description": "VMGroup Lock", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RetryHookRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceGroupRequest" } } ], @@ -5464,81 +5326,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RetryHookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/hook/{hook}/unlock": { + "/v2/cloud/instance-group/{group}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Unlock a hook.", + "description": "Rename an instance group.", "tags": [ "default" ], - "summary": "unlock a hook", + "summary": "patch instance group name", "parameters": [ { "type": "integer", - "description": "hook id", - "name": "hook", + "description": "group id", + "name": "group", "in": "path", "required": true }, { - "description": "Unlock Data", + "description": "Instance Group Name", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockHookRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceGroupRequest" } } ], @@ -5546,74 +5408,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockHookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/host": { - "post": { + "/v2/cloud/instance-group/{group}/ownership": { + "patch": { "security": [ { "Token": [] } ], - "description": "create a compute host.", + "description": "Change the ownership of an instance group.", "tags": [ "default" ], - "summary": "post compute", + "summary": "patch instance group ownership", "parameters": [ { - "description": "Host Template", + "type": "integer", + "description": "group id", + "name": "group", + "in": "path", + "required": true + }, + { + "description": "Instance Group Ownership", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHostRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupOwnershipRequest" } } ], @@ -5621,144 +5490,153 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHostResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/host/monitoring": { - "get": { + "/v2/cloud/instance-group/{group}/permissions": { + "patch": { "security": [ { "Token": [] } ], - "description": "Get a compute host's monitoring data.", + "description": "Change the permissions of an instance group.", "tags": [ "default" ], - "summary": "get computes monitoring", + "summary": "patch instance group permissions", "parameters": [ { "type": "integer", - "default": -1, - "description": "Seconds", - "name": "seconds", - "in": "query" + "description": "group id", + "name": "group", + "in": "path", + "required": true + }, + { + "description": "Instance Group Permissions", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupPermissionsRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostsMonitoringResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupPermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/host/{host}": { - "get": { + "/v2/cloud/instance-group/{group}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Get a compute host.", + "description": "Unlock an instance group.", "tags": [ "default" ], - "summary": "get compute", + "summary": "unlock instance group", "parameters": [ { "type": "integer", - "description": "Host ID", - "name": "host", + "description": "group id", + "name": "group", "in": "path", "required": true } @@ -5767,456 +5645,406 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockInstanceGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v2/cloud/instance/accounting": { + "get": { "security": [ { "Token": [] } ], - "description": "delete a compute host.", + "description": "Returns a list of instances with accounting information.", "tags": [ "default" ], - "summary": "delete compute", + "summary": "get instance accounting list", "parameters": [ { - "type": "integer", - "description": "Host ID", - "name": "host", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } - } - }, - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Update a compute host.", - "tags": [ - "default" - ], - "summary": "patch compute", - "parameters": [ { "type": "integer", - "description": "host id", - "name": "host", - "in": "path", - "required": true + "description": "Start time", + "name": "start", + "in": "query" }, { - "description": "Host Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateHostRequest" - } + "type": "integer", + "description": "End time", + "name": "end", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateHostResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesAccountingResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/host/{host}/monitoring": { + "/v2/cloud/instance/monitoring": { "get": { "security": [ { "Token": [] } ], - "description": "Get a compute host's monitoring data.", + "description": "Returns a list of instances with monitoring information.", "tags": [ "default" ], - "summary": "get compute monitoring", + "summary": "get instance monitoring list", "parameters": [ + { + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" + }, { "type": "integer", - "description": "Host ID", - "name": "host", - "in": "path", - "required": true + "description": "Get monitoring information for the last N seconds", + "name": "seconds", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoringResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesMonitoringResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/host/{host}/name": { - "patch": { + "/v2/cloud/instance/showback": { + "get": { "security": [ { "Token": [] } ], - "description": "Rename a compute host.", + "description": "Returns a list of instances showback information.", "tags": [ "default" ], - "summary": "patch name", + "summary": "get instance showback list", "parameters": [ { - "type": "integer", - "description": "host id", - "name": "host", - "in": "path", - "required": true + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" }, { - "description": "Host Name", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameHostRequest" - } + "type": "string", + "description": "Starting Month", + "name": "month-start", + "in": "query" + }, + { + "type": "string", + "description": "Ending Month", + "name": "month-end", + "in": "query" + }, + { + "type": "string", + "description": "Starting Year", + "name": "year-start", + "in": "query" + }, + { + "type": "string", + "description": "Ending Year", + "name": "year-end", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameHostResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesShowbackResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/host/{host}/status": { - "patch": { + }, + "post": { "security": [ { "Token": [] } ], - "description": "Set compute status.", + "description": "Calculates the showback for the time period.", "tags": [ "default" ], - "summary": "patch status", + "summary": "post instance showback", "parameters": [ { - "type": "integer", - "description": "host id", - "name": "host", - "in": "path", - "required": true - }, - { - "description": "Host Status", + "description": "Time Period", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetHostStatusRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CalculateInstancesShowbackRequest" } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetHostStatusResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image": { + "/v2/cloud/instance/{instance}": { "get": { "security": [ { "Token": [] } ], - "description": "List images.", + "description": "Retrieves information for a given instance.", "tags": [ "default" ], - "summary": "list images", + "summary": "get an instance", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", + "type": "integer", + "description": "Instance ID", + "name": "instance", + "in": "path", + "required": true + }, + { + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", "in": "query" } ], @@ -6224,72 +6052,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ImagesResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v2/cloud/instance/{instance}/action": { + "patch": { "security": [ { "Token": [] } ], - "description": "Create a new image.", + "description": "Submits an action to be performed on an instance.", "tags": [ "default" ], - "summary": "post image", + "summary": "patch an instance action", "parameters": [ { - "description": "Image Template", + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true + }, + { + "description": "Instance Action", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetInstanceActionRequest" } } ], @@ -6297,226 +6134,163 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetInstanceActionResponse" } }, "400": { - "description": "Bad Request", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "Internal Server Error", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}": { - "get": { + "/v2/cloud/instance/{instance}/config": { + "patch": { "security": [ { "Token": [] } ], - "description": "List image.", + "description": "Updates (appends) a set of supported configuration attributes in the instance template.", "tags": [ "default" ], - "summary": "list image", + "summary": "patch instance config", "parameters": [ - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, { "type": "integer", - "description": "Image ID", - "name": "image", + "description": "instance id", + "name": "instance", "in": "path", "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ImageResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", + { + "description": "Config Data", + "name": "data", + "in": "body", + "required": true, "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceConfigRequest" } } - } - }, - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Delete an image.", - "tags": [ - "default" - ], - "summary": "delete image", - "parameters": [ - { - "type": "string", - "description": "Image ID", - "name": "image", - "in": "path", - "required": true - } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceConfigResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v2/cloud/instance/{instance}/deploy": { "patch": { "security": [ { "Token": [] } ], - "description": "Update an image.", + "description": "Deploys the instance of the given id on the target host.", "tags": [ "default" ], - "summary": "update image", + "summary": "patch an instance deployment", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Image", + "description": "Instance Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DeployInstanceRequest" } } ], @@ -6524,81 +6298,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DeployInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/clone": { + "/v2/cloud/instance/{instance}/disk": { "post": { "security": [ { "Token": [] } ], - "description": "Clone an image.", + "description": "Attaches a new disk for the instance.", "tags": [ "default" ], - "summary": "clone image", + "summary": "post an instance disk", "parameters": [ { - "type": "string", - "description": "Image ID", - "name": "image", + "type": "integer", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Image", + "description": "Disk Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskRequest" } } ], @@ -6606,163 +6380,165 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/enable": { - "patch": { + "/v2/cloud/instance/{instance}/disk/{disk}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Enable an image.", + "description": "Detaches a disk from the instance.", "tags": [ "default" ], - "summary": "enable image", + "summary": "delete instance disk", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "Image", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableImageRequest" - } + "type": "integer", + "description": "Disk ID", + "name": "disk", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableImageResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/lock": { - "patch": { + "/v2/cloud/instance/{instance}/disk/{disk}/image": { + "post": { "security": [ { "Token": [] } ], - "description": "Lock an image.", + "description": "Sets the disk to be saved in the given image.", "tags": [ "default" ], - "summary": "lock image", + "summary": "post an instance disk image", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "Image", + "type": "integer", + "description": "Disk ID", + "name": "disk", + "in": "path", + "required": true + }, + { + "description": "Disk Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskImageRequest" } } ], @@ -6770,81 +6546,88 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskImageResponse" } }, "400": { - "description": "Bad Request", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "Internal Server Error", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/name": { + "/v2/cloud/instance/{instance}/disk/{disk}/size": { "patch": { "security": [ { "Token": [] } ], - "description": "Rename an image.", + "description": "Resizes a disk for an instance.", "tags": [ "default" ], - "summary": "rename image", + "summary": "patch instance disk size", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Image", + "type": "integer", + "description": "disk id", + "name": "disk", + "in": "path", + "required": true + }, + { + "description": "Disk Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceDiskRequest" } } ], @@ -6852,81 +6635,88 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceDiskResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/ownership": { - "patch": { + "/v2/cloud/instance/{instance}/disk/{disk}/snapshot": { + "post": { "security": [ { "Token": [] } ], - "description": "Change image ownership.", + "description": "Takes a snapshot of the disk image.", "tags": [ "default" ], - "summary": "change image ownership", + "summary": "post an instance disk snapshot", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "Image", + "type": "integer", + "description": "Disk ID", + "name": "disk", + "in": "path", + "required": true + }, + { + "description": "Disk Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskSnapshotRequest" } } ], @@ -6934,163 +6724,179 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/permissions": { - "patch": { + "/v2/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Change image permissions.", + "description": "Deletes a disk snapshot.", "tags": [ "default" ], - "summary": "change image permissions", + "summary": "delete an instance disk snapshot", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "Image", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImagePermissionsRequest" - } + "type": "integer", + "description": "Disk ID", + "name": "disk", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "Snapshot ID", + "name": "snapshot", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImagePermissionsResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/persistent": { + "/v2/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Set image persistent.", + "description": "Renames a disk snapshot.", "tags": [ "default" ], - "summary": "set image persistent", + "summary": "patch snapshot name", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Image", + "type": "integer", + "description": "disk id", + "name": "disk", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "snapshot id", + "name": "snapshot", + "in": "path", + "required": true + }, + { + "description": "Snapshot Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetImagePersistentRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceDiskSnapshotRequest" } } ], @@ -7098,77 +6904,84 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetImagePersistentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceDiskSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/snapshot/{snapshot}": { - "delete": { + "/v2/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}/revert": { + "patch": { "security": [ { "Token": [] } ], - "description": "Delete an image snapshot.", + "description": "Reverts the disk state to a previously taken snapshot.", "tags": [ "default" ], - "summary": "delete image snapshot", + "summary": "patch snapshot revert", "parameters": [ { - "type": "string", - "description": "Image ID", - "name": "image", + "type": "integer", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "type": "string", - "description": "Snapshot ID", + "type": "integer", + "description": "disk id", + "name": "disk", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "snapshot id", "name": "snapshot", "in": "path", "required": true @@ -7176,157 +6989,155 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RevertInstanceDiskSnapshotResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/snapshot/{snapshot}/flatten": { + "/v2/cloud/instance/{instance}/lock": { "patch": { "security": [ { "Token": [] } ], - "description": "Flatten an image snapshot.", + "description": "Locks an instance.", "tags": [ "default" ], - "summary": "flatten image snapshot", + "summary": "patch instance lock", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "type": "integer", - "description": "snapshot id", - "name": "snapshot", - "in": "path", - "required": true + "description": "Lock Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.FlattenImageSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/snapshot/{snapshot}/revert": { - "patch": { + "/v2/cloud/instance/{instance}/monitoring": { + "get": { "security": [ { "Token": [] } ], - "description": "Revert an image snapshot.", + "description": "Retrieves monitoring information.", "tags": [ "default" ], - "summary": "revert image snapshot", + "summary": "get an instance monitoring", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "snapshot id", - "name": "snapshot", + "description": "ID", + "name": "instance", "in": "path", "required": true } @@ -7335,81 +7146,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RevertImageSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceMonitoringResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/type": { + "/v2/cloud/instance/{instance}/move": { "patch": { "security": [ { "Token": [] } ], - "description": "Change image type.", + "description": "Migrates an instance to the target host.", "tags": [ "default" ], - "summary": "change image type", + "summary": "patch an instance migration", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Image", + "description": "Move Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageTypeRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MoveInstanceRequest" } } ], @@ -7417,229 +7228,163 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageTypeResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MoveInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/image/{image}/unlock": { + "/v2/cloud/instance/{instance}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Unlock an image.", + "description": "Changes the name of an instance.", "tags": [ "default" ], - "summary": "unlock image", + "summary": "patch instance name", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "instance id", + "name": "instance", "in": "path", "required": true + }, + { + "description": "Rename Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance": { - "get": { + "/v2/cloud/instance/{instance}/nic": { + "post": { "security": [ { "Token": [] } ], - "description": "Returns a list of instances.", + "description": "Attaches a new network interface to the instance.", "tags": [ "default" ], - "summary": "get instance list", + "summary": "post instance nic", "parameters": [ { - "type": "string", - "description": "Comma separated list of instance IDs", + "type": "integer", + "description": "instance id", "name": "instance", - "in": "query" - }, - { - "type": "string", - "description": "State of instances to return", - "name": "state", - "in": "query" - }, - { - "type": "boolean", - "description": "Return extended information", - "name": "extended", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + "in": "path", + "required": true }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } - } - }, - "post": { - "security": [ { - "Token": [] - } - ], - "description": "Allocates a new instance.", - "tags": [ - "default" - ], - "summary": "post an instance", - "parameters": [ - { - "description": "Instance Template", + "description": "NIC Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceNICRequest" } } ], @@ -7647,203 +7392,239 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceNICResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance-group": { - "get": { + "/v2/cloud/instance/{instance}/nic/{nic}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Get a list of instance groups.", + "description": "Detaches a network interface from the instance.", "tags": [ "default" ], - "summary": "get instance groups", + "summary": "delete instance nic", + "parameters": [ + { + "type": "integer", + "description": "Instance ID", + "name": "instance", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "NIC ID", + "name": "nic", + "in": "path", + "required": true + } + ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroupsResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v2/cloud/instance/{instance}/nic/{nic}/security-group": { + "delete": { "security": [ { "Token": [] } ], - "description": "Create an instance group.", + "description": "Detaches a security group from a network interface of an instance, if the instance is running it removes the associated rules.", "tags": [ "default" ], - "summary": "post instance group", + "summary": "delete instance security group", + "parameters": [ + { + "type": "integer", + "description": "Instance ID", + "name": "instance", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "NIC ID", + "name": "nic", + "in": "path", + "required": true + } + ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceGroupRequest" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance-group/{group}": { - "get": { + "/v2/cloud/instance/{instance}/nic/{nic}/security-group/{group}": { + "post": { "security": [ { "Token": [] } ], - "description": "Get an instance group.", + "description": "Attaches a security group to a network interface of an instance, if the instance is running it updates the associated rules.", "tags": [ "default" ], - "summary": "get instance group", + "summary": "post instance security group", "parameters": [ { - "type": "boolean", - "description": "decrypt", - "name": "decrypt", - "in": "query" + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true }, { "type": "integer", - "description": "vmgroup id", - "name": "group", + "description": "network interface id", + "name": "nic", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "security group id", + "name": "sg", "in": "path", "required": true } @@ -7852,147 +7633,163 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceSecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v2/cloud/instance/{instance}/ownership": { + "patch": { "security": [ { "Token": [] } ], - "description": "Delete an instance group.", + "description": "Changes the ownership of an instance.", "tags": [ "default" ], - "summary": "delete instance group", + "summary": "patch instance ownership", "parameters": [ { "type": "integer", - "description": "Instance Group ID", - "name": "group", + "description": "instance id", + "name": "instance", "in": "path", "required": true + }, + { + "description": "Ownership Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceOwnershipRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceOwnershipResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v2/cloud/instance/{instance}/permissions": { "patch": { "security": [ { "Token": [] } ], - "description": "Update an instance group.", + "description": "Changes the permissions of an instance.", "tags": [ "default" ], - "summary": "patch instance group", + "summary": "patch instance permissions", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Instance Group Template", + "description": "Permissions Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstancePermissionsRequest" } } ], @@ -8000,81 +7797,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstancePermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance-group/{group}/lock": { + "/v2/cloud/instance/{instance}/recover": { "patch": { "security": [ { "Token": [] } ], - "description": "Lock an instance group.", + "description": "Recovers a stuck instance that is waiting for a driver operation. The recovery may be done by failing or succeeding the pending operation. You need to manually check the instance status on the host, to decide if the operation succeeded.", "tags": [ "default" ], - "summary": "lock instance group", + "summary": "patch instance recover", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "VMGroup Lock", + "description": "Recover Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverInstanceRequest" } } ], @@ -8082,81 +7879,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance-group/{group}/name": { - "patch": { + "/v2/cloud/instance/{instance}/schedule": { + "post": { "security": [ { "Token": [] } ], - "description": "Rename an instance group.", + "description": "Adds a schedule to an instance.", "tags": [ "default" ], - "summary": "patch instance group name", + "summary": "post instance schedule", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Instance Group Name", + "description": "Schedule Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceScheduleRequest" } } ], @@ -8164,81 +7961,79 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceScheduleResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/instance-group/{group}/ownership": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Change the ownership of an instance group.", + "description": "Updates a schedule for an instance.", "tags": [ "default" ], - "summary": "patch instance group ownership", + "summary": "patch instance schedule", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Instance Group Ownership", + "description": "Schedule Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceScheduleRequest" } } ], @@ -8246,643 +8041,634 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceScheduleResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance-group/{group}/permissions": { - "patch": { + "/v2/cloud/instance/{instance}/schedule/{action}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Change the permissions of an instance group.", + "description": "Deletes a schedule from an instance.", "tags": [ "default" ], - "summary": "patch instance group permissions", + "summary": "delete instance schedule", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "Instance Group Permissions", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupPermissionsRequest" - } + "type": "integer", + "description": "Action ID", + "name": "action", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupPermissionsResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance-group/{group}/unlock": { + "/v2/cloud/instance/{instance}/size": { "patch": { "security": [ { "Token": [] } ], - "description": "Unlock an instance group.", + "description": "Changes the capacity of an instance.", "tags": [ "default" ], - "summary": "unlock instance group", + "summary": "patch instance size", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "instance id", + "name": "instance", "in": "path", "required": true + }, + { + "description": "Resize Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockInstanceGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/accounting": { - "get": { + "/v2/cloud/instance/{instance}/snapshot": { + "post": { "security": [ { "Token": [] } ], - "description": "Returns a list of instances with accounting information.", + "description": "Creates a snapshot of an instance.", "tags": [ "default" ], - "summary": "get instance accounting list", + "summary": "post instance snapshot", "parameters": [ - { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" - }, { "type": "integer", - "description": "Start time", - "name": "start", - "in": "query" + "description": "instance id", + "name": "instance", + "in": "path", + "required": true }, { - "type": "integer", - "description": "End time", - "name": "end", - "in": "query" + "description": "Snapshot Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceSnapshotRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesAccountingResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/monitoring": { - "get": { + "/v2/cloud/instance/{instance}/snapshot/{snapshot}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Returns a list of instances with monitoring information.", + "description": "Deletes a snapshot of an instance.", "tags": [ "default" ], - "summary": "get instance monitoring list", + "summary": "delete instance snapshot", "parameters": [ { "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" + "description": "Instance ID", + "name": "instance", + "in": "path", + "required": true }, { - "type": "integer", - "description": "Get monitoring information for the last N seconds", - "name": "seconds", - "in": "query" + "type": "string", + "description": "Snapshot ID", + "name": "snapshot", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesMonitoringResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/showback": { - "get": { + "/v2/cloud/instance/{instance}/snapshot/{snapshot}/revert": { + "patch": { "security": [ { "Token": [] } ], - "description": "Returns a list of instances showback information.", + "description": "Reverts an instance to a snapshot.", "tags": [ "default" ], - "summary": "get instance showback list", + "summary": "patch instance snapshot", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" - }, - { - "type": "string", - "description": "Starting Month", - "name": "month-start", - "in": "query" - }, - { - "type": "string", - "description": "Ending Month", - "name": "month-end", - "in": "query" - }, - { - "type": "string", - "description": "Starting Year", - "name": "year-start", - "in": "query" + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true }, { - "type": "string", - "description": "Ending Year", - "name": "year-end", - "in": "query" + "type": "integer", + "description": "snapshot id", + "name": "snapshot", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesShowbackResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RevertInstanceSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v2/cloud/instance/{instance}/template": { + "patch": { "security": [ { "Token": [] } ], - "description": "Calculates the showback for the time period.", + "description": "Replaces the user template contents of an instance.", "tags": [ "default" ], - "summary": "post instance showback", + "summary": "patch instance template", "parameters": [ { - "description": "Time Period", + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true + }, + { + "description": "Template Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CalculateInstancesShowbackRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceTemplateRequest" } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceTemplateResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}": { - "get": { + "/v2/cloud/instance/{instance}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Retrieves information for a given instance.", + "description": "Unlocks an instance.", "tags": [ "default" ], - "summary": "get an instance", + "summary": "patch instance unlock", "parameters": [ { "type": "integer", - "description": "Instance ID", + "description": "instance id", "name": "instance", "in": "path", "required": true - }, - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/action": { - "patch": { + "/v2/cloud/instance/{instance}/vnc": { + "post": { "security": [ { "Token": [] } ], - "description": "Submits an action to be performed on an instance.", + "description": "Establish a VNC proxy that drives the console for an instance.", "tags": [ "default" ], - "summary": "patch an instance action", + "summary": "post a VNC proxy that drives the console for an instance", "parameters": [ { "type": "integer", - "description": "instance id", + "description": "Instance ID", "name": "instance", "in": "path", "required": true }, { - "description": "Instance Action", - "name": "data", + "description": "Zone", + "name": "zone", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetInstanceActionRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateVNCProxyRequest" } } ], @@ -8890,81 +8676,142 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetInstanceActionResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateVNCProxyResponse" } }, "400": { - "description": "error", + "description": "Bad Request", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "409": { + "description": "Conflict", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "error", + "description": "Internal Server Error", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/config": { - "patch": { + "/v2/cloud/market": { + "get": { "security": [ { "Token": [] } ], - "description": "Updates (appends) a set of supported configuration attributes in the instance template.", + "description": "Retrieves information for all or part of the marketplaces in the pool.", "tags": [ "default" ], - "summary": "patch instance config", - "parameters": [ - { - "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true + "summary": "get markets info", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MarketsResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + }, + "post": { + "security": [ { - "description": "Config Data", + "Token": [] + } + ], + "description": "Allocates a new marketplace.", + "tags": [ + "default" + ], + "summary": "post market", + "parameters": [ + { + "description": "Marketplace Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceConfigRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketRequest" } } ], @@ -8972,242 +8819,232 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceConfigResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/deploy": { - "patch": { + "/v2/cloud/market/app": { + "get": { "security": [ { "Token": [] } ], - "description": "Deploys the instance of the given id on the target host.", + "description": "Retrieves information for all or part of the marketplace apps in the pool.", "tags": [ "default" ], - "summary": "patch an instance deployment", + "summary": "get market apps info", "parameters": [ + { + "type": "string", + "description": "Filter flag", + "name": "filter", + "in": "query" + }, { "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true + "description": "start", + "name": "start", + "in": "query" }, { - "description": "Instance Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DeployInstanceRequest" - } + "type": "integer", + "description": "end", + "name": "end", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DeployInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MarketAppsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/disk": { - "post": { + "/v2/cloud/market/app/{app}": { + "get": { "security": [ { "Token": [] } ], - "description": "Attaches a new disk for the instance.", + "description": "Retrieves information for the marketplace app.", "tags": [ "default" ], - "summary": "post an instance disk", + "summary": "get market app info", "parameters": [ + { + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" + }, { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "ID", + "name": "app", "in": "path", "required": true - }, - { - "description": "Disk Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MarketAppResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/instance/{instance}/disk/{disk}": { + }, "delete": { "security": [ { "Token": [] } ], - "description": "Detaches a disk from the instance.", + "description": "Deletes the given marketplace app from the pool.", "tags": [ "default" ], - "summary": "delete instance disk", + "summary": "delete marketplace app", "parameters": [ { "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Disk ID", - "name": "disk", + "description": "Market ID", + "name": "app", "in": "path", "required": true } @@ -9219,82 +9056,75 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/disk/{disk}/image": { - "post": { + "/v2/cloud/market/app/{app}/": { + "patch": { "security": [ { "Token": [] } ], - "description": "Sets the disk to be saved in the given image.", + "description": "Replaces the marketplace app template contents.", "tags": [ "default" ], - "summary": "post an instance disk image", + "summary": "update marketplace app", "parameters": [ { "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Disk ID", - "name": "disk", + "description": "app id", + "name": "app", "in": "path", "required": true }, { - "description": "Disk Data", + "description": "MarketApp Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketAppRequest" } } ], @@ -9302,88 +9132,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketAppResponse" } }, "400": { - "description": "error", + "description": "Bad Request", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "error", + "description": "Internal Server Error", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/disk/{disk}/size": { + "/v2/cloud/market/app/{app}/enable": { "patch": { "security": [ { "Token": [] } ], - "description": "Resizes a disk for an instance.", + "description": "Enables or disables a marketplace app.", "tags": [ "default" ], - "summary": "patch instance disk size", + "summary": "enable marketplace app", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "disk id", - "name": "disk", + "description": "app id", + "name": "app", "in": "path", "required": true }, { - "description": "Disk Data", + "description": "Enable App Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceDiskRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketAppRequest" } } ], @@ -9391,88 +9214,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceDiskResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketAppResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/disk/{disk}/snapshot": { - "post": { + "/v2/cloud/market/app/{app}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Takes a snapshot of the disk image.", + "description": "Locks a MarketPlaceApp. Lock certain actions depending on blocking level.", "tags": [ "default" ], - "summary": "post an instance disk snapshot", + "summary": "lock market app", "parameters": [ { "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Disk ID", - "name": "disk", + "description": "app id", + "name": "app", "in": "path", "required": true }, { - "description": "Disk Data", + "description": "Lock App Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskSnapshotRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockMarketAppRequest" } } ], @@ -9480,179 +9296,163 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockMarketAppResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}": { - "delete": { + "/v2/cloud/market/app/{app}/name": { + "patch": { "security": [ { "Token": [] } ], - "description": "Deletes a disk snapshot.", + "description": "Renames a marketplace app.", "tags": [ "default" ], - "summary": "delete an instance disk snapshot", + "summary": "patch market app name", "parameters": [ { "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Disk ID", - "name": "disk", + "description": "app id", + "name": "app", "in": "path", "required": true }, { - "type": "integer", - "description": "Snapshot ID", - "name": "snapshot", - "in": "path", - "required": true + "description": "Name Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketAppRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketAppResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}/name": { + "/v2/cloud/market/app/{app}/ownership": { "patch": { "security": [ { "Token": [] } ], - "description": "Renames a disk snapshot.", + "description": "Changes the ownership of a marketplace app.", "tags": [ "default" ], - "summary": "patch snapshot name", + "summary": "patch market app ownership", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "disk id", - "name": "disk", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "snapshot id", - "name": "snapshot", + "description": "app id", + "name": "app", "in": "path", "required": true }, { - "description": "Snapshot Data", + "description": "Ownership Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceDiskSnapshotRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppOwnershipRequest" } } ], @@ -9660,240 +9460,232 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceDiskSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}/revert": { + "/v2/cloud/market/app/{app}/permissions": { "patch": { "security": [ { "Token": [] } ], - "description": "Reverts the disk state to a previously taken snapshot.", + "description": "Changes the permission bits of a marketplace app.", "tags": [ "default" ], - "summary": "patch snapshot revert", + "summary": "change market app permissions", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "disk id", - "name": "disk", + "description": "app id", + "name": "app", "in": "path", "required": true }, { - "type": "integer", - "description": "snapshot id", - "name": "snapshot", - "in": "path", - "required": true + "description": "Permissions Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppPermissionsRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RevertInstanceDiskSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppPermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/lock": { + "/v2/cloud/market/app/{app}/unlock": { "patch": { "security": [ { "Token": [] } ], - "description": "Locks an instance.", + "description": "Unlocks a MarketPlaceApp.", "tags": [ "default" ], - "summary": "patch instance lock", + "summary": "unlock market app", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "app id", + "name": "app", "in": "path", "required": true - }, - { - "description": "Lock Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockMarketAppResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/monitoring": { + "/v2/cloud/market/{market}": { "get": { "security": [ { "Token": [] } ], - "description": "Retrieves monitoring information.", + "description": "Retrieves information for the marketplace.", "tags": [ "default" ], - "summary": "get an instance monitoring", + "summary": "get market info", "parameters": [ + { + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" + }, { "type": "integer", "description": "ID", - "name": "instance", + "name": "market", "in": "path", "required": true } @@ -9902,163 +9694,147 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceMonitoringResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MarketResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/instance/{instance}/move": { - "patch": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Migrates an instance to the target host.", + "description": "Deletes the given market from the pool.", "tags": [ "default" ], - "summary": "patch an instance migration", + "summary": "delete market", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "Market ID", + "name": "market", "in": "path", "required": true - }, - { - "description": "Move Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MoveInstanceRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MoveInstanceResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/instance/{instance}/name": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Changes the name of an instance.", + "description": "Replaces the marketplace template contents.", "tags": [ "default" ], - "summary": "patch instance name", + "summary": "update market", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "market id", + "name": "market", "in": "path", "required": true }, { - "description": "Rename Data", + "description": "Market Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketRequest" } } ], @@ -10066,81 +9842,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/nic": { + "/v2/cloud/market/{market}/app/": { "post": { "security": [ { "Token": [] } ], - "description": "Attaches a new network interface to the instance.", + "description": "Allocates a new marketplace app.", "tags": [ "default" ], - "summary": "post instance nic", + "summary": "post marketapp", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "market id", + "name": "market", "in": "path", "required": true }, { - "description": "NIC Data", + "description": "Marketplace Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceNICRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketAppRequest" } } ], @@ -10148,312 +9924,235 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceNICResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketAppResponse" } }, "400": { - "description": "Bad Request", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "Internal Server Error", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/nic/{nic}": { - "delete": { + "/v2/cloud/market/{market}/enable": { + "patch": { "security": [ { "Token": [] } ], - "description": "Detaches a network interface from the instance.", + "description": "Enable/disable the Marketplace.", "tags": [ "default" ], - "summary": "delete instance nic", + "summary": "enable market", "parameters": [ { "type": "integer", - "description": "Instance ID", - "name": "instance", + "description": "market id", + "name": "market", "in": "path", "required": true }, { - "type": "integer", - "description": "NIC ID", - "name": "nic", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", + "description": "Enable Data", + "name": "data", + "in": "body", + "required": true, "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketRequest" } } - } - } - }, - "/v2/cloud/instance/{instance}/nic/{nic}/security-group": { - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Detaches a security group from a network interface of an instance, if the instance is running it removes the associated rules.", - "tags": [ - "default" - ], - "summary": "delete instance security group", - "parameters": [ - { - "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "NIC ID", - "name": "nic", - "in": "path", - "required": true - } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/nic/{nic}/security-group/{group}": { - "post": { + "/v2/cloud/market/{market}/name": { + "patch": { "security": [ { "Token": [] } ], - "description": "Attaches a security group to a network interface of an instance, if the instance is running it updates the associated rules.", + "description": "Renames a marketplace.", "tags": [ "default" ], - "summary": "post instance security group", + "summary": "patch market name", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "network interface id", - "name": "nic", + "description": "market id", + "name": "market", "in": "path", "required": true }, { - "type": "integer", - "description": "security group id", - "name": "sg", - "in": "path", - "required": true + "description": "Name Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceSecurityGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/ownership": { + "/v2/cloud/market/{market}/ownership": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the ownership of an instance.", + "description": "Changes the ownership of a marketplace.", "tags": [ "default" ], - "summary": "patch instance ownership", + "summary": "patch market ownership", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "market id", + "name": "market", "in": "path", "required": true }, @@ -10463,7 +10162,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketOwnershipRequest" } } ], @@ -10471,71 +10170,71 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/permissions": { + "/v2/cloud/market/{market}/permissions": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the permissions of an instance.", + "description": "Changes the permission bits of a marketplace.", "tags": [ "default" ], - "summary": "patch instance permissions", + "summary": "change market permissions", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "market id", + "name": "market", "in": "path", "required": true }, @@ -10545,7 +10244,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstancePermissionsRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketPermissionsRequest" } } ], @@ -10553,163 +10252,144 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstancePermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketPermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/recover": { - "patch": { + "/v2/cloud/network": { + "get": { "security": [ { "Token": [] } ], - "description": "Recovers a stuck instance that is waiting for a driver operation. The recovery may be done by failing or succeeding the pending operation. You need to manually check the instance status on the host, to decide if the operation succeeded.", + "description": "List virtual networks.", "tags": [ "default" ], - "summary": "patch instance recover", + "summary": "get networks", "parameters": [ { - "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "description": "Recover Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverInstanceRequest" - } + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.NetworksResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/instance/{instance}/schedule": { + }, "post": { "security": [ { "Token": [] } ], - "description": "Adds a schedule to an instance.", + "description": "Create a network.", "tags": [ "default" ], - "summary": "post instance schedule", + "summary": "post network", "parameters": [ { - "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "description": "Schedule Data", + "description": "Network Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceScheduleRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkRequest" } } ], @@ -10717,79 +10397,74 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceScheduleResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v2/cloud/network/template": { + "post": { "security": [ { "Token": [] } ], - "description": "Updates a schedule for an instance.", + "description": "Create a virtual network template.", "tags": [ "default" ], - "summary": "patch instance schedule", + "summary": "create network template", "parameters": [ { - "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "description": "Schedule Data", + "description": "Network Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceScheduleRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkTemplateRequest" } } ], @@ -10797,78 +10472,148 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceScheduleResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/schedule/{action}": { - "delete": { + "/v2/cloud/network/template/{template}": { + "get": { "security": [ { "Token": [] } ], - "description": "Deletes a schedule from an instance.", + "description": "List virtual network template.", "tags": [ "default" ], - "summary": "delete instance schedule", + "summary": "list network template", "parameters": [ + { + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" + }, { "type": "integer", - "description": "Instance ID", - "name": "instance", + "description": "Template ID", + "name": "template", "in": "path", "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.NetworkTemplateResponse" + } }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + }, + "delete": { + "security": [ { - "type": "integer", - "description": "Action ID", - "name": "action", + "Token": [] + } + ], + "description": "Delete a virtual network template.", + "tags": [ + "default" + ], + "summary": "delete network template", + "parameters": [ + { + "type": "string", + "description": "Template ID", + "name": "template", "in": "path", "required": true } @@ -10880,75 +10625,75 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/size": { - "patch": { + "/v2/cloud/network/template/{template}/clone": { + "post": { "security": [ { "Token": [] } ], - "description": "Changes the capacity of an instance.", + "description": "Clone a virtual network template.", "tags": [ "default" ], - "summary": "patch instance size", + "summary": "clone network template", "parameters": [ { - "type": "integer", - "description": "instance id", - "name": "instance", + "type": "string", + "description": "Template ID", + "name": "template", "in": "path", "required": true }, { - "description": "Resize Data", + "description": "Network Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneNetworkTemplateRequest" } } ], @@ -10956,81 +10701,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/snapshot": { - "post": { + "/v2/cloud/network/template/{template}/instantiate": { + "patch": { "security": [ { "Token": [] } ], - "description": "Creates a snapshot of an instance.", + "description": "Instantiate a virtual network template.", "tags": [ "default" ], - "summary": "post instance snapshot", + "summary": "instantiate network template", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "Snapshot Data", + "description": "Network Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceSnapshotRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateNetworkTemplateRequest" } } ], @@ -11038,238 +10783,245 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/snapshot/{snapshot}": { - "delete": { + "/v2/cloud/network/template/{template}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Deletes a snapshot of an instance.", + "description": "Lock a virtual network template.", "tags": [ "default" ], - "summary": "delete instance snapshot", + "summary": "lock network template", "parameters": [ { - "type": "string", - "description": "Instance ID", - "name": "instance", + "type": "integer", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "type": "string", - "description": "Snapshot ID", - "name": "snapshot", - "in": "path", - "required": true + "description": "Network Lock", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkTemplateRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkTemplateResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/snapshot/{snapshot}/revert": { + "/v2/cloud/network/template/{template}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Reverts an instance to a snapshot.", + "description": "Rename a virtual network template.", "tags": [ "default" ], - "summary": "patch instance snapshot", + "summary": "rename network template", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "type": "integer", - "description": "snapshot id", - "name": "snapshot", - "in": "path", - "required": true + "description": "Network Rename", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkTemplateRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RevertInstanceSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/template": { + "/v2/cloud/network/template/{template}/owner": { "patch": { "security": [ { "Token": [] } ], - "description": "Replaces the user template contents of an instance.", + "description": "Change the owner of a virtual network template.", "tags": [ "default" ], - "summary": "patch instance template", + "summary": "change network template owner", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "Template Data", + "description": "Network Owner", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceTemplateRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplateOwnershipRequest" } } ], @@ -11277,381 +11029,305 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplateOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/unlock": { + "/v2/cloud/network/template/{template}/permissions": { "patch": { "security": [ { "Token": [] } ], - "description": "Unlocks an instance.", + "description": "Change the permissions of a virtual network template.", "tags": [ "default" ], - "summary": "patch instance unlock", + "summary": "change network template permissions", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "template id", + "name": "template", "in": "path", "required": true + }, + { + "description": "Network Permissions", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplatePermissionsRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplatePermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/instance/{instance}/vnc": { - "post": { + "/v2/cloud/network/template/{template}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Establish a VNC proxy that drives the console for an instance.", + "description": "Unlock a virtual network template.", "tags": [ "default" ], - "summary": "post a VNC proxy that drives the console for an instance", + "summary": "unlock network template", "parameters": [ { "type": "integer", - "description": "Instance ID", - "name": "instance", + "description": "template id", + "name": "template", "in": "path", "required": true - }, - { - "description": "Zone", - "name": "zone", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateVNCProxyRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateVNCProxyResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "409": { - "description": "Conflict", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market": { + "/v2/cloud/network/templates": { "get": { "security": [ { "Token": [] } ], - "description": "Retrieves information for all or part of the marketplaces in the pool.", - "tags": [ - "default" - ], - "summary": "get markets info", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MarketsResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } - } - }, - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Allocates a new marketplace.", + "description": "Get a list of virtual network templates.", "tags": [ "default" ], - "summary": "post market", + "summary": "get network templates", "parameters": [ { - "description": "Marketplace Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketRequest" - } + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.NetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/app": { + "/v2/cloud/network/{network}": { "get": { "security": [ { "Token": [] } ], - "description": "Retrieves information for all or part of the marketplace apps in the pool.", + "description": "List a virtual network.", "tags": [ "default" ], - "summary": "get market apps info", + "summary": "get network", "parameters": [ - { - "type": "string", - "description": "Filter flag", - "name": "filter", - "in": "query" - }, { "type": "integer", - "description": "start", - "name": "start", - "in": "query" + "description": "Network ID", + "name": "network", + "in": "path", + "required": true }, { - "type": "integer", - "description": "end", - "name": "end", + "type": "string", + "description": "Decrypt secrets", + "name": "decrypt", "in": "query" } ], @@ -11659,228 +11335,229 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MarketAppsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.NetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/market/app/{app}": { - "get": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Retrieves information for the marketplace app.", + "description": "Delete a network.", "tags": [ "default" ], - "summary": "get market app info", + "summary": "delete network", "parameters": [ { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, - { - "type": "integer", - "description": "ID", - "name": "app", + "type": "string", + "description": "Network ID", + "name": "network", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MarketAppResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "delete": { + "patch": { "security": [ { "Token": [] } ], - "description": "Deletes the given marketplace app from the pool.", + "description": "Update a network.", "tags": [ "default" ], - "summary": "delete marketplace app", + "summary": "update network", "parameters": [ { "type": "integer", - "description": "Market ID", - "name": "app", + "description": "network id", + "name": "network", "in": "path", "required": true + }, + { + "description": "Network", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/app/{app}/": { - "patch": { + "/v2/cloud/network/{network}/address-range": { + "post": { "security": [ { "Token": [] } ], - "description": "Replaces the marketplace app template contents.", + "description": "Add an address range to a network.", "tags": [ "default" ], - "summary": "update marketplace app", + "summary": "add address range", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "Network ID", + "name": "network", "in": "path", "required": true }, { - "description": "MarketApp Template", + "description": "Address Range", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketAppRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddNetworkAddressRangeRequest" } } ], @@ -11888,81 +11565,79 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketAppResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddNetworkAddressRangeResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/market/app/{app}/enable": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Enables or disables a marketplace app.", + "description": "Update an address range in a network.", "tags": [ "default" ], - "summary": "enable marketplace app", + "summary": "update address range", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Enable App Data", + "description": "Address Range", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketAppRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkAddressRangeRequest" } } ], @@ -11970,245 +11645,241 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketAppResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkAddressRangeResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/app/{app}/lock": { - "patch": { + "/v2/cloud/network/{network}/address-range/{range}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Locks a MarketPlaceApp. Lock certain actions depending on blocking level.", + "description": "Delete an address range from a network.", "tags": [ "default" ], - "summary": "lock market app", + "summary": "delete address range", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "Network ID", + "name": "network", "in": "path", "required": true }, { - "description": "Lock App Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockMarketAppRequest" - } + "type": "integer", + "description": "Address Range ID", + "name": "ar", + "in": "path", + "required": true + }, + { + "type": "boolean", + "description": "Force delete", + "name": "force", + "in": "query" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockMarketAppResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/app/{app}/name": { - "patch": { + "/v2/cloud/network/{network}/address-range/{range}/free": { + "delete": { "security": [ { "Token": [] } ], - "description": "Renames a marketplace app.", + "description": "Free a reserved address range from a network.", "tags": [ "default" ], - "summary": "patch market app name", + "summary": "free address range", "parameters": [ { - "type": "integer", - "description": "app id", - "name": "app", + "type": "string", + "description": "Network ID", + "name": "network", "in": "path", "required": true }, { - "description": "Name Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketAppRequest" - } + "type": "string", + "description": "Address Range ID", + "name": "ar", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketAppResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/app/{app}/ownership": { + "/v2/cloud/network/{network}/hold": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the ownership of a marketplace app.", + "description": "Holds a virtual network lease as used.", "tags": [ "default" ], - "summary": "patch market app ownership", + "summary": "hold network", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Ownership Data", + "description": "Network Hold", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HoldNetworkRequest" } } ], @@ -12216,81 +11887,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HoldNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/app/{app}/permissions": { + "/v2/cloud/network/{network}/lock": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the permission bits of a marketplace app.", + "description": "Lock a virtual network.", "tags": [ "default" ], - "summary": "change market app permissions", + "summary": "lock network", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Permissions Data", + "description": "Network Lock", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppPermissionsRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkRequest" } } ], @@ -12298,299 +11969,327 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppPermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/app/{app}/unlock": { + "/v2/cloud/network/{network}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Unlocks a MarketPlaceApp.", + "description": "Rename a network.", "tags": [ "default" ], - "summary": "unlock market app", + "summary": "patch name", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "network id", + "name": "network", "in": "path", "required": true + }, + { + "description": "Network Rename", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockMarketAppResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/{market}": { - "get": { + "/v2/cloud/network/{network}/ownership": { + "patch": { "security": [ { "Token": [] } ], - "description": "Retrieves information for the marketplace.", + "description": "Change ownership on a network.", "tags": [ "default" ], - "summary": "get market info", + "summary": "patch ownership", "parameters": [ - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, { "type": "integer", - "description": "ID", - "name": "market", + "description": "network id", + "name": "network", "in": "path", "required": true + }, + { + "description": "Network Ownership", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkOwnershipRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MarketResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v2/cloud/network/{network}/permissions": { + "patch": { "security": [ { "Token": [] } ], - "description": "Deletes the given market from the pool.", + "description": "Change permissions on a network.", "tags": [ "default" ], - "summary": "delete market", + "summary": "patch permissions", "parameters": [ { "type": "integer", - "description": "Market ID", - "name": "market", + "description": "network id", + "name": "network", "in": "path", "required": true + }, + { + "description": "Network Permissions", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkPermissionsRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkPermissionsResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v2/cloud/network/{network}/recover": { "patch": { "security": [ { "Token": [] } ], - "description": "Replaces the marketplace template contents.", + "description": "Recover a virtual network.", "tags": [ "default" ], - "summary": "update market", + "summary": "recover network", "parameters": [ { "type": "integer", - "description": "market id", - "name": "market", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Market Template", + "description": "Network Recover", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverNetworkRequest" } } ], @@ -12598,81 +12297,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/{market}/app/": { - "post": { + "/v2/cloud/network/{network}/release": { + "patch": { "security": [ { "Token": [] } ], - "description": "Allocates a new marketplace app.", + "description": "Releases a virtual network lease on hold.", "tags": [ "default" ], - "summary": "post marketapp", + "summary": "release network", "parameters": [ { "type": "integer", - "description": "market id", - "name": "market", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Marketplace Template", + "description": "Network Release", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketAppRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ReleaseNetworkRequest" } } ], @@ -12680,7 +12379,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketAppResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ReleaseNetworkResponse" } }, "400": { @@ -12692,25 +12391,25 @@ "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { @@ -12722,39 +12421,39 @@ "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/{market}/enable": { - "patch": { + "/v2/cloud/network/{network}/reserve": { + "post": { "security": [ { "Token": [] } ], - "description": "Enable/disable the Marketplace.", + "description": "Reserve a network.", "tags": [ "default" ], - "summary": "enable market", + "summary": "reserve network", "parameters": [ { "type": "integer", - "description": "market id", - "name": "market", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Enable Data", + "description": "Network Reservation", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ReserveNetworkRequest" } } ], @@ -12762,81 +12461,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ReserveNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/{market}/name": { + "/v2/cloud/network/{network}/template/update": { "patch": { "security": [ { "Token": [] } ], - "description": "Renames a marketplace.", + "description": "Update a virtual network template.", "tags": [ "default" ], - "summary": "patch market name", + "summary": "update network template", "parameters": [ { "type": "integer", - "description": "market id", - "name": "market", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Name Data", + "description": "Network Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkTemplateRequest" } } ], @@ -12844,163 +12543,217 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/market/{market}/ownership": { + "/v2/cloud/network/{network}/unlock": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the ownership of a marketplace.", + "description": "Unlock a virtual network.", "tags": [ "default" ], - "summary": "patch market ownership", + "summary": "unlock network", "parameters": [ { "type": "integer", - "description": "market id", - "name": "market", + "description": "network id", + "name": "network", "in": "path", "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockNetworkResponse" + } }, - { - "description": "Ownership Data", - "name": "data", - "in": "body", - "required": true, + "400": { + "description": "Bad Request", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketOwnershipRequest" + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + } + }, + "/v2/cloud/router": { + "get": { + "security": [ + { + "Token": [] + } + ], + "description": "List virtual routers", + "tags": [ + "default" + ], + "summary": "get routers", + "parameters": [ + { + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RoutersResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/market/{market}/permissions": { - "patch": { + }, + "post": { "security": [ { "Token": [] } ], - "description": "Changes the permission bits of a marketplace.", + "description": "Create a virtual router", "tags": [ "default" ], - "summary": "change market permissions", + "summary": "post router", "parameters": [ { - "type": "integer", - "description": "market id", - "name": "market", - "in": "path", - "required": true - }, - { - "description": "Permissions Data", + "description": "Router Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketPermissionsRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterRequest" } } ], @@ -13008,144 +12761,232 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketPermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network": { + "/v2/cloud/router/{router}": { "get": { "security": [ { "Token": [] } ], - "description": "List virtual networks.", + "description": "List a virtual router", "tags": [ "default" ], - "summary": "get networks", + "summary": "get router", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", "in": "query" + }, + { + "type": "string", + "description": "Router ID", + "name": "router", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.NetworksResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RouterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "post": { + "delete": { "security": [ { "Token": [] } ], - "description": "Create a network.", + "description": "Delete a virtual router", "tags": [ "default" ], - "summary": "post network", + "summary": "delete router", "parameters": [ { - "description": "Network Template", + "type": "boolean", + "description": "Delete disk", + "name": "disk", + "in": "query" + }, + { + "type": "string", + "description": "Router ID", + "name": "router", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + }, + "patch": { + "security": [ + { + "Token": [] + } + ], + "description": "Update a virtual router", + "tags": [ + "default" + ], + "summary": "update router", + "parameters": [ + { + "type": "integer", + "description": "router id", + "name": "router", + "in": "path", + "required": true + }, + { + "description": "Router Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateRouterRequest" } } ], @@ -13153,74 +12994,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateRouterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/template": { - "post": { + "/v2/cloud/router/{router}/instantiate": { + "patch": { "security": [ { "Token": [] } ], - "description": "Create a virtual network template.", + "description": "Instantiate a virtual router", "tags": [ "default" ], - "summary": "create network template", + "summary": "instantiate router", "parameters": [ { - "description": "Network Template", + "type": "integer", + "description": "router id", + "name": "router", + "in": "path", + "required": true + }, + { + "description": "Router Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkTemplateRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateRouterRequest" } } ], @@ -13228,228 +13076,245 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateRouterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/template/{template}": { - "get": { + "/v2/cloud/router/{router}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "List virtual network template.", + "description": "Lock a virtual router", "tags": [ "default" ], - "summary": "list network template", + "summary": "lock router", "parameters": [ - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, { "type": "integer", - "description": "Template ID", - "name": "template", + "description": "router id", + "name": "router", "in": "path", "required": true + }, + { + "description": "Router Lock", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockRouterRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.NetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockRouterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v2/cloud/router/{router}/name": { + "patch": { "security": [ { "Token": [] } ], - "description": "Delete a virtual network template.", + "description": "Rename a virtual router", "tags": [ "default" ], - "summary": "delete network template", + "summary": "rename router", "parameters": [ { - "type": "string", - "description": "Template ID", - "name": "template", + "type": "integer", + "description": "router id", + "name": "router", "in": "path", "required": true + }, + { + "description": "Router Rename", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameRouterRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameRouterResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/template/{template}/clone": { + "/v2/cloud/router/{router}/nic": { "post": { "security": [ { "Token": [] } ], - "description": "Clone a virtual network template.", + "description": "Add a NIC to a virtual router", "tags": [ "default" ], - "summary": "clone network template", + "summary": "add router nic", "parameters": [ { - "type": "string", - "description": "Template ID", - "name": "template", + "type": "integer", + "description": "virtual router ID", + "name": "router", "in": "path", "required": true }, { - "description": "Network Template", + "description": "Router NIC", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneNetworkTemplateRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterNICRequest" } } ], @@ -13457,163 +13322,158 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneNetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterNICResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/template/{template}/instantiate": { - "patch": { + "/v2/cloud/router/{router}/nic/{nic}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Instantiate a virtual network template.", + "description": "Remove a NIC from a virtual router", "tags": [ "default" ], - "summary": "instantiate network template", + "summary": "remove router nic", "parameters": [ { - "type": "integer", - "description": "template id", - "name": "template", + "type": "string", + "description": "Router ID", + "name": "router", "in": "path", "required": true }, { - "description": "Network Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateNetworkTemplateRequest" - } + "type": "string", + "description": "NIC ID", + "name": "nic", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateNetworkTemplateResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/template/{template}/lock": { + "/v2/cloud/router/{router}/ownership": { "patch": { "security": [ { "Token": [] } ], - "description": "Lock a virtual network template.", + "description": "Change a virtual router ownership", "tags": [ "default" ], - "summary": "lock network template", + "summary": "change router ownership", "parameters": [ { "type": "integer", - "description": "template id", - "name": "template", + "description": "router id", + "name": "router", "in": "path", "required": true }, { - "description": "Network Lock", + "description": "Router Ownership", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkTemplateRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterOwnershipRequest" } } ], @@ -13621,81 +13481,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/template/{template}/name": { + "/v2/cloud/router/{router}/permissions": { "patch": { "security": [ { "Token": [] } ], - "description": "Rename a virtual network template.", + "description": "Change a virtual router permissions", "tags": [ "default" ], - "summary": "rename network template", + "summary": "change router permissions", "parameters": [ { "type": "integer", - "description": "template id", - "name": "template", + "description": "router id", + "name": "router", "in": "path", "required": true }, { - "description": "Network Rename", + "description": "Router Permissions", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkTemplateRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterPermissionsRequest" } } ], @@ -13703,163 +13563,147 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterPermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/template/{template}/owner": { + "/v2/cloud/router/{router}/unlock": { "patch": { "security": [ { "Token": [] } ], - "description": "Change the owner of a virtual network template.", + "description": "Unlock a virtual router.", "tags": [ "default" ], - "summary": "change network template owner", + "summary": "unlock router", "parameters": [ { "type": "integer", - "description": "template id", - "name": "template", + "description": "router id", + "name": "router", "in": "path", "required": true - }, - { - "description": "Network Owner", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplateOwnershipRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplateOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockRouterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/template/{template}/permissions": { - "patch": { + "/v2/cloud/security-group": { + "post": { "security": [ { "Token": [] } ], - "description": "Change the permissions of a virtual network template.", + "description": "Create a new security group.", "tags": [ "default" ], - "summary": "change network template permissions", + "summary": "create a new security group", "parameters": [ { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Network Permissions", + "description": "Security Group", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplatePermissionsRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateSecurityGroupRequest" } } ], @@ -13867,371 +13711,462 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplatePermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateSecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/template/{template}/unlock": { - "patch": { + "/v2/cloud/security-group/": { + "get": { "security": [ { "Token": [] } ], - "description": "Unlock a virtual network template.", + "description": "retrieves information for all or part of the security\ngroups in the pool.", "tags": [ "default" ], - "summary": "unlock network template", + "summary": "retrieves information for subset of security groups", "parameters": [ { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockNetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroupsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/templates": { + "/v2/cloud/security-group/{group}": { "get": { "security": [ { "Token": [] } ], - "description": "Get a list of virtual network templates.", + "description": "Retrieves information for the security group.", "tags": [ "default" ], - "summary": "get network templates", + "summary": "retrieves information for the security group", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", "in": "query" + }, + { + "type": "integer", + "description": "Security group ID", + "name": "sg", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.NetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/network/{network}": { - "get": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "List a virtual network.", + "description": "Deletes the given security group from the pool.", "tags": [ "default" ], - "summary": "get network", + "summary": "delete a security group", "parameters": [ { "type": "integer", - "description": "Network ID", - "name": "network", + "description": "Group ID", + "name": "sg", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + }, + "patch": { + "security": [ + { + "Token": [] + } + ], + "description": "Replaces the security group template contents.", + "tags": [ + "default" + ], + "summary": "replaces the security group template contents", + "parameters": [ + { + "type": "integer", + "description": "sg id", + "name": "sg", "in": "path", "required": true }, { - "type": "string", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" + "description": "Security Group", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateSecurityGroupRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.NetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateSecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v2/cloud/security-group/{group}/chmod": { + "patch": { "security": [ { "Token": [] } ], - "description": "Delete a network.", + "description": "Changes the permission bits of a security group.", "tags": [ "default" ], - "summary": "delete network", + "summary": "changes the permission bits of a security group", "parameters": [ { - "type": "string", - "description": "Network ID", - "name": "network", + "type": "integer", + "description": "sg id", + "name": "sg", "in": "path", "required": true + }, + { + "description": "Permissions", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupPermissionsRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupPermissionsResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v2/cloud/security-group/{group}/chown": { "patch": { "security": [ { "Token": [] } ], - "description": "Update a network.", + "description": "Changes the ownership of a security group.", "tags": [ "default" ], - "summary": "update network", + "summary": "changes the ownership of a security group", "parameters": [ { "type": "integer", - "description": "network id", - "name": "network", + "description": "sg id", + "name": "sg", "in": "path", "required": true }, { - "description": "Network", + "description": "New user and group", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupOwnershipRequest" } } ], @@ -14239,81 +14174,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/{network}/address-range": { + "/v2/cloud/security-group/{group}/clone": { "post": { "security": [ { "Token": [] } ], - "description": "Add an address range to a network.", + "description": "Clones an existing security group.", "tags": [ "default" ], - "summary": "add address range", + "summary": "clones an existing security group", "parameters": [ { "type": "integer", - "description": "Network ID", - "name": "network", + "description": "Group ID", + "name": "sg", "in": "path", "required": true }, { - "description": "Address Range", + "description": "Cloned group", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddNetworkAddressRangeRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneSecurityGroupRequest" } } ], @@ -14321,79 +14256,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddNetworkAddressRangeResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneSecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v2/cloud/security-group/{group}/commit": { "patch": { "security": [ { "Token": [] } ], - "description": "Update an address range in a network.", + "description": "Commit security group changes to associated VMs. This is\nintended for retrying updates of VMs or reinitialize the updating process if\none stopped or failed after a one.secgroup.update call.", "tags": [ "default" ], - "summary": "update address range", + "summary": "Commit security group changes to associated VMs", "parameters": [ { "type": "integer", - "description": "network id", - "name": "network", + "description": "sg id", + "name": "sg", "in": "path", "required": true }, { - "description": "Address Range", + "description": "Security group ID", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkAddressRangeRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CommitSecurityGroupRequest" } } ], @@ -14401,323 +14338,354 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkAddressRangeResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CommitSecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/{network}/address-range/{range}": { - "delete": { + "/v2/cloud/security-group/{group}/rename": { + "patch": { "security": [ { "Token": [] } ], - "description": "Delete an address range from a network.", + "description": "Renames a security group.", "tags": [ "default" ], - "summary": "delete address range", + "summary": "renames a security group", "parameters": [ { "type": "integer", - "description": "Network ID", - "name": "network", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Address Range ID", - "name": "ar", + "description": "sg id", + "name": "sg", "in": "path", "required": true }, { - "type": "boolean", - "description": "Force delete", - "name": "force", - "in": "query" + "description": "Security Group name", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameSecurityGroupRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameSecurityGroupResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/{network}/address-range/{range}/free": { - "delete": { + "/v2/cloud/system/config": { + "get": { "security": [ { "Token": [] } ], - "description": "Free a reserved address range from a network.", + "description": "Return the system configuration.", "tags": [ "default" ], - "summary": "free address range", - "parameters": [ - { - "type": "string", - "description": "Network ID", - "name": "network", - "in": "path", - "required": true + "summary": "returns the core configuration", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SystemConfigResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + } + }, + "/v2/cloud/system/version": { + "get": { + "security": [ { - "type": "string", - "description": "Address Range ID", - "name": "ar", - "in": "path", - "required": true + "Token": [] } ], + "description": "Return the core system version.", + "tags": [ + "default" + ], + "summary": "returns the core version", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SystemVersionResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/{network}/hold": { - "patch": { + "/v2/cloud/template": { + "get": { "security": [ { "Token": [] } ], - "description": "Holds a virtual network lease as used.", + "description": "Retrieves information for all or part of the Resources in the pool.", "tags": [ "default" ], - "summary": "hold network", + "summary": "list templates", "parameters": [ { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Network Hold", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HoldNetworkRequest" - } + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HoldNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.TemplatesResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/network/{network}/lock": { - "patch": { + }, + "post": { "security": [ { "Token": [] } ], - "description": "Lock a virtual network.", + "description": "Allocates a new template.", "tags": [ "default" ], - "summary": "lock network", + "summary": "post template", "parameters": [ { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Network Lock", + "description": "Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateTemplateRequest" } } ], @@ -14725,245 +14693,235 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/{network}/name": { - "patch": { + "/v2/cloud/template/{template}": { + "get": { "security": [ { "Token": [] } ], - "description": "Rename a network.", + "description": "Retrieves information for the template.", "tags": [ "default" ], - "summary": "patch name", + "summary": "list a template", "parameters": [ + { + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" + }, { "type": "integer", - "description": "network id", - "name": "network", + "description": "ID", + "name": "template", "in": "path", "required": true - }, - { - "description": "Network Rename", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.TemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/network/{network}/ownership": { - "patch": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Change ownership on a network.", + "description": "Deletes the given template from the pool.", "tags": [ "default" ], - "summary": "patch ownership", + "summary": "delete template", "parameters": [ { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true + "type": "boolean", + "description": "Delete disk", + "name": "disk", + "in": "query" }, { - "description": "Network Ownership", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkOwnershipRequest" - } + "type": "string", + "description": "Template ID", + "name": "template", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DeleteTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/network/{network}/permissions": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Change permissions on a network.", + "description": "Replaces the template contents.", "tags": [ "default" ], - "summary": "patch permissions", + "summary": "update template", "parameters": [ { "type": "integer", - "description": "network id", - "name": "network", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "Network Permissions", + "description": "Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkPermissionsRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateTemplateRequest" } } ], @@ -14971,81 +14929,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkPermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/{network}/recover": { - "patch": { + "/v2/cloud/template/{template}/clone": { + "post": { "security": [ { "Token": [] } ], - "description": "Recover a virtual network.", + "description": "Clones an existing virtual machine template.", "tags": [ "default" ], - "summary": "recover network", + "summary": "clone template", "parameters": [ { - "type": "integer", - "description": "network id", - "name": "network", + "type": "string", + "description": "Template ID", + "name": "template", "in": "path", "required": true }, { - "description": "Network Recover", + "description": "Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverNetworkRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneTemplateRequest" } } ], @@ -15053,81 +15011,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/{network}/release": { + "/v2/cloud/template/{template}/instantiate": { "patch": { "security": [ { "Token": [] } ], - "description": "Releases a virtual network lease on hold.", + "description": "Instantiates a new virtual machine from a template.", "tags": [ "default" ], - "summary": "release network", + "summary": "instantiate template", "parameters": [ { "type": "integer", - "description": "network id", - "name": "network", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "Network Release", + "description": "Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ReleaseNetworkRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateTemplateRequest" } } ], @@ -15135,81 +15093,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ReleaseNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateTemplateResponse" } }, "400": { - "description": "error", + "description": "Bad Request", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "error", + "description": "Internal Server Error", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/{network}/reserve": { - "post": { + "/v2/cloud/template/{template}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Reserve a network.", + "description": "Locks a Template.", "tags": [ "default" ], - "summary": "reserve network", + "summary": "lock a template", "parameters": [ { "type": "integer", - "description": "network id", - "name": "network", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "Network Reservation", + "description": "Templates", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ReserveNetworkRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockTemplateRequest" } } ], @@ -15217,81 +15175,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ReserveNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/{network}/template/update": { + "/v2/cloud/template/{template}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Update a virtual network template.", + "description": "Renames a template.", "tags": [ "default" ], - "summary": "update network template", + "summary": "rename template", "parameters": [ { "type": "integer", - "description": "network id", - "name": "network", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "Network Template", + "description": "Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkTemplateRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameTemplateRequest" } } ], @@ -15299,532 +15257,585 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/network/{network}/unlock": { + "/v2/cloud/template/{template}/ownership": { "patch": { "security": [ { "Token": [] } ], - "description": "Unlock a virtual network.", + "description": "Changes the ownership of a template.", "tags": [ "default" ], - "summary": "unlock network", + "summary": "change template ownership", "parameters": [ { "type": "integer", - "description": "network id", - "name": "network", + "description": "template id", + "name": "template", "in": "path", "required": true + }, + { + "description": "Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplateOwnershipRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplateOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/router": { - "get": { + "/v2/cloud/template/{template}/permissions": { + "patch": { "security": [ { "Token": [] } ], - "description": "List virtual routers", + "description": "Changes the permission bits of a template.", "tags": [ "default" ], - "summary": "get routers", + "summary": "change template permissions", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" + "type": "integer", + "description": "template id", + "name": "template", + "in": "path", + "required": true + }, + { + "description": "Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplatePermissionsRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RoutersResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplatePermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v2/cloud/template/{template}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Create a virtual router", + "description": "Unlocks a Template.", "tags": [ "default" ], - "summary": "post router", + "summary": "unlock a template", "parameters": [ { - "description": "Router Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterRequest" - } + "type": "integer", + "description": "template id", + "name": "template", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/router/{router}": { + "/v2/cloud/user": { "get": { "security": [ { "Token": [] } ], - "description": "List a virtual router", + "description": "Retrieves information for all users.", "tags": [ "default" ], - "summary": "get router", - "parameters": [ - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" + "summary": "retrieves information for all users", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UsersResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + }, + "post": { + "security": [ { - "type": "string", - "description": "Router ID", - "name": "router", - "in": "path", - "required": true + "Token": [] + } + ], + "description": "Create new user account.", + "tags": [ + "default" + ], + "summary": "create new user", + "parameters": [ + { + "description": "User", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateUserRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RouterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateUserResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v2/cloud/user/login": { + "post": { "security": [ { "Token": [] } ], - "description": "Delete a virtual router", + "description": "Generate or set user login token.", "tags": [ "default" ], - "summary": "delete router", + "summary": "set user login token", "parameters": [ { - "type": "boolean", - "description": "Delete disk", - "name": "disk", - "in": "query" - }, - { - "type": "string", - "description": "Router ID", - "name": "router", - "in": "path", - "required": true + "description": "User login", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserLoginRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserLoginResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v2/cloud/user/quota": { + "get": { "security": [ { "Token": [] } ], - "description": "Update a virtual router", + "description": "Returns the default user quota limits.", "tags": [ "default" ], - "summary": "update router", - "parameters": [ - { - "type": "integer", - "description": "router id", - "name": "router", - "in": "path", - "required": true - }, - { - "description": "Router Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateRouterRequest" - } - } - ], + "summary": "returns the default user quota limits", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateRouterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserQuotaResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/router/{router}/instantiate": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Instantiate a virtual router", + "description": "Updates the default user quota limits.", "tags": [ "default" ], - "summary": "instantiate router", + "summary": "updates the default user quota limits", "parameters": [ { - "type": "integer", - "description": "router id", - "name": "router", - "in": "path", - "required": true - }, - { - "description": "Router Template", + "description": "Default user quota", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateRouterRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDefaultUserQuotaRequest" } } ], @@ -15832,245 +15843,220 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateRouterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDefaultUserQuotaResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/router/{router}/lock": { - "patch": { + "/v2/cloud/user/{user}": { + "get": { "security": [ { "Token": [] } ], - "description": "Lock a virtual router", + "description": "Retrieves information for the user.", "tags": [ "default" ], - "summary": "lock router", + "summary": "retrieves information for the user", "parameters": [ { "type": "integer", - "description": "router id", - "name": "router", + "description": "User ID", + "name": "user", "in": "path", "required": true - }, - { - "description": "Router Lock", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockRouterRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockRouterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/router/{router}/name": { - "patch": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Rename a virtual router", + "description": "Deletes an user.", "tags": [ "default" ], - "summary": "rename router", + "summary": "delete user", "parameters": [ { "type": "integer", - "description": "router id", - "name": "router", + "description": "Group ID", + "name": "user", "in": "path", "required": true - }, - { - "description": "Router Rename", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameRouterRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameRouterResponse" - } + "description": "OK" }, "400": { - "description": "Bad Request", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "Internal Server Error", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/router/{router}/nic": { - "post": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Add a NIC to a virtual router", + "description": "Update user data.", "tags": [ "default" ], - "summary": "add router nic", + "summary": "update user", "parameters": [ { "type": "integer", - "description": "virtual router ID", - "name": "router", + "description": "user id", + "name": "user", "in": "path", "required": true }, { - "description": "Router NIC", + "description": "User", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterNICRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateUserRequest" } } ], @@ -16078,158 +16064,163 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterNICResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateUserResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/router/{router}/nic/{nic}": { - "delete": { + "/v2/cloud/user/{user}/auth": { + "patch": { "security": [ { "Token": [] } ], - "description": "Remove a NIC from a virtual router", + "description": "Changes the authentication driver and the password for the given user.", "tags": [ "default" ], - "summary": "remove router nic", + "summary": "change authentication driver and password", "parameters": [ { - "type": "string", - "description": "Router ID", - "name": "router", + "type": "integer", + "description": "user id", + "name": "user", "in": "path", "required": true }, { - "type": "string", - "description": "NIC ID", - "name": "nic", - "in": "path", - "required": true + "description": "authentication driver", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserAuthRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserAuthResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/router/{router}/ownership": { + "/v2/cloud/user/{user}/enable": { "patch": { "security": [ { "Token": [] } ], - "description": "Change a virtual router ownership", + "description": "Enables or disables an user.", "tags": [ "default" ], - "summary": "change router ownership", + "summary": "enables or disables an user", "parameters": [ { "type": "integer", - "description": "router id", - "name": "router", + "description": "user id", + "name": "user", "in": "path", "required": true }, { - "description": "Router Ownership", + "description": "Enable", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableUserRequest" } } ], @@ -16237,528 +16228,533 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableUserResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/router/{router}/permissions": { - "patch": { + "/v2/cloud/user/{user}/group/{group}": { + "post": { "security": [ { "Token": [] } ], - "description": "Change a virtual router permissions", + "description": "Adds the user to a secondary group.", "tags": [ "default" ], - "summary": "change router permissions", + "summary": "adds the user to a secondary group.", "parameters": [ { "type": "integer", - "description": "router id", - "name": "router", + "description": "User ID", + "name": "user", "in": "path", "required": true }, { - "description": "Router Permissions", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterPermissionsRequest" - } + "type": "integer", + "description": "Group ID", + "name": "group", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterPermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddUserGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/router/{router}/unlock": { - "patch": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Unlock a virtual router.", + "description": "Removes user from a secondary group.", "tags": [ "default" ], - "summary": "unlock router", + "summary": "remove user from group", "parameters": [ { "type": "integer", - "description": "router id", - "name": "router", + "description": "User ID", + "name": "user", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "Group ID", + "name": "group", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockRouterResponse" - } + "description": "OK" }, "400": { - "description": "Bad Request", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "Internal Server Error", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/security-group": { - "post": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Create a new security group.", + "description": "Changes the group of the given user.", "tags": [ "default" ], - "summary": "create a new security group", + "summary": "changes the group of the given user", "parameters": [ { - "description": "Security Group", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateSecurityGroupRequest" - } + "type": "integer", + "description": "user id", + "name": "user", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "group id", + "name": "group", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateSecurityGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/security-group/": { - "get": { + "/v2/cloud/user/{user}/password": { + "patch": { "security": [ { "Token": [] } ], - "description": "retrieves information for all or part of the security\ngroups in the pool.", + "description": "Set new user password.", "tags": [ "default" ], - "summary": "retrieves information for subset of security groups", + "summary": "set user password", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" + "type": "integer", + "description": "user id", + "name": "user", + "in": "path", + "required": true + }, + { + "description": "User password", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserPasswordRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroupsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserPasswordResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/security-group/{group}": { - "get": { + "/v2/cloud/user/{user}/quota": { + "post": { "security": [ { "Token": [] } ], - "description": "Retrieves information for the security group.", + "description": "Sets the user quota limits.", "tags": [ "default" ], - "summary": "retrieves information for the security group", + "summary": "sets the user quota limits", "parameters": [ - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, { "type": "integer", - "description": "Security group ID", - "name": "sg", + "description": "user id", + "name": "user", "in": "path", "required": true + }, + { + "description": "user quota", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetUserQuotaRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetUserQuotaResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v2/cloud/zone": { + "get": { "security": [ { "Token": [] } ], - "description": "Deletes the given security group from the pool.", + "description": "List all zones.", "tags": [ "default" ], - "summary": "delete a security group", - "parameters": [ - { - "type": "integer", - "description": "Group ID", - "name": "sg", - "in": "path", - "required": true - } - ], + "summary": "get zones", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ZonesResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "patch": { + "post": { "security": [ { "Token": [] } ], - "description": "Replaces the security group template contents.", + "description": "Create a zone.", "tags": [ "default" ], - "summary": "replaces the security group template contents", + "summary": "post zone", "parameters": [ { - "type": "integer", - "description": "sg id", - "name": "sg", - "in": "path", - "required": true - }, - { - "description": "Security Group", + "description": "Zone Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateSecurityGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateZoneRequest" } } ], @@ -16766,245 +16762,290 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateSecurityGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateZoneResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/security-group/{group}/chmod": { - "patch": { + "/v2/cloud/zone/raft": { + "get": { "security": [ { "Token": [] } ], - "description": "Changes the permission bits of a security group.", + "description": "Get zone raft status.", "tags": [ "default" ], - "summary": "changes the permission bits of a security group", + "summary": "get zone raft status", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ZonesRaftStatusResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + } + }, + "/v2/cloud/zone/{zone}": { + "get": { + "security": [ + { + "Token": [] + } + ], + "description": "Get a zone.", + "tags": [ + "default" + ], + "summary": "get zone", "parameters": [ + { + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" + }, { "type": "integer", - "description": "sg id", - "name": "sg", + "description": "Zone ID", + "name": "zone", "in": "path", "required": true - }, - { - "description": "Permissions", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupPermissionsRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupPermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ZoneResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/security-group/{group}/chown": { - "patch": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Changes the ownership of a security group.", + "description": "Delete a zone.", "tags": [ "default" ], - "summary": "changes the ownership of a security group", + "summary": "delete zone", "parameters": [ { - "type": "integer", - "description": "sg id", - "name": "sg", + "type": "string", + "description": "Zone ID", + "name": "zone", "in": "path", "required": true - }, - { - "description": "New user and group", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupOwnershipRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupOwnershipResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/security-group/{group}/clone": { - "post": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Clones an existing security group.", + "description": "Update a zone.", "tags": [ "default" ], - "summary": "clones an existing security group", + "summary": "update zone", "parameters": [ { "type": "integer", - "description": "Group ID", - "name": "sg", + "description": "zone id", + "name": "zone", "in": "path", "required": true }, { - "description": "Cloned group", + "description": "Zone Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneSecurityGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateZoneRequest" } } ], @@ -17012,81 +17053,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneSecurityGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateZoneResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/security-group/{group}/commit": { + "/v2/cloud/zone/{zone}/enable": { "patch": { "security": [ { "Token": [] } ], - "description": "Commit security group changes to associated VMs. This is\nintended for retrying updates of VMs or reinitialize the updating process if\none stopped or failed after a one.secgroup.update call.", + "description": "Enable a zone.", "tags": [ "default" ], - "summary": "Commit security group changes to associated VMs", + "summary": "enable zone", "parameters": [ { "type": "integer", - "description": "sg id", - "name": "sg", + "description": "zone id", + "name": "zone", "in": "path", "required": true }, { - "description": "Security group ID", + "description": "Zone Enable", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CommitSecurityGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableZoneRequest" } } ], @@ -17094,81 +17135,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CommitSecurityGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableZoneResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/security-group/{group}/rename": { + "/v2/cloud/zone/{zone}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Renames a security group.", + "description": "Rename a zone.", "tags": [ "default" ], - "summary": "renames a security group", + "summary": "rename zone", "parameters": [ { "type": "integer", - "description": "sg id", - "name": "sg", + "description": "zone id", + "name": "zone", "in": "path", "required": true }, { - "description": "Security Group name", + "description": "Zone Name", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameSecurityGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameZoneRequest" } } ], @@ -17176,350 +17217,357 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameSecurityGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameZoneResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/system/config": { - "get": { + "/v2/metal/datastore": { + "post": { "security": [ { "Token": [] } ], - "description": "Return the system configuration.", + "description": "Creates a storage pool and associates it with a datastore.", "tags": [ "default" ], - "summary": "returns the core configuration", - "responses": { - "200": { - "description": "OK", + "summary": "Create a datastore", + "parameters": [ + { + "description": "Datastore definition", + "name": "data", + "in": "body", + "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SystemConfigResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.CreateDatastoreRequest" } + } + ], + "responses": { + "200": { + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, - "404": { - "description": "Not Found", + "409": { + "description": "Conflict", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, - "423": { - "description": "Locked", + "500": { + "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, - "500": { - "description": "Internal Server Error", + "501": { + "description": "Not Implemented", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/system/version": { - "get": { + "/v2/metal/datastore/{name}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Return the core system version.", + "description": "Delete a datastore and underlying pool.", "tags": [ "default" ], - "summary": "returns the core version", + "summary": "delete datastore", + "parameters": [ + { + "type": "string", + "description": "Datastore Name", + "name": "name", + "in": "path", + "required": true + } + ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SystemVersionResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "501": { + "description": "Not Implemented", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/template": { - "get": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Retrieves information for all or part of the Resources in the pool.", + "description": "Rename a datastore and the underlying pool.", "tags": [ "default" ], - "summary": "list templates", + "summary": "rename datastore", "parameters": [ { "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" + "description": "Existing Datastore Name", + "name": "name", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.TemplatesResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "501": { + "description": "Not Implemented", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v2/metal/host": { + "get": { "security": [ { "Token": [] } ], - "description": "Allocates a new template.", + "description": "Get a list of all bare-metal hosts.", "tags": [ "default" ], - "summary": "post template", - "parameters": [ - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateTemplateRequest" - } - } - ], + "summary": "get hosts", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HostsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/template/{template}": { + "/v2/metal/host/{id}/": { "get": { "security": [ { "Token": [] } ], - "description": "Retrieves information for the template.", + "description": "Returns the details of the host with the given hostname.", "tags": [ "default" ], - "summary": "list a template", + "summary": "Get a single host", "parameters": [ { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, - { - "type": "integer", - "description": "ID", - "name": "template", + "type": "string", + "description": "hostname", + "name": "id", "in": "path", "required": true } @@ -17528,484 +17576,484 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.TemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HostResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v2/snapper/snapshots/archive": { + "get": { "security": [ { "Token": [] } ], - "description": "Deletes the given template from the pool.", + "description": "Returns a list of all archive snapshots.", "tags": [ "default" ], - "summary": "delete template", - "parameters": [ - { - "type": "boolean", - "description": "Delete disk", - "name": "disk", - "in": "query" - }, - { - "type": "string", - "description": "Template ID", - "name": "template", - "in": "path", - "required": true - } - ], + "summary": "get archive snapshots", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DeleteTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_snapshot.ListArchiveResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v2/snapper/snapshots/manual": { + "get": { "security": [ { "Token": [] } ], - "description": "Replaces the template contents.", + "description": "Returns a list of all manual snapshots.", "tags": [ "default" ], - "summary": "update template", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateTemplateRequest" - } - } - ], + "summary": "get manual snapshots", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_snapshot.ListManualResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/template/{template}/clone": { - "post": { + "/v2/snapper/snapshots/remote": { + "get": { "security": [ { "Token": [] } ], - "description": "Clones an existing virtual machine template.", + "description": "Returns a list of all remote snapshots.", "tags": [ "default" ], - "summary": "clone template", - "parameters": [ - { - "type": "string", - "description": "Template ID", - "name": "template", - "in": "path", - "required": true + "summary": "get remote snapshots", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_snapshot.ListRemoteResponse" + } }, - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, + "400": { + "description": "Bad Request", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneTemplateRequest" + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" } } + } + } + }, + "/v2/snapper/stack": { + "get": { + "security": [ + { + "Token": [] + } + ], + "description": "Returns the runtime stack of all goroutines in the snapper service.", + "tags": [ + "default" ], + "summary": "get snapper stack", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CloneTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_snapshot.ListStackResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/template/{template}/instantiate": { - "patch": { + "/v2/snapper/status": { + "get": { "security": [ { "Token": [] } ], - "description": "Instantiates a new virtual machine from a template.", + "description": "Returns the status of the snapper service.", "tags": [ "default" ], - "summary": "instantiate template", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateTemplateRequest" - } - } - ], + "summary": "get snapper status", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_snapshot.ListStatusResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/template/{template}/lock": { - "patch": { + "/v3-preview": { + "get": { "security": [ { "Token": [] } ], - "description": "Locks a Template.", + "description": "Get a the product name and release for a cluster", "tags": [ - "default" + "preview" ], - "summary": "lock a template", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true + "summary": "get hosts", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/manifold.InfoResponse" + } }, - { - "description": "Templates", - "name": "data", - "in": "body", - "required": true, + "500": { + "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockTemplateRequest" + "$ref": "#/definitions/manifold.ResponseError" } } + } + } + }, + "/v3-preview/cloud/acl": { + "get": { + "security": [ + { + "Token": [] + } ], + "description": "Lists ACL rules.", + "tags": [ + "preview" + ], + "summary": "get acl rules", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ACLsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/template/{template}/name": { - "patch": { + }, + "post": { "security": [ { "Token": [] } ], - "description": "Renames a template.", + "description": "Create an ACL rule.", "tags": [ - "default" + "preview" ], - "summary": "rename template", + "summary": "create acl rule", "parameters": [ { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Template", - "name": "data", + "description": "Request body", + "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameTemplateRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateACLRequest" } } ], @@ -18013,970 +18061,928 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateACLResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/template/{template}/ownership": { - "patch": { + "/v3-preview/cloud/acl/{acl}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Changes the ownership of a template.", + "description": "Delete an ACL rule.", "tags": [ - "default" + "preview" ], - "summary": "change template ownership", + "summary": "delete acl rule", "parameters": [ { "type": "integer", - "description": "template id", - "name": "template", + "description": "ACL ID", + "name": "acl", "in": "path", "required": true - }, - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplateOwnershipRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplateOwnershipResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/template/{template}/permissions": { - "patch": { + "/v3-preview/cloud/cluster": { + "get": { "security": [ { "Token": [] } ], - "description": "Changes the permission bits of a template.", + "description": "Lists information for all clusters.", "tags": [ - "default" - ], - "summary": "change template permissions", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplatePermissionsRequest" - } - } + "preview" ], + "summary": "get clusters", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplatePermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ClustersResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/template/{template}/unlock": { - "patch": { + "/v3-preview/cloud/cluster/{cluster}": { + "get": { "security": [ { "Token": [] } ], - "description": "Unlocks a Template.", + "description": "Lists cluster information.", "tags": [ - "default" + "preview" ], - "summary": "unlock a template", + "summary": "get cluster", "parameters": [ { "type": "integer", - "description": "template id", - "name": "template", + "description": "cluster id", + "name": "cluster", "in": "path", "required": true + }, + { + "type": "boolean", + "description": "decrypt secrets", + "name": "decrypt", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ClusterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/user": { + "/v3-preview/cloud/compute": { "get": { "security": [ { "Token": [] } ], - "description": "Retrieves information for the user.", + "description": "Get computes.", "tags": [ - "default" + "preview" ], - "summary": "retrieves information for the user", + "summary": "get computes", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UsersResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v3-preview/cloud/datacenter": { + "get": { "security": [ { "Token": [] } ], - "description": "Create new user account.", + "description": "List all datacenters.", "tags": [ - "default" - ], - "summary": "create new user", - "parameters": [ - { - "description": "User", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateUserRequest" - } - } + "preview" ], + "summary": "get datacenters", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateUserResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DataCentersResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/user/login": { - "post": { + "/v3-preview/cloud/datacenter/{datacenter}": { + "get": { "security": [ { "Token": [] } ], - "description": "Generate or set user login token.", + "description": "List a datacenter.", "tags": [ - "default" + "preview" ], - "summary": "set user login token", + "summary": "get datacenter", "parameters": [ { - "description": "User login", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserLoginRequest" - } + "type": "string", + "description": "DataCenter ID", + "name": "datacenter", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserLoginResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DataCenterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/user/quota": { + "/v3-preview/cloud/datastore": { "get": { "security": [ { "Token": [] } ], - "description": "Returns the default user quota limits.", + "description": "Lists all datastores.", "tags": [ - "default" + "preview" ], - "summary": "returns the default user quota limits", + "summary": "list datastores", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserQuotaResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DatastoresResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/cloud/datastore/{datastore}": { + "get": { "security": [ { "Token": [] } ], - "description": "Updates the default user quota limits.", + "description": "Lists a datastores.", "tags": [ - "default" + "preview" ], - "summary": "updates the default user quota limits", + "summary": "list datastore", "parameters": [ { - "description": "Default user quota", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDefaultUserQuotaRequest" - } + "type": "integer", + "description": "Datastore ID", + "name": "datastore", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDefaultUserQuotaResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DatastoreResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/user/{user}": { - "get": { + "/v3-preview/cloud/datastore/{datastore}/enable": { + "patch": { "security": [ { "Token": [] } ], - "description": "Retrieves information for the user.", + "description": "Enables a datastore.", "tags": [ - "default" + "preview" ], - "summary": "retrieves information for the user", + "summary": "enable datastore", "parameters": [ { "type": "integer", - "description": "User ID", - "name": "user", + "description": "datastore id", + "name": "datastore", "in": "path", "required": true + }, + { + "description": "Datastore ID", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableDatastoreRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableDatastoreResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v3-preview/cloud/document": { + "post": { "security": [ { "Token": [] } ], - "description": "Deletes an user.", + "description": "allocate a document", "tags": [ - "default" + "preview" ], - "summary": "delete user", + "summary": "post a document", "parameters": [ { - "type": "integer", - "description": "Group ID", - "name": "user", - "in": "path", - "required": true + "description": "Document Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AllocateDocumentRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AllocateDocumentResponse" + } }, "400": { - "description": "error", + "description": "Bad Request", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "error", + "description": "Internal Server Error", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/cloud/document/{document}": { + "get": { "security": [ { "Token": [] } ], - "description": "Update user data.", + "description": "Get a document.", "tags": [ - "default" + "preview" ], - "summary": "update user", + "summary": "get document", "parameters": [ { "type": "integer", - "description": "user id", - "name": "user", + "description": "Document", + "name": "document", "in": "path", "required": true - }, - { - "description": "User", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateUserRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateUserResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/user/{user}/auth": { - "patch": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Changes the authentication driver and the password for the given user.", + "description": "delete a document", "tags": [ - "default" + "preview" ], - "summary": "change authentication driver and password", + "summary": "delete a document", "parameters": [ { "type": "integer", - "description": "user id", - "name": "user", + "description": "Document", + "name": "document", "in": "path", "required": true - }, - { - "description": "authentication driver", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserAuthRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserAuthResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/user/{user}/enable": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Enables or disables an user.", + "description": "Update a document.", "tags": [ - "default" + "preview" ], - "summary": "enables or disables an user", + "summary": "update a document", "parameters": [ { "type": "integer", - "description": "user id", - "name": "user", + "description": "document id", + "name": "document", "in": "path", "required": true }, { - "description": "Enable", + "description": "Document Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableUserRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDocumentRequest" } } ], @@ -18984,314 +18990,245 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableUserResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/user/{user}/group/{group}": { + "/v3-preview/cloud/document/{document}/clone": { "post": { "security": [ { "Token": [] } ], - "description": "Adds the User to a secondary group..", + "description": "Clone a document.", "tags": [ - "default" + "preview" ], - "summary": "adds the User to a secondary group.", + "summary": "post a clone", "parameters": [ { "type": "integer", - "description": "User ID", - "name": "user", + "description": "Document", + "name": "document", "in": "path", "required": true }, { - "type": "integer", - "description": "Group ID", - "name": "group", - "in": "path", - "required": true + "description": "Document", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneDocumentRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AddUserGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneDocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v3-preview/cloud/document/{document}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Removes user from a secondary group.", + "description": "Lock a document.", "tags": [ - "default" + "preview" ], - "summary": "remove user from group", + "summary": "lock document", "parameters": [ { "type": "integer", - "description": "User ID", - "name": "user", + "description": "document id", + "name": "document", "in": "path", "required": true }, { - "type": "integer", - "description": "Group ID", - "name": "group", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "error", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "error", - "schema": { - "type": "string" - } - }, - "503": { - "description": "Service Unavailable", + "description": "Document Lock", + "name": "data", + "in": "body", + "required": true, "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockDocumentRequest" } } - } - }, - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Changes the group of the given user.", - "tags": [ - "default" - ], - "summary": "changes the group of the given user", - "parameters": [ - { - "type": "integer", - "description": "user id", - "name": "user", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "group id", - "name": "group", - "in": "path", - "required": true - } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockDocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/user/{user}/password": { + "/v3-preview/cloud/document/{document}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Set new user password.", + "description": "Rename a document.", "tags": [ - "default" + "preview" ], - "summary": "set user password", + "summary": "patch name", "parameters": [ { "type": "integer", - "description": "user id", - "name": "user", + "description": "document id", + "name": "document", "in": "path", "required": true }, { - "description": "User password", + "description": "Document", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserPasswordRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameDocumentRequest" } } ], @@ -19299,81 +19236,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserPasswordResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameDocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/user/{user}/quota": { - "post": { + "/v3-preview/cloud/document/{document}/ownership": { + "patch": { "security": [ { "Token": [] } ], - "description": "Sets the user quota limits.", + "description": "Change ownership on a document.", "tags": [ - "default" + "preview" ], - "summary": "sets the user quota limits", + "summary": "patch ownership", "parameters": [ { "type": "integer", - "description": "user id", - "name": "user", + "description": "document id", + "name": "document", "in": "path", "required": true }, { - "description": "user quota", + "description": "Document Ownership", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetUserQuotaRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDocumentOwnershipRequest" } } ], @@ -19381,397 +19318,477 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SetUserQuotaResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDocumentOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/zone": { - "get": { + "/v3-preview/cloud/document/{document}/permissions": { + "patch": { "security": [ { "Token": [] } ], - "description": "List all zones.", + "description": "Change permissions on a document.", "tags": [ - "default" + "preview" + ], + "summary": "patch persmissions", + "parameters": [ + { + "type": "integer", + "description": "document id", + "name": "document", + "in": "path", + "required": true + }, + { + "description": "Document Permissions", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDocumentPermissionsRequest" + } + } ], - "summary": "get zones", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ZonesResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDocumentPermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v3-preview/cloud/document/{document}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Create a zone.", + "description": "Unlock a document.", "tags": [ - "default" + "preview" ], - "summary": "post zone", + "summary": "unlock document", "parameters": [ { - "description": "Zone Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateZoneRequest" - } + "type": "integer", + "description": "document id", + "name": "document", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.CreateZoneResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockDocumentResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/zone/raft": { + "/v3-preview/cloud/documents": { "get": { "security": [ { "Token": [] } ], - "description": "Get zone raft status.", + "description": "List all documents.", "tags": [ - "default" + "preview" + ], + "summary": "list documents", + "parameters": [ + { + "type": "string", + "description": "Document Type", + "name": "type", + "in": "query" + } ], - "summary": "get zone raft status", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ZonesRaftStatusResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DocumentsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/zone/{zone}": { + "/v3-preview/cloud/group": { "get": { "security": [ { "Token": [] } ], - "description": "Get a zone.", + "description": "List all groups.", "tags": [ - "default" - ], - "summary": "get zone", - "parameters": [ - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, - { - "type": "integer", - "description": "Zone ID", - "name": "zone", - "in": "path", - "required": true - } + "preview" ], + "summary": "list groups", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ZoneResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.GroupsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "delete": { + "post": { "security": [ { "Token": [] } ], - "description": "Delete a zone.", + "description": "Allocates a new group.", "tags": [ - "default" + "preview" ], - "summary": "delete zone", + "summary": "post group", "parameters": [ { - "type": "string", - "description": "Zone ID", - "name": "zone", - "in": "path", - "required": true + "description": "Group", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateGroupRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateGroupResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + } + }, + "/v3-preview/cloud/group/quota": { + "get": { + "security": [ + { + "Token": [] + } + ], + "description": "Returns the default group quota limits.", + "tags": [ + "preview" + ], + "summary": "return the default group quota", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.GroupQuotaResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -19782,26 +19799,19 @@ "Token": [] } ], - "description": "Update a zone.", + "description": "Updates the default group quota limits.", "tags": [ - "default" + "preview" ], - "summary": "update zone", + "summary": "updates the default group quota limits", "parameters": [ { - "type": "integer", - "description": "zone id", - "name": "zone", - "in": "path", - "required": true - }, - { - "description": "Zone Template", + "description": "quota", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateZoneRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateGroupQuotaRequest" } } ], @@ -19809,381 +19819,381 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateZoneResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateGroupQuotaResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/cloud/zone/{zone}/enable": { - "patch": { + "/v3-preview/cloud/group/{group}": { + "get": { "security": [ { "Token": [] } ], - "description": "Enable a zone.", + "description": "Returns group info.", "tags": [ - "default" + "preview" ], - "summary": "enable zone", + "summary": "get group info", "parameters": [ { "type": "integer", - "description": "zone id", - "name": "zone", + "description": "Group ID", + "name": "group", "in": "path", "required": true - }, - { - "description": "Zone Enable", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableZoneRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.EnableZoneResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.GroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/cloud/zone/{zone}/name": { - "patch": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Rename a zone.", + "description": "Deletes a group.", "tags": [ - "default" + "preview" ], - "summary": "rename zone", + "summary": "delete group", "parameters": [ { "type": "integer", - "description": "zone id", - "name": "zone", + "description": "Group ID", + "name": "group", "in": "path", "required": true - }, - { - "description": "Zone Name", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameZoneRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RenameZoneResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/metal/datastore": { - "post": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Creates a storage pool and associates it with a datastore.", + "description": "Udates the group", "tags": [ - "default" + "preview" ], - "summary": "Create a datastore", + "summary": "patch group", "parameters": [ { - "description": "Datastore definition", + "type": "integer", + "description": "group id", + "name": "group", + "in": "path", + "required": true + }, + { + "description": "Group", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_metal.CreateDatastoreRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateGroupRequest" } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateGroupResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, - "409": { - "description": "Conflict", + "404": { + "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, - "500": { - "description": "Internal Server Error", + "423": { + "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, - "501": { - "description": "Not Implemented", + "500": { + "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/metal/datastore/{name}": { - "delete": { + "/v3-preview/cloud/group/{group}/admin": { + "patch": { "security": [ { "Token": [] } ], - "description": "Delete a datastore and underlying pool.", + "description": "Adds a User to the Group administrators set", "tags": [ - "default" + "preview" ], - "summary": "delete datastore", + "summary": "add group admin", "parameters": [ { - "type": "string", - "description": "Datastore Name", - "name": "name", + "type": "integer", + "description": "Group ID", + "name": "group", "in": "path", "required": true + }, + { + "description": "Group Admin", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddGroupAdminRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddGroupAdminResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "501": { - "description": "Not Implemented", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/cloud/group/{group}/admin/{user}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Rename a datastore and the underlying pool.", + "description": "Remove an User from the administrators set", "tags": [ - "default" + "preview" ], - "summary": "rename datastore", + "summary": "remove group admin", "parameters": [ { - "type": "string", - "description": "Existing Datastore Name", - "name": "name", + "type": "integer", + "description": "Group ID", + "name": "group", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "User ID", + "name": "user", "in": "path", "required": true } @@ -20195,828 +20205,774 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "501": { - "description": "Not Implemented", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/metal/host": { - "get": { + "/v3-preview/cloud/group/{group}/quota": { + "patch": { "security": [ { "Token": [] } ], - "description": "Get a list of all bare-metal hosts.", + "description": "Set quota for the group.", "tags": [ - "default" + "preview" + ], + "summary": "set quota", + "parameters": [ + { + "type": "integer", + "description": "Group ID", + "name": "group", + "in": "path", + "required": true + }, + { + "description": "Group quota", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetGroupQuotaRequest" + } + } ], - "summary": "get hosts", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HostsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetGroupQuotaResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/metal/host/{id}/": { + "/v3-preview/cloud/hook": { "get": { "security": [ { "Token": [] } ], - "description": "Returns the details of the host with the given hostname.", + "description": "List hooks.", "tags": [ - "default" + "preview" ], - "summary": "Get a single host", + "summary": "list hooks", "parameters": [ { "type": "string", - "description": "hostname", - "name": "id", - "in": "path", - "required": true + "description": "Filter", + "name": "filter", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HostResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HooksResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/snapper/snapshots/archive": { - "get": { + }, + "post": { "security": [ { "Token": [] } ], - "description": "Returns a list of all archive snapshots.", + "description": "Create a new hook.", "tags": [ - "default" + "preview" ], - "summary": "get archive snapshots", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_snapshot.ListArchiveResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", + "summary": "post hook", + "parameters": [ + { + "description": "Host Template", + "name": "data", + "in": "body", + "required": true, "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateHookRequest" } } - } - } - }, - "/v2/snapper/snapshots/manual": { - "get": { - "security": [ - { - "Token": [] - } ], - "description": "Returns a list of all manual snapshots.", - "tags": [ - "default" - ], - "summary": "get manual snapshots", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_snapshot.ListManualResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v2/snapper/snapshots/remote": { + "/v3-preview/cloud/hook/{hook}": { "get": { "security": [ { "Token": [] } ], - "description": "Returns a list of all remote snapshots.", + "description": "List a hook.", "tags": [ - "default" + "preview" + ], + "summary": "get a hook", + "parameters": [ + { + "type": "integer", + "description": "Hook ID", + "name": "hook", + "in": "path", + "required": true + } ], - "summary": "get remote snapshots", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_snapshot.ListRemoteResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/snapper/stack": { - "get": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Returns the runtime stack of all goroutines in the snapper service.", + "description": "Delete a hook.", "tags": [ - "default" + "preview" + ], + "summary": "delete hook", + "parameters": [ + { + "type": "integer", + "description": "Hook ID", + "name": "hook", + "in": "path", + "required": true + } ], - "summary": "get snapper stack", "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_snapshot.ListStackResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v2/snapper/status": { - "get": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Returns the status of the snapper service.", + "description": "Update a hook.", "tags": [ - "default" + "preview" + ], + "summary": "update hook", + "parameters": [ + { + "type": "integer", + "description": "hook id", + "name": "hook", + "in": "path", + "required": true + }, + { + "description": "Hook Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateHookRequest" + } + } ], - "summary": "get snapper status", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_snapshot.ListStatusResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3": { - "get": { + "/v3-preview/cloud/hook/{hook}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Get a the product name and release for a cluster", + "description": "Lock a hook.", "tags": [ "preview" ], - "summary": "get hosts", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/sifi.InfoResponse" - } + "summary": "lock a hook", + "parameters": [ + { + "type": "integer", + "description": "hook id", + "name": "hook", + "in": "path", + "required": true }, - "500": { - "description": "Internal Server Error", + { + "description": "Lock Data", + "name": "data", + "in": "body", + "required": true, "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockHookRequest" } } - } - } - }, - "/v3/cloud/acl": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Lists ACL rules.", - "tags": [ - "preview" ], - "summary": "get acl rules", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ACLsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v3-preview/cloud/hook/{hook}/log": { + "get": { "security": [ { "Token": [] } ], - "description": "Create an ACL rule.", + "description": "List hook logs.", "tags": [ "preview" ], - "summary": "create acl rule", + "summary": "list hook logs", "parameters": [ { - "description": "Request body", - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateACLRequest" - } + "type": "integer", + "description": "Hook ID", + "name": "hook", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Minimum Date", + "name": "min", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Maximum Date", + "name": "max", + "in": "query", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateACLResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookLogResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/acl/{acl}": { - "delete": { + "/v3-preview/cloud/hook/{hook}/name": { + "patch": { "security": [ { "Token": [] } ], - "description": "Delete an ACL rule.", + "description": "Rename a hook.", "tags": [ "preview" ], - "summary": "delete acl rule", + "summary": "patch hook name", "parameters": [ { "type": "integer", - "description": "ACL ID", - "name": "acl", + "description": "hook id", + "name": "hook", "in": "path", "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", + { + "description": "Hook Name", + "name": "data", + "in": "body", + "required": true, "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameHookRequest" } } - } - } - }, - "/v3/cloud/cluster": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Lists information for all clusters.", - "tags": [ - "preview" ], - "summary": "get clusters", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ClustersResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v3-preview/cloud/hook/{hook}/retry": { + "patch": { "security": [ { "Token": [] } ], - "description": "Creates a cluster", + "description": "Retry a hook.", "tags": [ "preview" ], - "summary": "post cluster", + "summary": "retry a hook", "parameters": [ { - "description": "body", - "name": "body", + "type": "integer", + "description": "hook id", + "name": "hook", + "in": "path", + "required": true + }, + { + "description": "Retry Data", + "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateClusterRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RetryHookRequest" } } ], @@ -21024,618 +20980,672 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateClusterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RetryHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/cluster/{cluster}": { - "get": { + "/v3-preview/cloud/hook/{hook}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Lists cluster information.", + "description": "Unlock a hook.", "tags": [ "preview" ], - "summary": "get cluster", + "summary": "unlock a hook", "parameters": [ { "type": "integer", - "description": "cluster id", - "name": "cluster", + "description": "hook id", + "name": "hook", "in": "path", "required": true }, { - "type": "boolean", - "description": "decrypt secrets", - "name": "decrypt", - "in": "query" + "description": "Unlock Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockHookRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ClusterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockHookResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v3-preview/cloud/host/monitoring": { + "get": { "security": [ { "Token": [] } ], - "description": "Deletes a cluster.", + "description": "Get a compute host's monitoring data.", "tags": [ "preview" ], - "summary": "delete cluster", + "summary": "get computes monitoring", "parameters": [ { "type": "integer", - "description": "cluster", - "name": "cluster", - "in": "path", - "required": true + "default": -1, + "description": "Seconds", + "name": "seconds", + "in": "query" } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostsMonitoringResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/cloud/host/{host}": { + "get": { "security": [ { "Token": [] } ], - "description": "Update a cluster.", + "description": "Get a compute host.", "tags": [ "preview" ], - "summary": "patch cluster", + "summary": "get compute", "parameters": [ { "type": "integer", - "description": "cluster id", - "name": "cluster", + "description": "Host ID", + "name": "host", "in": "path", "required": true - }, - { - "description": "data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateClusterRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateClusterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/cluster/{cluster}/datastore/{datastore}": { - "delete": { + "/v3-preview/cloud/host/{host}/monitoring": { + "get": { "security": [ { "Token": [] } ], - "description": "Deletes a datastore from a cluster.", + "description": "Get a compute host's monitoring data.", "tags": [ "preview" ], - "summary": "delete cluster datastore", + "summary": "get compute monitoring", "parameters": [ { "type": "integer", - "description": "cluster id", - "name": "cluster", + "description": "Host ID", + "name": "host", "in": "path", "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostMonitoringResponse" + } }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + } + }, + "/v3-preview/cloud/image": { + "get": { + "security": [ { - "type": "integer", - "description": "datastore id", - "name": "datastore", - "in": "path", - "required": true + "Token": [] + } + ], + "description": "List images.", + "tags": [ + "preview" + ], + "summary": "list images", + "parameters": [ + { + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ImagesResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "patch": { + "post": { "security": [ { "Token": [] } ], - "description": "Adds a datastore to a cluster.", + "description": "Create a new image.", "tags": [ "preview" ], - "summary": "add cluster datastore", + "summary": "post image", "parameters": [ { - "type": "integer", - "description": "cluster id", - "name": "cluster", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "datastore id", - "name": "datastore", - "in": "path", - "required": true + "description": "Image Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateImageRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddClusterDatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/cluster/{cluster}/host/{host}": { - "delete": { + "/v3-preview/cloud/image/{image}": { + "get": { "security": [ { "Token": [] } ], - "description": "Deletes a host from a cluster.", + "description": "List image.", "tags": [ "preview" ], - "summary": "delete cluster host", + "summary": "list image", "parameters": [ { - "type": "integer", - "description": "cluster id", - "name": "cluster", - "in": "path", - "required": true + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" }, { "type": "integer", - "description": "host id", - "name": "host", + "description": "Image ID", + "name": "image", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ImageResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "patch": { + "delete": { "security": [ { "Token": [] } ], - "description": "Adds a host to a cluster.", + "description": "Delete an image.", "tags": [ "preview" ], - "summary": "add cluster host", + "summary": "delete image", "parameters": [ { - "type": "integer", - "description": "cluster id", - "name": "cluster", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "host id", - "name": "host", + "type": "string", + "description": "Image ID", + "name": "image", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddClusterHostResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/cluster/{cluster}/name": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Renames a cluster.", + "description": "Update an image.", "tags": [ "preview" ], - "summary": "rename cluster", + "summary": "update image", "parameters": [ { "type": "integer", - "description": "cluster id", - "name": "cluster", + "description": "image id", + "name": "image", "in": "path", "required": true }, { - "description": "data", + "description": "Image", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameClusterRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateImageRequest" } } ], @@ -21643,355 +21653,409 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameClusterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/cluster/{cluster}/network/{network}": { - "delete": { + "/v3-preview/cloud/image/{image}/clone": { + "post": { "security": [ { "Token": [] } ], - "description": "Deletes a vnet from a cluster.", + "description": "Clone an image.", "tags": [ "preview" ], - "summary": "delete cluster vnet", + "summary": "clone image", "parameters": [ { - "type": "integer", - "description": "cluster id", - "name": "cluster", + "type": "string", + "description": "Image ID", + "name": "image", "in": "path", "required": true }, { - "type": "integer", - "description": "vnet id", - "name": "network", - "in": "path", - "required": true + "description": "Image", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneImageRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneImageResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v3-preview/cloud/image/{image}/enable": { "patch": { "security": [ { "Token": [] } ], - "description": "Adds a vnet to a cluster.", + "description": "Enable an image.", "tags": [ "preview" ], - "summary": "add cluster vnet", + "summary": "enable image", "parameters": [ { "type": "integer", - "description": "cluster id", - "name": "cluster", + "description": "image id", + "name": "image", "in": "path", "required": true }, { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true + "description": "Image", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableImageRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddClusterNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/compute": { - "get": { + "/v3-preview/cloud/image/{image}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Get computes.", + "description": "Lock an image.", "tags": [ "preview" ], - "summary": "get computes", + "summary": "lock image", + "parameters": [ + { + "type": "integer", + "description": "image id", + "name": "image", + "in": "path", + "required": true + }, + { + "description": "Image", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockImageRequest" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/datacenter": { - "get": { + "/v3-preview/cloud/image/{image}/name": { + "patch": { "security": [ { "Token": [] } ], - "description": "List all datacenters.", + "description": "Rename an image.", "tags": [ "preview" ], - "summary": "get datacenters", + "summary": "rename image", + "parameters": [ + { + "type": "integer", + "description": "image id", + "name": "image", + "in": "path", + "required": true + }, + { + "description": "Image", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameImageRequest" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DataCentersResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameImageResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v3-preview/cloud/image/{image}/ownership": { + "patch": { "security": [ { "Token": [] } ], - "description": "Create a datacenter.", + "description": "Change image ownership.", "tags": [ "preview" ], - "summary": "post datacenter", + "summary": "change image ownership", "parameters": [ { - "description": "DataCenter Template", + "type": "integer", + "description": "image id", + "name": "image", + "in": "path", + "required": true + }, + { + "description": "Image", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateDataCenterRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImageOwnershipRequest" } } ], @@ -21999,374 +22063,399 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateDataCenterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImageOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/datacenter/{datacenter}": { - "get": { + "/v3-preview/cloud/image/{image}/permissions": { + "patch": { "security": [ { "Token": [] } ], - "description": "List a datacenter.", + "description": "Change image permissions.", "tags": [ "preview" ], - "summary": "get datacenter", + "summary": "change image permissions", "parameters": [ { - "type": "string", - "description": "DataCenter ID", - "name": "datacenter", + "type": "integer", + "description": "image id", + "name": "image", "in": "path", "required": true + }, + { + "description": "Image", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImagePermissionsRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DataCenterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImagePermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v3-preview/cloud/image/{image}/persistent": { + "patch": { "security": [ { "Token": [] } ], - "description": "Delete a datacenter.", + "description": "Set image persistent.", "tags": [ "preview" ], - "summary": "delete datacenter", + "summary": "set image persistent", "parameters": [ { - "type": "string", - "description": "DataCenter ID", - "name": "datacenter", + "type": "integer", + "description": "image id", + "name": "image", "in": "path", "required": true + }, + { + "description": "Image", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetImagePersistentRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetImagePersistentResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/cloud/image/{image}/snapshot/{snapshot}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Update a datacenter.", + "description": "Delete an image snapshot.", "tags": [ "preview" ], - "summary": "update datacenter", + "summary": "delete image snapshot", "parameters": [ { - "type": "integer", - "description": "datacenter id", - "name": "datacenter", + "type": "string", + "description": "Image ID", + "name": "image", "in": "path", "required": true }, { - "description": "DataCenter Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDataCenterRequest" - } + "type": "string", + "description": "Snapshot ID", + "name": "snapshot", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDataCenterResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/datacenter/{datacenter}/group/{group}": { - "delete": { + "/v3-preview/cloud/image/{image}/snapshot/{snapshot}/flatten": { + "patch": { "security": [ { "Token": [] } ], - "description": "Remove a datacenter group.", + "description": "Flatten an image snapshot.", "tags": [ "preview" ], - "summary": "remove datacenter group", + "summary": "flatten image snapshot", "parameters": [ { "type": "integer", - "description": "DataCenter ID", - "name": "datacenter", + "description": "image id", + "name": "image", "in": "path", "required": true }, { "type": "integer", - "description": "Group ID", - "name": "group", + "description": "snapshot id", + "name": "snapshot", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.FlattenImageSnapshotResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v3-preview/cloud/image/{image}/snapshot/{snapshot}/revert": { "patch": { "security": [ { "Token": [] } ], - "description": "Add a datacenter group.", + "description": "Revert an image snapshot.", "tags": [ "preview" ], - "summary": "add datacenter group", + "summary": "revert image snapshot", "parameters": [ { "type": "integer", - "description": "datacenter id", - "name": "datacenter", + "description": "image id", + "name": "image", "in": "path", "required": true }, { "type": "integer", - "description": "group id", - "name": "group", + "description": "snapshot id", + "name": "snapshot", "in": "path", "required": true } @@ -22375,81 +22464,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddDataCenterGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RevertImageSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/datacenter/{datacenter}/name": { + "/v3-preview/cloud/image/{image}/type": { "patch": { "security": [ { "Token": [] } ], - "description": "Rename a datacenter.", + "description": "Change image type.", "tags": [ "preview" ], - "summary": "rename datacenter", + "summary": "change image type", "parameters": [ { "type": "integer", - "description": "datacenter id", - "name": "datacenter", + "description": "image id", + "name": "image", "in": "path", "required": true }, { - "description": "DataCenter Name", + "description": "Image", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameDataCenterRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImageTypeRequest" } } ], @@ -22457,505 +22546,433 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameDataCenterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImageTypeResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/datacenter/{datacenter}/zone/{zone}/cluster/{cluster}": { - "delete": { + "/v3-preview/cloud/image/{image}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Remove a datacenter cluster.", + "description": "Unlock an image.", "tags": [ "preview" ], - "summary": "remove datacenter cluster", + "summary": "unlock image", "parameters": [ { "type": "integer", - "description": "DataCenter ID", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Zone ID", - "name": "zone", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Cluster ID", - "name": "cluster", + "description": "image id", + "name": "image", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockImageResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/cloud/instance": { + "get": { "security": [ { "Token": [] } ], - "description": "Add a datacenter cluster.", + "description": "Returns a list of instances.", "tags": [ "preview" ], - "summary": "add datacenter cluster", + "summary": "get instance list", "parameters": [ { - "type": "integer", - "description": "datacenter id", - "name": "datacenter", - "in": "path", - "required": true + "type": "string", + "description": "Comma separated list of instance IDs", + "name": "instance", + "in": "query" }, { - "type": "integer", - "description": "zone id", - "name": "zone", - "in": "path", - "required": true + "type": "string", + "description": "State of instances to return", + "name": "state", + "in": "query" }, { - "type": "integer", - "description": "cluster id", - "name": "cluster", - "in": "path", - "required": true + "type": "boolean", + "description": "Return extended information", + "name": "extended", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddDataCenterClusterResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstancesResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/datacenter/{datacenter}/zone/{zone}/datastore/{datastore}": { - "delete": { + }, + "post": { "security": [ { "Token": [] } ], - "description": "Remove a datacenter datastore.", + "description": "Allocates a new instance.", "tags": [ "preview" ], - "summary": "remove datacenter datastore", + "summary": "post an instance", "parameters": [ { - "type": "integer", - "description": "DataCenter ID", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Zone ID", - "name": "zone", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Datastore ID", - "name": "datastore", - "in": "path", - "required": true + "description": "Instance Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/cloud/instance-group": { + "get": { "security": [ { "Token": [] } ], - "description": "Add a datacenter datastore.", + "description": "Get a list of instance groups.", "tags": [ "preview" ], - "summary": "add datacenter datastore", - "parameters": [ - { - "type": "integer", - "description": "datacenter id", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "zone id", - "name": "zone", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "datastore id", - "name": "datastore", - "in": "path", - "required": true - } - ], + "summary": "get instance groups", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddDataCenterDatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceGroupsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/datacenter/{datacenter}/zone/{zone}/host/{host}": { - "delete": { + }, + "post": { "security": [ { "Token": [] } ], - "description": "Remove a datacenter host.", + "description": "Create an instance group.", "tags": [ "preview" ], - "summary": "remove datacenter host", - "parameters": [ - { - "type": "integer", - "description": "DataCenter ID", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Zone ID", - "name": "zone", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Host ID", - "name": "host", - "in": "path", - "required": true - } - ], + "summary": "post instance group", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceGroupRequest" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/cloud/instance-group/{group}": { + "get": { "security": [ { "Token": [] } ], - "description": "Add a datacenter host.", + "description": "Get an instance group.", "tags": [ "preview" ], - "summary": "add datacenter host", + "summary": "get instance group", "parameters": [ { - "type": "integer", - "description": "datacenter id", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "zone id", - "name": "zone", - "in": "path", - "required": true + "type": "boolean", + "description": "decrypt", + "name": "decrypt", + "in": "query" }, { "type": "integer", - "description": "host id", - "name": "host", + "description": "vmgroup id", + "name": "group", "in": "path", "required": true } @@ -22964,85 +22981,69 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddDataCenterHostResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/datacenter/{datacenter}/zone/{zone}/network/{network}": { + }, "delete": { "security": [ { "Token": [] } ], - "description": "Remove a datacenter network.", + "description": "Delete an instance group.", "tags": [ "preview" ], - "summary": "remove datacenter network", + "summary": "delete instance group", "parameters": [ { "type": "integer", - "description": "DataCenter ID", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Zone ID", - "name": "zone", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Network ID", - "name": "network", + "description": "Instance Group ID", + "name": "group", "in": "path", "required": true } @@ -23054,43 +23055,43 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -23101,168 +23102,190 @@ "Token": [] } ], - "description": "Add a datacenter network.", + "description": "Update an instance group.", "tags": [ "preview" ], - "summary": "add datacenter network", + "summary": "patch instance group", "parameters": [ { "type": "integer", - "description": "datacenter id", - "name": "datacenter", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "zone id", - "name": "zone", + "description": "group id", + "name": "group", "in": "path", "required": true }, { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true + "description": "Instance Group Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceGroupRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddDataCenterNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/datastore": { - "get": { + "/v3-preview/cloud/instance-group/{group}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Lists all datastores.", + "description": "Lock an instance group.", "tags": [ "preview" ], - "summary": "list datastores", + "summary": "lock instance group", + "parameters": [ + { + "type": "integer", + "description": "group id", + "name": "group", + "in": "path", + "required": true + }, + { + "description": "VMGroup Lock", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockInstanceGroupRequest" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DatastoresResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockInstanceGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v3-preview/cloud/instance-group/{group}/name": { + "patch": { "security": [ { "Token": [] } ], - "description": "Allocates a new datastore.", + "description": "Rename an instance group.", "tags": [ "preview" ], - "summary": "post datastore", + "summary": "patch instance group name", "parameters": [ { - "description": "Datastore", + "type": "integer", + "description": "group id", + "name": "group", + "in": "path", + "required": true + }, + { + "description": "Instance Group Name", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateDatastoreRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceGroupRequest" } } ], @@ -23270,623 +23293,725 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateDatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/datastore/{datastore}": { - "get": { + "/v3-preview/cloud/instance-group/{group}/ownership": { + "patch": { "security": [ { "Token": [] } ], - "description": "Lists a datastores.", + "description": "Change the ownership of an instance group.", "tags": [ "preview" ], - "summary": "list datastore", + "summary": "patch instance group ownership", "parameters": [ { "type": "integer", - "description": "Datastore ID", - "name": "datastore", + "description": "group id", + "name": "group", "in": "path", "required": true + }, + { + "description": "Instance Group Ownership", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceGroupOwnershipRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceGroupOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v3-preview/cloud/instance-group/{group}/permissions": { + "patch": { "security": [ { "Token": [] } ], - "description": "Deletes a datastore.", + "description": "Change the permissions of an instance group.", "tags": [ "preview" ], - "summary": "delete datastore", + "summary": "patch instance group permissions", "parameters": [ { "type": "integer", - "description": "Datastore ID", - "name": "datastore", + "description": "group id", + "name": "group", "in": "path", "required": true + }, + { + "description": "Instance Group Permissions", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceGroupPermissionsRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceGroupPermissionsResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v3-preview/cloud/instance-group/{group}/unlock": { "patch": { "security": [ { "Token": [] } ], - "description": "Updates a datastore.", + "description": "Unlock an instance group.", "tags": [ "preview" ], - "summary": "patch datastore", + "summary": "unlock instance group", "parameters": [ { "type": "integer", - "description": "datastore id", - "name": "datastore", + "description": "group id", + "name": "group", "in": "path", "required": true - }, - { - "description": "Datastore", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDatastoreRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockInstanceGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/datastore/{datastore}/enable": { - "patch": { + "/v3-preview/cloud/instance/accounting": { + "get": { "security": [ { "Token": [] } ], - "description": "Enables a datastore.", + "description": "Returns a list of instances with accounting information.", "tags": [ "preview" ], - "summary": "enable datastore", + "summary": "get instance accounting list", "parameters": [ + { + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" + }, { "type": "integer", - "description": "datastore id", - "name": "datastore", - "in": "path", - "required": true + "description": "Start time", + "name": "start", + "in": "query" }, { - "description": "Datastore ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableDatastoreRequest" - } + "type": "integer", + "description": "End time", + "name": "end", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableDatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstancesAccountingResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/datastore/{datastore}/name": { - "patch": { + "/v3-preview/cloud/instance/monitoring": { + "get": { "security": [ { "Token": [] } ], - "description": "Renames a datastore.", + "description": "Returns a list of instances with monitoring information.", "tags": [ "preview" ], - "summary": "rename datastore", + "summary": "get instance monitoring list", "parameters": [ { - "type": "integer", - "description": "datastore id", - "name": "datastore", - "in": "path", - "required": true + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" }, { - "description": "name", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameDatastoreRequest" - } + "type": "integer", + "description": "Get monitoring information for the last N seconds", + "name": "seconds", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameDatastoreResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstancesMonitoringResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/datastore/{datastore}/ownership": { - "patch": { + "/v3-preview/cloud/instance/showback": { + "get": { "security": [ { "Token": [] } ], - "description": "Changes the ownership of a datastore.", + "description": "Returns a list of instances showback information.", "tags": [ "preview" ], - "summary": "change datastore ownership", + "summary": "get instance showback list", "parameters": [ { - "type": "integer", - "description": "datastore id", - "name": "datastore", - "in": "path", - "required": true + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" }, { - "description": "ownership", + "type": "string", + "description": "Starting Month", + "name": "month-start", + "in": "query" + }, + { + "type": "string", + "description": "Ending Month", + "name": "month-end", + "in": "query" + }, + { + "type": "string", + "description": "Starting Year", + "name": "year-start", + "in": "query" + }, + { + "type": "string", + "description": "Ending Year", + "name": "year-end", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstancesShowbackResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + }, + "post": { + "security": [ + { + "Token": [] + } + ], + "description": "Calculates the showback for the time period.", + "tags": [ + "preview" + ], + "summary": "post instance showback", + "parameters": [ + { + "description": "Time Period", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDatastoreOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CalculateInstancesShowbackRequest" } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDatastoreOwnershipResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/datastore/{datastore}/permissions": { - "patch": { + "/v3-preview/cloud/instance/{instance}": { + "get": { "security": [ { "Token": [] } ], - "description": "Changes the permissions of a datastore.", + "description": "Retrieves information for a given instance.", "tags": [ "preview" ], - "summary": "change datastore permissions", + "summary": "get an instance", "parameters": [ { "type": "integer", - "description": "datastore id", - "name": "datastore", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "permissions", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDatastorePermissionsRequest" - } + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDatastorePermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/document": { - "post": { + "/v3-preview/cloud/instance/{instance}/action": { + "patch": { "security": [ { "Token": [] } ], - "description": "allocate a document", + "description": "Submits an action to be performed on an instance.", "tags": [ "preview" ], - "summary": "post a allocate", + "summary": "patch an instance action", "parameters": [ { - "description": "Document Template", + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true + }, + { + "description": "Instance Action", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AllocateDocumentRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetInstanceActionRequest" } } ], @@ -23894,220 +24019,245 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AllocateDocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetInstanceActionResponse" } }, "400": { - "description": "Bad Request", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "Internal Server Error", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/document/{document}": { - "get": { + "/v3-preview/cloud/instance/{instance}/config": { + "patch": { "security": [ { "Token": [] } ], - "description": "Get a document.", + "description": "Updates (appends) a set of supported configuration attributes in the instance template.", "tags": [ "preview" ], - "summary": "get document", + "summary": "patch instance config", "parameters": [ { "type": "integer", - "description": "Document", - "name": "document", + "description": "instance id", + "name": "instance", "in": "path", "required": true + }, + { + "description": "Config Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceConfigRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceConfigResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v3-preview/cloud/instance/{instance}/deploy": { + "patch": { "security": [ { "Token": [] } ], - "description": "delete a document", + "description": "Deploys the instance of the given id on the target host.", "tags": [ "preview" ], - "summary": "delete a document", + "summary": "patch an instance deployment", "parameters": [ { "type": "integer", - "description": "Document", - "name": "document", + "description": "instance id", + "name": "instance", "in": "path", "required": true + }, + { + "description": "Instance Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DeployInstanceRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DeployInstanceResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/cloud/instance/{instance}/disk": { + "post": { "security": [ { "Token": [] } ], - "description": "Update a document.", + "description": "Attaches a new disk for the instance.", "tags": [ "preview" ], - "summary": "update a document", + "summary": "post an instance disk", "parameters": [ { "type": "integer", - "description": "document id", - "name": "document", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Document Template", + "description": "Disk Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDocumentRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskRequest" } } ], @@ -24115,163 +24265,165 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/document/{document}/clone": { - "post": { + "/v3-preview/cloud/instance/{instance}/disk/{disk}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Clone a document.", + "description": "Detaches a disk from the instance.", "tags": [ "preview" ], - "summary": "post a clone", + "summary": "delete instance disk", "parameters": [ { "type": "integer", - "description": "Document", - "name": "document", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "Document", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneDocumentRequest" - } + "type": "integer", + "description": "Disk ID", + "name": "disk", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneDocumentResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/document/{document}/lock": { - "patch": { + "/v3-preview/cloud/instance/{instance}/disk/{disk}/image": { + "post": { "security": [ { "Token": [] } ], - "description": "Lock a document.", + "description": "Sets the disk to be saved in the given image.", "tags": [ "preview" ], - "summary": "lock document", + "summary": "post an instance disk image", "parameters": [ { "type": "integer", - "description": "document id", - "name": "document", + "description": "Instance ID", + "name": "instance", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "Disk ID", + "name": "disk", "in": "path", "required": true }, { - "description": "Document Locl", + "description": "Disk Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockDocumentRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskImageRequest" } } ], @@ -24279,81 +24431,88 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockDocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskImageResponse" } }, "400": { - "description": "Bad Request", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "Internal Server Error", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/document/{document}/name": { + "/v3-preview/cloud/instance/{instance}/disk/{disk}/size": { "patch": { "security": [ { "Token": [] } ], - "description": "Rename a document.", + "description": "Resizes a disk for an instance.", "tags": [ "preview" ], - "summary": "patch name", + "summary": "patch instance disk size", "parameters": [ { "type": "integer", - "description": "document id", - "name": "document", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Document", + "type": "integer", + "description": "disk id", + "name": "disk", + "in": "path", + "required": true + }, + { + "description": "Disk Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameDocumentRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ResizeInstanceDiskRequest" } } ], @@ -24361,81 +24520,88 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameDocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ResizeInstanceDiskResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/document/{document}/ownership": { - "patch": { + "/v3-preview/cloud/instance/{instance}/disk/{disk}/snapshot": { + "post": { "security": [ { "Token": [] } ], - "description": "Change ownership on a document.", + "description": "Takes a snapshot of the disk image.", "tags": [ "preview" ], - "summary": "patch ownership", + "summary": "post an instance disk snapshot", "parameters": [ { "type": "integer", - "description": "document id", - "name": "document", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "Document Ownership", + "type": "integer", + "description": "Disk ID", + "name": "disk", + "in": "path", + "required": true + }, + { + "description": "Disk Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDocumentOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskSnapshotRequest" } } ], @@ -24443,500 +24609,585 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDocumentOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/document/{document}/permissions": { - "patch": { + "/v3-preview/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Change permissions on a document.", + "description": "Deletes a disk snapshot.", "tags": [ "preview" ], - "summary": "patch persmissions", + "summary": "delete an instance disk snapshot", "parameters": [ { "type": "integer", - "description": "document id", - "name": "document", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "Document Permissions", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDocumentPermissionsRequest" - } + "type": "integer", + "description": "Disk ID", + "name": "disk", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "Snapshot ID", + "name": "snapshot", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeDocumentPermissionsResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/document/{document}/unlock": { + "/v3-preview/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Unlock a document.", + "description": "Renames a disk snapshot.", "tags": [ "preview" ], - "summary": "unlock document", + "summary": "patch snapshot name", "parameters": [ { "type": "integer", - "description": "document id", - "name": "document", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "disk id", + "name": "disk", "in": "path", "required": true + }, + { + "type": "integer", + "description": "snapshot id", + "name": "snapshot", + "in": "path", + "required": true + }, + { + "description": "Snapshot Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceDiskSnapshotRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockDocumentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceDiskSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/documents": { - "get": { + "/v3-preview/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}/revert": { + "patch": { "security": [ { "Token": [] } ], - "description": "List all documents.", + "description": "Reverts the disk state to a previously taken snapshot.", "tags": [ "preview" ], - "summary": "list documents", + "summary": "patch snapshot revert", "parameters": [ { - "type": "string", - "description": "Document Type", - "name": "type", - "in": "query" + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "disk id", + "name": "disk", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "snapshot id", + "name": "snapshot", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DocumentsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RevertInstanceDiskSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/group": { - "get": { + "/v3-preview/cloud/instance/{instance}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "List all groups.", + "description": "Locks an instance.", "tags": [ "preview" ], - "summary": "list groups", + "summary": "patch instance lock", + "parameters": [ + { + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true + }, + { + "description": "Lock Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockInstanceRequest" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.GroupsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v3-preview/cloud/instance/{instance}/monitoring": { + "get": { "security": [ { "Token": [] } ], - "description": "Allocates a new group.", + "description": "Retrieves monitoring information.", "tags": [ "preview" ], - "summary": "post group", + "summary": "get an instance monitoring", "parameters": [ { - "description": "Group", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateGroupRequest" - } + "type": "integer", + "description": "ID", + "name": "instance", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceMonitoringResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/group/quota": { - "get": { + "/v3-preview/cloud/instance/{instance}/move": { + "patch": { "security": [ { "Token": [] } ], - "description": "Returns the default group quota limits.", + "description": "Migrates an instance to the target host.", "tags": [ "preview" ], - "summary": "return the default group quota", + "summary": "patch an instance migration", + "parameters": [ + { + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true + }, + { + "description": "Move Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MoveInstanceRequest" + } + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.GroupQuotaResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MoveInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v3-preview/cloud/instance/{instance}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Updates the default group quota limits.", + "description": "Changes the name of an instance.", "tags": [ "preview" ], - "summary": "updates the default group quota limits", + "summary": "patch instance name", "parameters": [ { - "description": "quota", + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true + }, + { + "description": "Rename Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateGroupQuotaRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceRequest" } } ], @@ -24944,142 +25195,160 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateGroupQuotaResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/group/{group}": { - "get": { + "/v3-preview/cloud/instance/{instance}/nic": { + "post": { "security": [ { "Token": [] } ], - "description": "Returns group info.", + "description": "Attaches a new network interface to the instance.", "tags": [ "preview" ], - "summary": "get group info", + "summary": "post instance nic", "parameters": [ { "type": "integer", - "description": "Group ID", - "name": "group", + "description": "instance id", + "name": "instance", "in": "path", "required": true + }, + { + "description": "NIC Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceNICRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.GroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceNICResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v3-preview/cloud/instance/{instance}/nic/{nic}": { "delete": { "security": [ { "Token": [] } ], - "description": "Deletes a group.", + "description": "Detaches a network interface from the instance.", "tags": [ "preview" ], - "summary": "delete group", + "summary": "delete instance nic", "parameters": [ { "type": "integer", - "description": "Group ID", - "name": "group", + "description": "Instance ID", + "name": "instance", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "NIC ID", + "name": "nic", "in": "path", "required": true } @@ -25091,155 +25360,239 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/cloud/instance/{instance}/nic/{nic}/security-group": { + "delete": { "security": [ { "Token": [] } ], - "description": "Udates the group", + "description": "Detaches a security group from a network interface of an instance, if the instance is running it removes the associated rules.", "tags": [ "preview" ], - "summary": "patch group", + "summary": "delete instance security group", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "Group", - "name": "data", - "in": "body", - "required": true, + "type": "integer", + "description": "NIC ID", + "name": "nic", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad Request", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateGroupRequest" + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + } + }, + "/v3-preview/cloud/instance/{instance}/nic/{nic}/security-group/{group}": { + "post": { + "security": [ + { + "Token": [] + } + ], + "description": "Attaches a security group to a network interface of an instance, if the instance is running it updates the associated rules.", + "tags": [ + "preview" + ], + "summary": "post instance security group", + "parameters": [ + { + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "network interface id", + "name": "nic", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "security group id", + "name": "sg", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddInstanceSecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/group/{group}/admin": { + "/v3-preview/cloud/instance/{instance}/ownership": { "patch": { "security": [ { "Token": [] } ], - "description": "Adds a User to the Group administrators set", + "description": "Changes the ownership of an instance.", "tags": [ "preview" ], - "summary": "add group admin", + "summary": "patch instance ownership", "parameters": [ { "type": "integer", - "description": "Group ID", - "name": "group", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Group Admin", + "description": "Ownership Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddGroupAdminRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceOwnershipRequest" } } ], @@ -25247,158 +25600,163 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddGroupAdminResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/group/{group}/admin/{user}": { - "delete": { + "/v3-preview/cloud/instance/{instance}/permissions": { + "patch": { "security": [ { "Token": [] } ], - "description": "Remove an User from the administrators set", + "description": "Changes the permissions of an instance.", "tags": [ "preview" ], - "summary": "remove group admin", + "summary": "patch instance permissions", "parameters": [ { "type": "integer", - "description": "Group ID", - "name": "group", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "type": "integer", - "description": "User ID", - "name": "user", - "in": "path", - "required": true + "description": "Permissions Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstancePermissionsRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstancePermissionsResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/group/{group}/quota": { - "post": { + "/v3-preview/cloud/instance/{instance}/recover": { + "patch": { "security": [ { "Token": [] } ], - "description": "Set quota for the group.", + "description": "Recovers a stuck instance that is waiting for a driver operation. The recovery may be done by failing or succeeding the pending operation. You need to manually check the instance status on the host, to decide if the operation succeeded.", "tags": [ "preview" ], - "summary": "set quota", + "summary": "patch instance recover", "parameters": [ { "type": "integer", - "description": "Group ID", - "name": "group", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Group quota", + "description": "Recover Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetGroupQuotaRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RecoverInstanceRequest" } } ], @@ -25406,144 +25764,161 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetGroupQuotaResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RecoverInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/hook": { - "get": { + "/v3-preview/cloud/instance/{instance}/schedule": { + "post": { "security": [ { "Token": [] } ], - "description": "List hooks.", + "description": "Adds a schedule to an instance.", "tags": [ "preview" ], - "summary": "list hooks", + "summary": "post instance schedule", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true + }, + { + "description": "Schedule Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddInstanceScheduleRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HooksResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddInstanceScheduleResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "post": { + "patch": { "security": [ { "Token": [] } ], - "description": "Create a new hook.", + "description": "Updates a schedule for an instance.", "tags": [ "preview" ], - "summary": "post hook", + "summary": "patch instance schedule", "parameters": [ { - "description": "Host Template", + "type": "integer", + "description": "instance id", + "name": "instance", + "in": "path", + "required": true + }, + { + "description": "Schedule Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateHookRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceScheduleRequest" } } ], @@ -25551,220 +25926,240 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateHookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceScheduleResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/hook/{hook}": { - "get": { + "/v3-preview/cloud/instance/{instance}/schedule/{action}": { + "delete": { "security": [ { "Token": [] } ], - "description": "List a hook.", + "description": "Deletes a schedule from an instance.", "tags": [ "preview" ], - "summary": "get a hook", + "summary": "delete instance schedule", "parameters": [ { "type": "integer", - "description": "Hook ID", - "name": "hook", + "description": "Instance ID", + "name": "instance", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "Action ID", + "name": "action", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v3-preview/cloud/instance/{instance}/size": { + "patch": { "security": [ { "Token": [] } ], - "description": "Delete a hook.", + "description": "Changes the capacity of an instance.", "tags": [ "preview" ], - "summary": "delete hook", + "summary": "patch instance size", "parameters": [ { "type": "integer", - "description": "Hook ID", - "name": "hook", + "description": "instance id", + "name": "instance", "in": "path", "required": true + }, + { + "description": "Resize Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ResizeInstanceRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ResizeInstanceResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/cloud/instance/{instance}/snapshot": { + "post": { "security": [ { "Token": [] } ], - "description": "Update a hook.", + "description": "Creates a snapshot of an instance.", "tags": [ "preview" ], - "summary": "update hook", + "summary": "post instance snapshot", "parameters": [ { "type": "integer", - "description": "hook id", - "name": "hook", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Hook Template", + "description": "Snapshot Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateHookRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceSnapshotRequest" } } ], @@ -25772,168 +26167,156 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateHookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/hook/{hook}/lock": { - "patch": { + "/v3-preview/cloud/instance/{instance}/snapshot/{snapshot}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Lock a hook.", + "description": "Deletes a snapshot of an instance.", "tags": [ "preview" ], - "summary": "lock a hook", + "summary": "delete instance snapshot", "parameters": [ { - "type": "integer", - "description": "hook id", - "name": "hook", + "type": "string", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "Lock Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockHookRequest" - } + "type": "string", + "description": "Snapshot ID", + "name": "snapshot", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockHookResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/hook/{hook}/log": { - "get": { + "/v3-preview/cloud/instance/{instance}/snapshot/{snapshot}/revert": { + "patch": { "security": [ { "Token": [] } ], - "description": "List hook logs.", + "description": "Reverts an instance to a snapshot.", "tags": [ "preview" ], - "summary": "list hook logs", + "summary": "patch instance snapshot", "parameters": [ { "type": "integer", - "description": "Hook ID", - "name": "hook", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "type": "string", - "description": "Minimum Date", - "name": "min", - "in": "query", - "required": true - }, - { - "type": "string", - "description": "Maximum Date", - "name": "max", - "in": "query", + "type": "integer", + "description": "snapshot id", + "name": "snapshot", + "in": "path", "required": true } ], @@ -25941,81 +26324,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookLogResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RevertInstanceSnapshotResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/hook/{hook}/name": { + "/v3-preview/cloud/instance/{instance}/template": { "patch": { "security": [ { "Token": [] } ], - "description": "Rename a hook.", + "description": "Replaces the user template contents of an instance.", "tags": [ "preview" ], - "summary": "patch hook name", + "summary": "patch instance template", "parameters": [ { "type": "integer", - "description": "hook id", - "name": "hook", + "description": "instance id", + "name": "instance", "in": "path", "required": true }, { - "description": "Hook Name", + "description": "Template Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameHookRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceTemplateRequest" } } ], @@ -26023,163 +26406,154 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameHookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/hook/{hook}/retry": { + "/v3-preview/cloud/instance/{instance}/unlock": { "patch": { "security": [ { "Token": [] } ], - "description": "Retry a hook.", + "description": "Unlocks an instance.", "tags": [ "preview" ], - "summary": "retry a hook", + "summary": "patch instance unlock", "parameters": [ { "type": "integer", - "description": "hook id", - "name": "hook", + "description": "instance id", + "name": "instance", "in": "path", "required": true - }, - { - "description": "Retry Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RetryHookRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RetryHookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockInstanceResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/hook/{hook}/unlock": { - "patch": { + "/v3-preview/cloud/instance/{instance}/vnc": { + "post": { "security": [ { "Token": [] } ], - "description": "Unlock a hook.", + "description": "Establish a VNC proxy that drives the console for an instance.", "tags": [ "preview" ], - "summary": "unlock a hook", + "summary": "post a VNC proxy that drives the console for an instance", "parameters": [ { "type": "integer", - "description": "hook id", - "name": "hook", + "description": "Instance ID", + "name": "instance", "in": "path", "required": true }, { - "description": "Unlock Data", - "name": "data", + "description": "Zone", + "name": "zone", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockHookRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateVNCProxyRequest" } } ], @@ -26187,523 +26561,535 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockHookResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateVNCProxyResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "409": { + "description": "Conflict", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/host": { - "post": { + "/v3-preview/cloud/market": { + "get": { "security": [ { "Token": [] } ], - "description": "create a compute host.", + "description": "Retrieves information for all or part of the marketplaces in the pool.", "tags": [ "preview" ], - "summary": "post compute", - "parameters": [ - { - "description": "Host Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateHostRequest" - } - } - ], + "summary": "get markets info", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateHostResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/host/monitoring": { - "get": { + }, + "post": { "security": [ { "Token": [] } ], - "description": "Get a compute host's monitoring data.", + "description": "Allocates a new marketplace.", "tags": [ "preview" ], - "summary": "get computes monitoring", + "summary": "post market", "parameters": [ { - "type": "integer", - "default": -1, - "description": "Seconds", - "name": "seconds", - "in": "query" + "description": "Marketplace Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateMarketRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostsMonitoringResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateMarketResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/host/{host}": { + "/v3-preview/cloud/market-app": { "get": { "security": [ { "Token": [] } ], - "description": "Get a compute host.", + "description": "Retrieves information for all or part of the marketplace apps in the pool.", "tags": [ "preview" ], - "summary": "get compute", + "summary": "get market apps info", "parameters": [ + { + "type": "string", + "description": "Filter flag", + "name": "filter", + "in": "query" + }, { "type": "integer", - "description": "Host ID", - "name": "host", - "in": "path", - "required": true + "description": "start", + "name": "start", + "in": "query" + }, + { + "type": "integer", + "description": "end", + "name": "end", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketAppsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v3-preview/cloud/market-app/{app}": { + "get": { "security": [ { "Token": [] } ], - "description": "delete a compute host.", + "description": "Retrieves information for the marketplace app.", "tags": [ "preview" ], - "summary": "delete compute", + "summary": "get market app info", "parameters": [ + { + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" + }, { "type": "integer", - "description": "Host ID", - "name": "host", + "description": "ID", + "name": "app", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketAppResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "patch": { + "delete": { "security": [ { "Token": [] } ], - "description": "Update a compute host.", + "description": "Deletes the given marketplace app from the pool.", "tags": [ "preview" ], - "summary": "patch compute", + "summary": "delete marketplace app", "parameters": [ { "type": "integer", - "description": "host id", - "name": "host", + "description": "Market ID", + "name": "app", "in": "path", "required": true - }, - { - "description": "Host Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateHostRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateHostResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/host/{host}/monitoring": { - "get": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Get a compute host's monitoring data.", + "description": "Replaces the marketplace app template contents.", "tags": [ "preview" ], - "summary": "get compute monitoring", + "summary": "update marketplace app", "parameters": [ { "type": "integer", - "description": "Host ID", - "name": "host", + "description": "app id", + "name": "app", "in": "path", "required": true + }, + { + "description": "MarketApp Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateMarketAppRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostMonitoringResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateMarketAppResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/host/{host}/name": { + "/v3-preview/cloud/market-app/{app}/enable": { "patch": { "security": [ { "Token": [] } ], - "description": "Rename a compute host.", + "description": "Enables or disables a marketplace app.", "tags": [ "preview" ], - "summary": "patch name", + "summary": "enable marketplace app", "parameters": [ { "type": "integer", - "description": "host id", - "name": "host", + "description": "app id", + "name": "app", "in": "path", "required": true }, { - "description": "Host Name", + "description": "Enable App Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameHostRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableMarketAppRequest" } } ], @@ -26711,81 +27097,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameHostResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableMarketAppResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/host/{host}/status": { + "/v3-preview/cloud/market-app/{app}/lock": { "patch": { "security": [ { "Token": [] } ], - "description": "Set compute status.", + "description": "Locks a MarketPlaceApp. Lock certain actions depending on blocking level.", "tags": [ "preview" ], - "summary": "patch status", + "summary": "lock market app", "parameters": [ { "type": "integer", - "description": "host id", - "name": "host", + "description": "app id", + "name": "app", "in": "path", "required": true }, { - "description": "Host Status", + "description": "Lock App Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetHostStatusRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockMarketAppRequest" } } ], @@ -26793,144 +27179,163 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetHostStatusResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockMarketAppResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image": { - "get": { + "/v3-preview/cloud/market-app/{app}/name": { + "patch": { "security": [ { "Token": [] } ], - "description": "List images.", + "description": "Renames a marketplace app.", "tags": [ "preview" ], - "summary": "list images", + "summary": "patch market app name", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" + "type": "integer", + "description": "app id", + "name": "app", + "in": "path", + "required": true + }, + { + "description": "Name Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameMarketAppRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ImagesResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameMarketAppResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v3-preview/cloud/market-app/{app}/ownership": { + "patch": { "security": [ { "Token": [] } ], - "description": "Create a new image.", + "description": "Changes the ownership of a marketplace app.", "tags": [ "preview" ], - "summary": "post image", + "summary": "patch market app ownership", "parameters": [ { - "description": "Image Template", + "type": "integer", + "description": "app id", + "name": "app", + "in": "path", + "required": true + }, + { + "description": "Ownership Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketAppOwnershipRequest" } } ], @@ -26938,66 +27343,221 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketAppOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}": { + "/v3-preview/cloud/market-app/{app}/permissions": { + "patch": { + "security": [ + { + "Token": [] + } + ], + "description": "Changes the permission bits of a marketplace app.", + "tags": [ + "preview" + ], + "summary": "change market app permissions", + "parameters": [ + { + "type": "integer", + "description": "app id", + "name": "app", + "in": "path", + "required": true + }, + { + "description": "Permissions Data", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketAppPermissionsRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketAppPermissionsResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + } + }, + "/v3-preview/cloud/market-app/{app}/unlock": { + "patch": { + "security": [ + { + "Token": [] + } + ], + "description": "Unlocks a MarketPlaceApp.", + "tags": [ + "preview" + ], + "summary": "unlock market app", + "parameters": [ + { + "type": "integer", + "description": "app id", + "name": "app", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockMarketAppResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + } + }, + "/v3-preview/cloud/market/{market}": { "get": { "security": [ { "Token": [] } ], - "description": "List image.", + "description": "Retrieves information for the marketplace.", "tags": [ "preview" ], - "summary": "list image", + "summary": "get market info", "parameters": [ { "type": "boolean", @@ -27007,8 +27567,8 @@ }, { "type": "integer", - "description": "Image ID", - "name": "image", + "description": "ID", + "name": "market", "in": "path", "required": true } @@ -27017,49 +27577,49 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -27070,16 +27630,16 @@ "Token": [] } ], - "description": "Delete an image.", + "description": "Deletes the given market from the pool.", "tags": [ "preview" ], - "summary": "delete image", + "summary": "delete market", "parameters": [ { - "type": "string", - "description": "Image ID", - "name": "image", + "type": "integer", + "description": "Market ID", + "name": "market", "in": "path", "required": true } @@ -27091,43 +27651,43 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -27138,26 +27698,26 @@ "Token": [] } ], - "description": "Update an image.", + "description": "Replaces the marketplace template contents.", "tags": [ "preview" ], - "summary": "update image", + "summary": "update market", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "market id", + "name": "market", "in": "path", "required": true }, { - "description": "Image", + "description": "Market Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateMarketRequest" } } ], @@ -27165,81 +27725,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateMarketResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/clone": { + "/v3-preview/cloud/market/{market}/app": { "post": { "security": [ { "Token": [] } ], - "description": "Clone an image.", + "description": "Allocates a new marketplace app.", "tags": [ "preview" ], - "summary": "clone image", + "summary": "post marketapp", "parameters": [ { - "type": "string", - "description": "Image ID", - "name": "image", + "type": "integer", + "description": "market id", + "name": "market", "in": "path", "required": true }, { - "description": "Image", + "description": "Marketplace Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateMarketAppRequest" } } ], @@ -27247,81 +27807,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateMarketAppResponse" } }, "400": { - "description": "Bad Request", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "Internal Server Error", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/enable": { + "/v3-preview/cloud/market/{market}/enable": { "patch": { "security": [ { "Token": [] } ], - "description": "Enable an image.", + "description": "Enable/disable the Marketplace.", "tags": [ "preview" ], - "summary": "enable image", + "summary": "enable market", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "market id", + "name": "market", "in": "path", "required": true }, { - "description": "Image", + "description": "Enable Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableMarketRequest" } } ], @@ -27329,81 +27889,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableMarketResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/lock": { + "/v3-preview/cloud/market/{market}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Lock an image.", + "description": "Renames a marketplace.", "tags": [ "preview" ], - "summary": "lock image", + "summary": "patch market name", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "market id", + "name": "market", "in": "path", "required": true }, { - "description": "Image", + "description": "Name Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameMarketRequest" } } ], @@ -27411,81 +27971,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameMarketResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/name": { + "/v3-preview/cloud/market/{market}/ownership": { "patch": { "security": [ { "Token": [] } ], - "description": "Rename an image.", + "description": "Changes the ownership of a marketplace.", "tags": [ "preview" ], - "summary": "rename image", + "summary": "patch market ownership", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "market id", + "name": "market", "in": "path", "required": true }, { - "description": "Image", + "description": "Ownership Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketOwnershipRequest" } } ], @@ -27493,81 +28053,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/ownership": { + "/v3-preview/cloud/market/{market}/permissions": { "patch": { "security": [ { "Token": [] } ], - "description": "Change image ownership.", + "description": "Changes the permission bits of a marketplace.", "tags": [ "preview" ], - "summary": "change image ownership", + "summary": "change market permissions", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "market id", + "name": "market", "in": "path", "required": true }, { - "description": "Image", + "description": "Permissions Data", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImageOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketPermissionsRequest" } } ], @@ -27575,81 +28135,144 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImageOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketPermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/permissions": { - "patch": { + "/v3-preview/cloud/network": { + "get": { "security": [ { "Token": [] } ], - "description": "Change image permissions.", + "description": "List virtual networks.", "tags": [ "preview" ], - "summary": "change image permissions", + "summary": "get networks", "parameters": [ { - "type": "integer", - "description": "image id", - "name": "image", - "in": "path", - "required": true + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.NetworksResponse" + } }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + }, + "post": { + "security": [ { - "description": "Image", + "Token": [] + } + ], + "description": "Create a network.", + "tags": [ + "preview" + ], + "summary": "post network", + "parameters": [ + { + "description": "Network Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImagePermissionsRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateNetworkRequest" } } ], @@ -27657,81 +28280,74 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImagePermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/persistent": { - "patch": { + "/v3-preview/cloud/network/template": { + "post": { "security": [ { "Token": [] } ], - "description": "Set image persistent.", + "description": "Create a virtual network template.", "tags": [ "preview" ], - "summary": "set image persistent", + "summary": "create network template", "parameters": [ { - "type": "integer", - "description": "image id", - "name": "image", - "in": "path", - "required": true - }, - { - "description": "Image", + "description": "Network Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetImagePersistentRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateNetworkTemplateRequest" } } ], @@ -27739,78 +28355,148 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetImagePersistentResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/snapshot/{snapshot}": { - "delete": { + "/v3-preview/cloud/network/template/{template}": { + "get": { "security": [ { "Token": [] } ], - "description": "Delete an image snapshot.", + "description": "List virtual network template.", "tags": [ "preview" ], - "summary": "delete image snapshot", + "summary": "list network template", "parameters": [ { - "type": "string", - "description": "Image ID", - "name": "image", + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" + }, + { + "type": "integer", + "description": "Template ID", + "name": "template", "in": "path", "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.NetworkTemplateResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + }, + "delete": { + "security": [ + { + "Token": [] + } + ], + "description": "Delete a virtual network template.", + "tags": [ + "preview" + ], + "summary": "delete network template", + "parameters": [ { "type": "string", - "description": "Snapshot ID", - "name": "snapshot", + "description": "Template ID", + "name": "template", "in": "path", "required": true } @@ -27822,235 +28508,239 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/snapshot/{snapshot}/flatten": { - "patch": { + "/v3-preview/cloud/network/template/{template}/clone": { + "post": { "security": [ { "Token": [] } ], - "description": "Flatten an image snapshot.", + "description": "Clone a virtual network template.", "tags": [ "preview" ], - "summary": "flatten image snapshot", + "summary": "clone network template", "parameters": [ { - "type": "integer", - "description": "image id", - "name": "image", + "type": "string", + "description": "Template ID", + "name": "template", "in": "path", "required": true }, { - "type": "integer", - "description": "snapshot id", - "name": "snapshot", - "in": "path", - "required": true + "description": "Network Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneNetworkTemplateRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.FlattenImageSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/snapshot/{snapshot}/revert": { + "/v3-preview/cloud/network/template/{template}/instantiate": { "patch": { "security": [ { "Token": [] } ], - "description": "Revert an image snapshot.", + "description": "Instantiate a virtual network template.", "tags": [ "preview" ], - "summary": "revert image snapshot", + "summary": "instantiate network template", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "type": "integer", - "description": "snapshot id", - "name": "snapshot", - "in": "path", - "required": true + "description": "Network Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateNetworkTemplateRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RevertImageSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/type": { + "/v3-preview/cloud/network/template/{template}/lock": { "patch": { "security": [ { "Token": [] } ], - "description": "Change image type.", + "description": "Lock a virtual network template.", "tags": [ "preview" ], - "summary": "change image type", + "summary": "lock network template", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "Image", + "description": "Network Lock", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImageTypeRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockNetworkTemplateRequest" } } ], @@ -28058,229 +28748,245 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeImageTypeResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/image/{image}/unlock": { + "/v3-preview/cloud/network/template/{template}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Unlock an image.", + "description": "Rename a virtual network template.", "tags": [ "preview" ], - "summary": "unlock image", + "summary": "rename network template", "parameters": [ { "type": "integer", - "description": "image id", - "name": "image", + "description": "template id", + "name": "template", "in": "path", "required": true + }, + { + "description": "Network Rename", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameNetworkTemplateRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance": { - "get": { + "/v3-preview/cloud/network/template/{template}/owner": { + "patch": { "security": [ { "Token": [] } ], - "description": "Returns a list of instances.", + "description": "Change the owner of a virtual network template.", "tags": [ "preview" ], - "summary": "get instance list", + "summary": "change network template owner", "parameters": [ { - "type": "string", - "description": "Comma separated list of instance IDs", - "name": "instance", - "in": "query" - }, - { - "type": "string", - "description": "State of instances to return", - "name": "state", - "in": "query" + "type": "integer", + "description": "template id", + "name": "template", + "in": "path", + "required": true }, { - "type": "boolean", - "description": "Return extended information", - "name": "extended", - "in": "query" + "description": "Network Owner", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkTemplateOwnershipRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstancesResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkTemplateOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v3-preview/cloud/network/template/{template}/permissions": { + "patch": { "security": [ { "Token": [] } ], - "description": "Allocates a new instance.", + "description": "Change the permissions of a virtual network template.", "tags": [ "preview" ], - "summary": "post an instance", + "summary": "change network template permissions", "parameters": [ { - "description": "Instance Template", + "type": "integer", + "description": "template id", + "name": "template", + "in": "path", + "required": true + }, + { + "description": "Network Permissions", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkTemplatePermissionsRequest" } } ], @@ -28288,254 +28994,273 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkTemplatePermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance-group": { - "get": { + "/v3-preview/cloud/network/template/{template}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Get a list of instance groups.", + "description": "Unlock a virtual network template.", "tags": [ "preview" ], - "summary": "get instance groups", + "summary": "unlock network template", + "parameters": [ + { + "type": "integer", + "description": "template id", + "name": "template", + "in": "path", + "required": true + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceGroupsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v3-preview/cloud/network/templates": { + "get": { "security": [ { "Token": [] } ], - "description": "Create an instance group.", + "description": "Get a list of virtual network templates.", "tags": [ "preview" ], - "summary": "post instance group", + "summary": "get network templates", + "parameters": [ + { + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.NetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance-group/{group}": { + "/v3-preview/cloud/network/{network}": { "get": { "security": [ { "Token": [] } ], - "description": "Get an instance group.", + "description": "List a virtual network.", "tags": [ "preview" ], - "summary": "get instance group", + "summary": "get network", "parameters": [ - { - "type": "boolean", - "description": "decrypt", - "name": "decrypt", - "in": "query" - }, { "type": "integer", - "description": "vmgroup id", - "name": "group", + "description": "Network ID", + "name": "network", "in": "path", "required": true + }, + { + "type": "string", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.NetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -28546,16 +29271,16 @@ "Token": [] } ], - "description": "Delete an instance group.", + "description": "Delete a network.", "tags": [ "preview" ], - "summary": "delete instance group", + "summary": "delete network", "parameters": [ { - "type": "integer", - "description": "Instance Group ID", - "name": "group", + "type": "string", + "description": "Network ID", + "name": "network", "in": "path", "required": true } @@ -28567,43 +29292,43 @@ "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -28614,26 +29339,26 @@ "Token": [] } ], - "description": "Update an instance group.", + "description": "Update a network.", "tags": [ "preview" ], - "summary": "patch instance group", + "summary": "update network", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Instance Group Template", + "description": "Network", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkRequest" } } ], @@ -28641,81 +29366,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance-group/{group}/lock": { - "patch": { + "/v3-preview/cloud/network/{network}/address-range": { + "post": { "security": [ { "Token": [] } ], - "description": "Lock an instance group.", + "description": "Add an address range to a network.", "tags": [ "preview" ], - "summary": "lock instance group", + "summary": "add address range", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "Network ID", + "name": "network", "in": "path", "required": true }, { - "description": "VMGroup Lock", + "description": "Address Range", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockInstanceGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddNetworkAddressRangeRequest" } } ], @@ -28723,81 +29448,79 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockInstanceGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddNetworkAddressRangeResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/instance-group/{group}/name": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Rename an instance group.", + "description": "Update an address range in a network.", "tags": [ "preview" ], - "summary": "patch instance group name", + "summary": "update address range", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Instance Group Name", + "description": "Address Range", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceGroupRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkAddressRangeRequest" } } ], @@ -28805,725 +29528,733 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkAddressRangeResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance-group/{group}/ownership": { - "patch": { + "/v3-preview/cloud/network/{network}/address-range/{range}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Change the ownership of an instance group.", + "description": "Delete an address range from a network.", "tags": [ "preview" ], - "summary": "patch instance group ownership", + "summary": "delete address range", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "Network ID", + "name": "network", "in": "path", "required": true }, { - "description": "Instance Group Ownership", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceGroupOwnershipRequest" - } + "type": "integer", + "description": "Address Range ID", + "name": "ar", + "in": "path", + "required": true + }, + { + "type": "boolean", + "description": "Force delete", + "name": "force", + "in": "query" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceGroupOwnershipResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance-group/{group}/permissions": { - "patch": { + "/v3-preview/cloud/network/{network}/address-range/{range}/free": { + "delete": { "security": [ { "Token": [] } ], - "description": "Change the permissions of an instance group.", + "description": "Free a reserved address range from a network.", "tags": [ "preview" ], - "summary": "patch instance group permissions", + "summary": "free address range", "parameters": [ { - "type": "integer", - "description": "group id", - "name": "group", + "type": "string", + "description": "Network ID", + "name": "network", "in": "path", "required": true }, { - "description": "Instance Group Permissions", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceGroupPermissionsRequest" - } + "type": "string", + "description": "Address Range ID", + "name": "ar", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceGroupPermissionsResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance-group/{group}/unlock": { + "/v3-preview/cloud/network/{network}/hold": { "patch": { "security": [ { "Token": [] } ], - "description": "Unlock an instance group.", + "description": "Holds a virtual network lease as used.", "tags": [ "preview" ], - "summary": "unlock instance group", + "summary": "hold network", "parameters": [ { "type": "integer", - "description": "group id", - "name": "group", + "description": "network id", + "name": "network", "in": "path", "required": true + }, + { + "description": "Network Hold", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HoldNetworkRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockInstanceGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HoldNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/accounting": { - "get": { + "/v3-preview/cloud/network/{network}/lock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Returns a list of instances with accounting information.", + "description": "Lock a virtual network.", "tags": [ "preview" ], - "summary": "get instance accounting list", + "summary": "lock network", "parameters": [ - { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" - }, { "type": "integer", - "description": "Start time", - "name": "start", - "in": "query" + "description": "network id", + "name": "network", + "in": "path", + "required": true }, { - "type": "integer", - "description": "End time", - "name": "end", - "in": "query" + "description": "Network Lock", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockNetworkRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstancesAccountingResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/monitoring": { - "get": { + "/v3-preview/cloud/network/{network}/name": { + "patch": { "security": [ { "Token": [] } ], - "description": "Returns a list of instances with monitoring information.", + "description": "Rename a network.", "tags": [ "preview" ], - "summary": "get instance monitoring list", + "summary": "patch name", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" + "type": "integer", + "description": "network id", + "name": "network", + "in": "path", + "required": true }, { - "type": "integer", - "description": "Get monitoring information for the last N seconds", - "name": "seconds", - "in": "query" + "description": "Network Rename", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameNetworkRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstancesMonitoringResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/showback": { - "get": { + "/v3-preview/cloud/network/{network}/ownership": { + "patch": { "security": [ { "Token": [] } ], - "description": "Returns a list of instances showback information.", + "description": "Change ownership on a network.", "tags": [ "preview" ], - "summary": "get instance showback list", + "summary": "patch ownership", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" - }, - { - "type": "string", - "description": "Starting Month", - "name": "month-start", - "in": "query" - }, - { - "type": "string", - "description": "Ending Month", - "name": "month-end", - "in": "query" - }, - { - "type": "string", - "description": "Starting Year", - "name": "year-start", - "in": "query" + "type": "integer", + "description": "network id", + "name": "network", + "in": "path", + "required": true }, { - "type": "string", - "description": "Ending Year", - "name": "year-end", - "in": "query" + "description": "Network Ownership", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkOwnershipRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstancesShowbackResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "post": { + } + }, + "/v3-preview/cloud/network/{network}/permissions": { + "patch": { "security": [ { "Token": [] } ], - "description": "Calculates the showback for the time period.", + "description": "Change permissions on a network.", "tags": [ "preview" ], - "summary": "post instance showback", + "summary": "patch permissions", "parameters": [ { - "description": "Time Period", + "type": "integer", + "description": "network id", + "name": "network", + "in": "path", + "required": true + }, + { + "description": "Network Permissions", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CalculateInstancesShowbackRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkPermissionsRequest" } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkPermissionsResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}": { - "get": { + "/v3-preview/cloud/network/{network}/recover": { + "patch": { "security": [ { "Token": [] } ], - "description": "Retrieves information for a given instance.", + "description": "Recover a virtual network.", "tags": [ "preview" ], - "summary": "get an instance", + "summary": "recover network", "parameters": [ { "type": "integer", - "description": "Instance ID", - "name": "instance", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" + "description": "Network Recover", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RecoverNetworkRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RecoverNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/action": { + "/v3-preview/cloud/network/{network}/release": { "patch": { "security": [ { "Token": [] } ], - "description": "Submits an action to be performed on an instance.", + "description": "Releases a virtual network lease on hold.", "tags": [ "preview" ], - "summary": "patch an instance action", + "summary": "release network", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Instance Action", + "description": "Network Release", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetInstanceActionRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ReleaseNetworkRequest" } } ], @@ -29531,7 +30262,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetInstanceActionResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ReleaseNetworkResponse" } }, "400": { @@ -29543,25 +30274,25 @@ "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { @@ -29573,39 +30304,39 @@ "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/config": { - "patch": { + "/v3-preview/cloud/network/{network}/reserve": { + "post": { "security": [ { "Token": [] } ], - "description": "Updates (appends) a set of supported configuration attributes in the instance template.", + "description": "Reserve a network.", "tags": [ "preview" ], - "summary": "patch instance config", + "summary": "reserve network", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Config Data", + "description": "Network Reservation", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceConfigRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ReserveNetworkRequest" } } ], @@ -29613,81 +30344,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceConfigResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ReserveNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/deploy": { + "/v3-preview/cloud/network/{network}/template/update": { "patch": { "security": [ { "Token": [] } ], - "description": "Deploys the instance of the given id on the target host.", + "description": "Update a virtual network template.", "tags": [ "preview" ], - "summary": "patch an instance deployment", + "summary": "update network template", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "network id", + "name": "network", "in": "path", "required": true }, { - "description": "Instance Template", + "description": "Network Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DeployInstanceRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkTemplateRequest" } } ], @@ -29695,247 +30426,217 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DeployInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/disk": { - "post": { + "/v3-preview/cloud/network/{network}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Attaches a new disk for the instance.", + "description": "Unlock a virtual network.", "tags": [ "preview" ], - "summary": "post an instance disk", + "summary": "unlock network", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "network id", + "name": "network", "in": "path", "required": true - }, - { - "description": "Disk Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockNetworkResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/disk/{disk}": { - "delete": { + "/v3-preview/cloud/router": { + "get": { "security": [ { "Token": [] } ], - "description": "Detaches a disk from the instance.", + "description": "List virtual routers", "tags": [ "preview" ], - "summary": "delete instance disk", + "summary": "get routers", "parameters": [ { - "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Disk ID", - "name": "disk", - "in": "path", - "required": true + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RoutersResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/instance/{instance}/disk/{disk}/image": { + }, "post": { "security": [ { "Token": [] } ], - "description": "Sets the disk to be saved in the given image.", + "description": "Create a virtual router", "tags": [ "preview" ], - "summary": "post an instance disk image", + "summary": "post router", "parameters": [ { - "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Disk ID", - "name": "disk", - "in": "path", - "required": true - }, - { - "description": "Disk Data", + "description": "Router Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskImageRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateRouterRequest" } } ], @@ -29943,357 +30644,314 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskImageResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateRouterResponse" } }, "400": { - "description": "error", + "description": "Bad Request", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "error", + "description": "Internal Server Error", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/disk/{disk}/size": { - "patch": { + "/v3-preview/cloud/router/{router}": { + "get": { "security": [ { "Token": [] } ], - "description": "Resizes a disk for an instance.", + "description": "List a virtual router", "tags": [ "preview" ], - "summary": "patch instance disk size", + "summary": "get router", "parameters": [ { - "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" }, { - "type": "integer", - "description": "disk id", - "name": "disk", + "type": "string", + "description": "Router ID", + "name": "router", "in": "path", "required": true - }, - { - "description": "Disk Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ResizeInstanceDiskRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ResizeInstanceDiskResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RouterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/instance/{instance}/disk/{disk}/snapshot": { - "post": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Takes a snapshot of the disk image.", + "description": "Delete a virtual router", "tags": [ "preview" ], - "summary": "post an instance disk snapshot", + "summary": "delete router", "parameters": [ { - "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true + "type": "boolean", + "description": "Delete disk", + "name": "disk", + "in": "query" }, { - "type": "integer", - "description": "Disk ID", - "name": "disk", + "type": "string", + "description": "Router ID", + "name": "router", "in": "path", "required": true - }, - { - "description": "Disk Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskSnapshotRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceDiskSnapshotResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}": { - "delete": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Deletes a disk snapshot.", + "description": "Update a virtual router", "tags": [ "preview" ], - "summary": "delete an instance disk snapshot", + "summary": "update router", "parameters": [ { "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Disk ID", - "name": "disk", + "description": "router id", + "name": "router", "in": "path", "required": true }, { - "type": "integer", - "description": "Snapshot ID", - "name": "snapshot", - "in": "path", - "required": true + "description": "Router Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateRouterRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateRouterResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}/name": { + "/v3-preview/cloud/router/{router}/instantiate": { "patch": { "security": [ { "Token": [] } ], - "description": "Renames a disk snapshot.", + "description": "Instantiate a virtual router", "tags": [ "preview" ], - "summary": "patch snapshot name", + "summary": "instantiate router", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "disk id", - "name": "disk", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "snapshot id", - "name": "snapshot", + "description": "router id", + "name": "router", "in": "path", "required": true }, { - "description": "Snapshot Data", + "description": "Router Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceDiskSnapshotRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateRouterRequest" } } ], @@ -30301,168 +30959,163 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceDiskSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateRouterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/disk/{disk}/snapshot/{snapshot}/revert": { + "/v3-preview/cloud/router/{router}/lock": { "patch": { "security": [ { "Token": [] } ], - "description": "Reverts the disk state to a previously taken snapshot.", + "description": "Lock a virtual router", "tags": [ "preview" ], - "summary": "patch snapshot revert", + "summary": "lock router", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "disk id", - "name": "disk", + "description": "router id", + "name": "router", "in": "path", "required": true }, { - "type": "integer", - "description": "snapshot id", - "name": "snapshot", - "in": "path", - "required": true + "description": "Router Lock", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockRouterRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RevertInstanceDiskSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockRouterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/lock": { + "/v3-preview/cloud/router/{router}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Locks an instance.", + "description": "Rename a virtual router", "tags": [ "preview" ], - "summary": "patch instance lock", + "summary": "rename router", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "router id", + "name": "router", "in": "path", "required": true }, { - "description": "Lock Data", + "description": "Router Rename", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockInstanceRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameRouterRequest" } } ], @@ -30470,236 +31123,240 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameRouterResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/monitoring": { - "get": { + "/v3-preview/cloud/router/{router}/nic": { + "post": { "security": [ { "Token": [] } ], - "description": "Retrieves monitoring information.", + "description": "Add a NIC to a virtual router", "tags": [ "preview" ], - "summary": "get an instance monitoring", + "summary": "add router nic", "parameters": [ { "type": "integer", - "description": "ID", - "name": "instance", + "description": "virtual router ID", + "name": "router", "in": "path", "required": true + }, + { + "description": "Router NIC", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateRouterNICRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceMonitoringResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateRouterNICResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/move": { - "patch": { + "/v3-preview/cloud/router/{router}/nic/{nic}": { + "delete": { "security": [ { "Token": [] } ], - "description": "Migrates an instance to the target host.", + "description": "Remove a NIC from a virtual router", "tags": [ "preview" ], - "summary": "patch an instance migration", + "summary": "remove router nic", "parameters": [ { - "type": "integer", - "description": "instance id", - "name": "instance", + "type": "string", + "description": "Router ID", + "name": "router", "in": "path", "required": true }, { - "description": "Move Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MoveInstanceRequest" - } + "type": "string", + "description": "NIC ID", + "name": "nic", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MoveInstanceResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/name": { + "/v3-preview/cloud/router/{router}/ownership": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the name of an instance.", + "description": "Change a virtual router ownership", "tags": [ "preview" ], - "summary": "patch instance name", + "summary": "change router ownership", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "router id", + "name": "router", "in": "path", "required": true }, { - "description": "Rename Data", + "description": "Router Ownership", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeRouterOwnershipRequest" } } ], @@ -30707,81 +31364,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeRouterOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/nic": { - "post": { + "/v3-preview/cloud/router/{router}/permissions": { + "patch": { "security": [ { "Token": [] } ], - "description": "Attaches a new network interface to the instance.", + "description": "Change a virtual router permissions", "tags": [ "preview" ], - "summary": "post instance nic", + "summary": "change router permissions", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "router id", + "name": "router", "in": "path", "required": true }, { - "description": "NIC Data", + "description": "Router Permissions", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceNICRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeRouterPermissionsRequest" } } ], @@ -30789,568 +31446,446 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceNICResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeRouterPermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/nic/{nic}": { - "delete": { + "/v3-preview/cloud/router/{router}/unlock": { + "patch": { "security": [ { "Token": [] } ], - "description": "Detaches a network interface from the instance.", + "description": "Unlock a virtual router.", "tags": [ "preview" ], - "summary": "delete instance nic", + "summary": "unlock router", "parameters": [ { "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "NIC ID", - "name": "nic", + "description": "router id", + "name": "router", "in": "path", "required": true } ], "responses": { "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", + "description": "OK", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockRouterResponse" } - } - } - } - }, - "/v3/cloud/instance/{instance}/nic/{nic}/security-group": { - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Detaches a security group from a network interface of an instance, if the instance is running it removes the associated rules.", - "tags": [ - "preview" - ], - "summary": "delete instance security group", - "parameters": [ - { - "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "NIC ID", - "name": "nic", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/nic/{nic}/security-group/{group}": { + "/v3-preview/cloud/security-group": { "post": { "security": [ { "Token": [] } ], - "description": "Attaches a security group to a network interface of an instance, if the instance is running it updates the associated rules.", + "description": "Create a new security group.", "tags": [ "preview" ], - "summary": "post instance security group", + "summary": "create a new security group", "parameters": [ { - "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "network interface id", - "name": "nic", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "security group id", - "name": "sg", - "in": "path", - "required": true + "description": "Security Group", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateSecurityGroupRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddInstanceSecurityGroupResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateSecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/ownership": { - "patch": { + "/v3-preview/cloud/security-group/": { + "get": { "security": [ { "Token": [] } ], - "description": "Changes the ownership of an instance.", + "description": "retrieves information for all or part of the security\ngroups in the pool.", "tags": [ "preview" ], - "summary": "patch instance ownership", + "summary": "retrieves information for subset of security groups", "parameters": [ { - "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "description": "Ownership Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceOwnershipRequest" - } + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstanceOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SecurityGroupsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/permissions": { - "patch": { + "/v3-preview/cloud/security-group/{group}": { + "get": { "security": [ { "Token": [] } ], - "description": "Changes the permissions of an instance.", + "description": "Retrieves information for the security group.", "tags": [ "preview" ], - "summary": "patch instance permissions", + "summary": "retrieves information for the security group", "parameters": [ + { + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" + }, { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "Security group ID", + "name": "sg", "in": "path", "required": true - }, - { - "description": "Permissions Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstancePermissionsRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeInstancePermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/instance/{instance}/recover": { - "patch": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Recovers a stuck instance that is waiting for a driver operation. The recovery may be done by failing or succeeding the pending operation. You need to manually check the instance status on the host, to decide if the operation succeeded.", + "description": "Deletes the given security group from the pool.", "tags": [ "preview" ], - "summary": "patch instance recover", + "summary": "delete a security group", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "Group ID", + "name": "sg", "in": "path", "required": true - }, - { - "description": "Recover Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RecoverInstanceRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RecoverInstanceResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/instance/{instance}/schedule": { - "post": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Adds a schedule to an instance.", + "description": "Replaces the security group template contents.", "tags": [ "preview" ], - "summary": "post instance schedule", + "summary": "replaces the security group template contents", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "sg id", + "name": "sg", "in": "path", "required": true }, { - "description": "Schedule Data", + "description": "Security Group", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddInstanceScheduleRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateSecurityGroupRequest" } } ], @@ -31358,79 +31893,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddInstanceScheduleResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateSecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, + } + }, + "/v3-preview/cloud/security-group/{group}/chmod": { "patch": { "security": [ { "Token": [] } ], - "description": "Updates a schedule for an instance.", + "description": "Changes the permission bits of a security group.", "tags": [ "preview" ], - "summary": "patch instance schedule", + "summary": "changes the permission bits of a security group", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "sg id", + "name": "sg", "in": "path", "required": true }, { - "description": "Schedule Data", + "description": "Permissions", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceScheduleRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeSecurityGroupPermissionsRequest" } } ], @@ -31438,158 +31975,163 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceScheduleResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeSecurityGroupPermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/schedule/{action}": { - "delete": { + "/v3-preview/cloud/security-group/{group}/chown": { + "patch": { "security": [ { "Token": [] } ], - "description": "Deletes a schedule from an instance.", + "description": "Changes the ownership of a security group.", "tags": [ "preview" ], - "summary": "delete instance schedule", + "summary": "changes the ownership of a security group", "parameters": [ { "type": "integer", - "description": "Instance ID", - "name": "instance", + "description": "sg id", + "name": "sg", "in": "path", "required": true }, { - "type": "integer", - "description": "Action ID", - "name": "action", - "in": "path", - "required": true + "description": "New user and group", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeSecurityGroupOwnershipRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeSecurityGroupOwnershipResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/size": { - "patch": { + "/v3-preview/cloud/security-group/{group}/clone": { + "post": { "security": [ { "Token": [] } ], - "description": "Changes the capacity of an instance.", + "description": "Clones an existing security group.", "tags": [ "preview" ], - "summary": "patch instance size", + "summary": "clones an existing security group", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "Group ID", + "name": "sg", "in": "path", "required": true }, { - "description": "Resize Data", + "description": "Cloned group", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ResizeInstanceRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneSecurityGroupRequest" } } ], @@ -31597,81 +32139,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ResizeInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneSecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/snapshot": { - "post": { + "/v3-preview/cloud/security-group/{group}/commit": { + "patch": { "security": [ { "Token": [] } ], - "description": "Creates a snapshot of an instance.", + "description": "Commit security group changes to associated VMs. This is\nintended for retrying updates of VMs or reinitialize the updating process if\none stopped or failed after a one.secgroup.update call.", "tags": [ "preview" ], - "summary": "post instance snapshot", + "summary": "Commit security group changes to associated VMs", "parameters": [ { "type": "integer", - "description": "instance id", - "name": "instance", + "description": "sg id", + "name": "sg", "in": "path", "required": true }, { - "description": "Snapshot Data", + "description": "Security group ID", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceSnapshotRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CommitSecurityGroupRequest" } } ], @@ -31679,393 +32221,354 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateInstanceSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CommitSecurityGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/snapshot/{snapshot}": { - "delete": { + "/v3-preview/cloud/security-group/{group}/rename": { + "patch": { "security": [ { "Token": [] } ], - "description": "Deletes a snapshot of an instance.", + "description": "Renames a security group.", "tags": [ "preview" ], - "summary": "delete instance snapshot", + "summary": "renames a security group", "parameters": [ { - "type": "string", - "description": "Instance ID", - "name": "instance", + "type": "integer", + "description": "sg id", + "name": "sg", "in": "path", "required": true }, { - "type": "string", - "description": "Snapshot ID", - "name": "snapshot", - "in": "path", - "required": true + "description": "Security Group name", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameSecurityGroupRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameSecurityGroupResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/snapshot/{snapshot}/revert": { - "patch": { + "/v3-preview/cloud/system/config": { + "get": { "security": [ { "Token": [] } ], - "description": "Reverts an instance to a snapshot.", + "description": "Return the system configuration.", "tags": [ "preview" ], - "summary": "patch instance snapshot", - "parameters": [ - { - "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "snapshot id", - "name": "snapshot", - "in": "path", - "required": true - } - ], + "summary": "returns the system configuration", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RevertInstanceSnapshotResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SystemConfigResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/template": { - "patch": { + "/v3-preview/cloud/system/version": { + "get": { "security": [ { "Token": [] } ], - "description": "Replaces the user template contents of an instance.", + "description": "Return the system core version.", "tags": [ "preview" ], - "summary": "patch instance template", - "parameters": [ - { - "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true - }, - { - "description": "Template Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceTemplateRequest" - } - } - ], + "summary": "returns the core version", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateInstanceTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SystemVersionResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/instance/{instance}/unlock": { - "patch": { + "/v3-preview/cloud/template": { + "get": { "security": [ { "Token": [] } ], - "description": "Unlocks an instance.", + "description": "Retrieves information for all or part of the Resources in the pool.", "tags": [ "preview" ], - "summary": "patch instance unlock", + "summary": "list templates", "parameters": [ { - "type": "integer", - "description": "instance id", - "name": "instance", - "in": "path", - "required": true + "type": "string", + "description": "Filter", + "name": "filter", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockInstanceResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.TemplatesResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/instance/{instance}/vnc": { + }, "post": { "security": [ { "Token": [] } ], - "description": "Establish a VNC proxy that drives the console for an instance.", + "description": "Allocates a new template.", "tags": [ "preview" ], - "summary": "post a VNC proxy that drives the console for an instance", + "summary": "post template", "parameters": [ { - "type": "integer", - "description": "Instance ID", - "name": "instance", - "in": "path", - "required": true - }, - { - "description": "Zone", - "name": "zone", + "description": "Template", + "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateVNCProxyRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateTemplateRequest" } } ], @@ -32073,455 +32576,399 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateVNCProxyResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "409": { - "description": "Conflict", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market": { + "/v3-preview/cloud/template/{template}": { "get": { "security": [ { "Token": [] } ], - "description": "Retrieves information for all or part of the marketplaces in the pool.", + "description": "Retrieves information for the template.", "tags": [ "preview" ], - "summary": "get markets info", + "summary": "list a template", + "parameters": [ + { + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" + }, + { + "type": "integer", + "description": "ID", + "name": "template", + "in": "path", + "required": true + } + ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.TemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "post": { + "delete": { "security": [ { "Token": [] } ], - "description": "Allocates a new marketplace.", + "description": "Deletes the given template from the pool.", "tags": [ "preview" ], - "summary": "post market", + "summary": "delete template", "parameters": [ { - "description": "Marketplace Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateMarketRequest" - } + "type": "boolean", + "description": "Delete disk", + "name": "disk", + "in": "query" + }, + { + "type": "string", + "description": "Template ID", + "name": "template", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateMarketResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DeleteTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/market/app": { - "get": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Retrieves information for all or part of the marketplace apps in the pool.", + "description": "Replaces the template contents.", "tags": [ "preview" ], - "summary": "get market apps info", + "summary": "update template", "parameters": [ - { - "type": "string", - "description": "Filter flag", - "name": "filter", - "in": "query" - }, { "type": "integer", - "description": "start", - "name": "start", - "in": "query" + "description": "template id", + "name": "template", + "in": "path", + "required": true }, { - "type": "integer", - "description": "end", - "name": "end", - "in": "query" + "description": "Template", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateTemplateRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketAppsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market/app/{app}": { - "get": { + "/v3-preview/cloud/template/{template}/clone": { + "post": { "security": [ { "Token": [] } ], - "description": "Retrieves information for the marketplace app.", + "description": "Clones an existing virtual machine template.", "tags": [ "preview" ], - "summary": "get market app info", + "summary": "clone template", "parameters": [ { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, - { - "type": "integer", - "description": "ID", - "name": "app", + "type": "string", + "description": "Template ID", + "name": "template", "in": "path", "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketAppResponse" - } }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", + { + "description": "Template", + "name": "data", + "in": "body", + "required": true, "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneTemplateRequest" } } - } - }, - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Deletes the given marketplace app from the pool.", - "tags": [ - "preview" - ], - "summary": "delete marketplace app", - "parameters": [ - { - "type": "integer", - "description": "Market ID", - "name": "app", - "in": "path", - "required": true - } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneTemplateResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market/app/{app}/": { + "/v3-preview/cloud/template/{template}/instantiate": { "patch": { "security": [ { "Token": [] } ], - "description": "Replaces the marketplace app template contents.", + "description": "Instantiates a new virtual machine from a template.", "tags": [ "preview" ], - "summary": "update marketplace app", + "summary": "instantiate template", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "MarketApp Template", + "description": "Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateMarketAppRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateTemplateRequest" } } ], @@ -32529,81 +32976,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateMarketAppResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market/app/{app}/enable": { + "/v3-preview/cloud/template/{template}/lock": { "patch": { "security": [ { "Token": [] } ], - "description": "Enables or disables a marketplace app.", + "description": "Locks a Template.", "tags": [ "preview" ], - "summary": "enable marketplace app", + "summary": "lock a template", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "Enable App Data", + "description": "Templates", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableMarketAppRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockTemplateRequest" } } ], @@ -32611,81 +33058,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableMarketAppResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market/app/{app}/lock": { + "/v3-preview/cloud/template/{template}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Locks a MarketPlaceApp. Lock certain actions depending on blocking level.", + "description": "Renames a template.", "tags": [ "preview" ], - "summary": "lock market app", + "summary": "rename template", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "Lock App Data", + "description": "Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockMarketAppRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameTemplateRequest" } } ], @@ -32693,81 +33140,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockMarketAppResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market/app/{app}/name": { + "/v3-preview/cloud/template/{template}/ownership": { "patch": { "security": [ { "Token": [] } ], - "description": "Renames a marketplace app.", + "description": "Changes the ownership of a template.", "tags": [ "preview" ], - "summary": "patch market app name", + "summary": "change template ownership", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "Name Data", + "description": "Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameMarketAppRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeTemplateOwnershipRequest" } } ], @@ -32775,81 +33222,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameMarketAppResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeTemplateOwnershipResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market/app/{app}/ownership": { + "/v3-preview/cloud/template/{template}/permissions": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the ownership of a marketplace app.", + "description": "Changes the permission bits of a template.", "tags": [ "preview" ], - "summary": "patch market app ownership", + "summary": "change template permissions", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "template id", + "name": "template", "in": "path", "required": true }, { - "description": "Ownership Data", + "description": "Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketAppOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeTemplatePermissionsRequest" } } ], @@ -32857,351 +33304,398 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketAppOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeTemplatePermissionsResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market/app/{app}/permissions": { + "/v3-preview/cloud/template/{template}/unlock": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the permission bits of a marketplace app.", + "description": "Unlocks a Template.", "tags": [ "preview" ], - "summary": "change market app permissions", + "summary": "unlock a template", "parameters": [ { "type": "integer", - "description": "app id", - "name": "app", + "description": "template id", + "name": "template", "in": "path", "required": true - }, - { - "description": "Permissions Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketAppPermissionsRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketAppPermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockTemplateResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market/app/{app}/unlock": { - "patch": { + "/v3-preview/cloud/user": { + "get": { "security": [ { "Token": [] } ], - "description": "Unlocks a MarketPlaceApp.", + "description": "Retrieves information for all users.", "tags": [ "preview" ], - "summary": "unlock market app", - "parameters": [ - { - "type": "integer", - "description": "app id", - "name": "app", - "in": "path", - "required": true - } - ], + "summary": "retrieves information for all users", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockMarketAppResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UsersResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/market/{market}": { - "get": { + }, + "post": { "security": [ { "Token": [] } ], - "description": "Retrieves information for the marketplace.", + "description": "Create new user account.", "tags": [ "preview" ], - "summary": "get market info", + "summary": "create new user", "parameters": [ { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, - { - "type": "integer", - "description": "ID", - "name": "market", - "in": "path", - "required": true + "description": "User", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateUserRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateUserResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v3-preview/cloud/user/login": { + "post": { "security": [ { "Token": [] } ], - "description": "Deletes the given market from the pool.", + "description": "Generate or set user login token.", "tags": [ "preview" ], - "summary": "delete market", + "summary": "set user login token", "parameters": [ { - "type": "integer", - "description": "Market ID", - "name": "market", - "in": "path", - "required": true + "description": "User login", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserLoginRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserLoginResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + } + }, + "/v3-preview/cloud/user/quota": { + "get": { + "security": [ + { + "Token": [] + } + ], + "description": "Returns the default user quota limits.", + "tags": [ + "preview" + ], + "summary": "returns the default user quota limits", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserQuotaResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } @@ -33212,26 +33706,19 @@ "Token": [] } ], - "description": "Replaces the marketplace template contents.", + "description": "Updates the default user quota limits.", "tags": [ "preview" ], - "summary": "update market", + "summary": "updates the default user quota limits", "parameters": [ { - "type": "integer", - "description": "market id", - "name": "market", - "in": "path", - "required": true - }, - { - "description": "Market Template", + "description": "Default user quota", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateMarketRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDefaultUserQuotaRequest" } } ], @@ -33239,245 +33726,220 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateMarketResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDefaultUserQuotaResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market/{market}/app/": { - "post": { + "/v3-preview/cloud/user/{user}": { + "get": { "security": [ { "Token": [] } ], - "description": "Allocates a new marketplace app.", + "description": "Retrieves information for the user.", "tags": [ "preview" ], - "summary": "post marketapp", + "summary": "retrieves information for the user", "parameters": [ { "type": "integer", - "description": "market id", - "name": "market", + "description": "User ID", + "name": "user", "in": "path", "required": true - }, - { - "description": "Marketplace Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateMarketAppRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateMarketAppResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserResponse" } }, "400": { - "description": "error", + "description": "Bad Request", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "error", + "description": "Internal Server Error", "schema": { - "type": "string" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/market/{market}/enable": { - "patch": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Enable/disable the Marketplace.", + "description": "Deletes an user.", "tags": [ "preview" ], - "summary": "enable market", + "summary": "delete user", "parameters": [ { "type": "integer", - "description": "market id", - "name": "market", + "description": "Group ID", + "name": "user", "in": "path", "required": true - }, - { - "description": "Enable Data", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableMarketRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableMarketResponse" - } + "description": "OK" }, "400": { - "description": "Bad Request", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "Internal Server Error", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/market/{market}/name": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Renames a marketplace.", + "description": "Update user data.", "tags": [ "preview" ], - "summary": "patch market name", + "summary": "update user", "parameters": [ { "type": "integer", - "description": "market id", - "name": "market", + "description": "user id", + "name": "user", "in": "path", "required": true }, { - "description": "Name Data", + "description": "User", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameMarketRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateUserRequest" } } ], @@ -33485,81 +33947,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameMarketResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateUserResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market/{market}/ownership": { + "/v3-preview/cloud/user/{user}/auth": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the ownership of a marketplace.", + "description": "Changes the authentication driver and the password for the given user.", "tags": [ "preview" ], - "summary": "patch market ownership", + "summary": "change authentication driver and password", "parameters": [ { "type": "integer", - "description": "market id", - "name": "market", + "description": "user id", + "name": "user", "in": "path", "required": true }, { - "description": "Ownership Data", + "description": "authentication driver", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeUserAuthRequest" } } ], @@ -33567,81 +34029,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeUserAuthResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/market/{market}/permissions": { + "/v3-preview/cloud/user/{user}/enable": { "patch": { "security": [ { "Token": [] } ], - "description": "Changes the permission bits of a marketplace.", + "description": "Enables or disables an user.", "tags": [ "preview" ], - "summary": "change market permissions", + "summary": "enables or disables an user", "parameters": [ { "type": "integer", - "description": "market id", - "name": "market", + "description": "user id", + "name": "user", "in": "path", "required": true }, { - "description": "Permissions Data", + "description": "Enable", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketPermissionsRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableUserRequest" } } ], @@ -33649,448 +34111,533 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeMarketPermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableUserResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network": { - "get": { + "/v3-preview/cloud/user/{user}/group/{group}": { + "post": { "security": [ { "Token": [] } ], - "description": "List virtual networks.", + "description": "Adds the user to a secondary group.", "tags": [ "preview" ], - "summary": "get networks", + "summary": "adds the user to a secondary group.", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" + "type": "integer", + "description": "User ID", + "name": "user", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "Group ID", + "name": "group", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.NetworksResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddUserGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } }, - "post": { + "delete": { "security": [ { "Token": [] } ], - "description": "Create a network.", + "description": "Removes user from a secondary group.", "tags": [ "preview" ], - "summary": "post network", + "summary": "remove user from group", "parameters": [ { - "description": "Network Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateNetworkRequest" - } + "type": "integer", + "description": "User ID", + "name": "user", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "Group ID", + "name": "group", + "in": "path", + "required": true } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateNetworkResponse" - } + "description": "OK" }, "400": { - "description": "Bad Request", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { - "description": "Internal Server Error", + "description": "error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "type": "string" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/network/template": { - "post": { + }, + "patch": { "security": [ { "Token": [] } ], - "description": "Create a virtual network template.", + "description": "Changes the group of the given user.", "tags": [ "preview" ], - "summary": "create network template", + "summary": "changes the group of the given user", "parameters": [ { - "description": "Network Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateNetworkTemplateRequest" - } + "type": "integer", + "description": "user id", + "name": "user", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "group id", + "name": "group", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateNetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeUserGroupResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/template/{template}": { - "get": { + "/v3-preview/cloud/user/{user}/password": { + "patch": { "security": [ { "Token": [] } ], - "description": "List virtual network template.", + "description": "Set new user password.", "tags": [ "preview" ], - "summary": "list network template", + "summary": "set user password", "parameters": [ - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, { "type": "integer", - "description": "Template ID", - "name": "template", + "description": "user id", + "name": "user", "in": "path", "required": true + }, + { + "description": "User password", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeUserPasswordRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.NetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeUserPasswordResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v3-preview/cloud/user/{user}/quota": { + "post": { "security": [ { "Token": [] } ], - "description": "Delete a virtual network template.", + "description": "Sets the user quota limits.", "tags": [ "preview" ], - "summary": "delete network template", + "summary": "sets the user quota limits", "parameters": [ { - "type": "string", - "description": "Template ID", - "name": "template", + "type": "integer", + "description": "user id", + "name": "user", "in": "path", "required": true + }, + { + "description": "user quota", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetUserQuotaRequest" + } } ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetUserQuotaResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/template/{template}/clone": { + "/v3-preview/cloud/zone": { + "get": { + "security": [ + { + "Token": [] + } + ], + "description": "List all zones.", + "tags": [ + "preview" + ], + "summary": "get zones", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ZonesResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "423": { + "description": "Locked", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" + } + } + } + }, "post": { "security": [ { "Token": [] } ], - "description": "Clone a virtual network template.", + "description": "Create a zone.", "tags": [ "preview" ], - "summary": "clone network template", + "summary": "post zone", "parameters": [ { - "type": "string", - "description": "Template ID", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Network Template", + "description": "Zone Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneNetworkTemplateRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateZoneRequest" } } ], @@ -34098,327 +34645,290 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneNetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateZoneResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/template/{template}/instantiate": { - "patch": { + "/v3-preview/cloud/zone/raft": { + "get": { "security": [ { "Token": [] } ], - "description": "Instantiate a virtual network template.", + "description": "Get zone raft status.", "tags": [ "preview" ], - "summary": "instantiate network template", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Network Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateNetworkTemplateRequest" - } - } - ], + "summary": "get zone raft status", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateNetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ZonesRaftStatusResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/template/{template}/lock": { - "patch": { + "/v3-preview/cloud/zone/{zone}": { + "get": { "security": [ { "Token": [] } ], - "description": "Lock a virtual network template.", + "description": "Get a zone.", "tags": [ "preview" ], - "summary": "lock network template", + "summary": "get zone", "parameters": [ + { + "type": "boolean", + "description": "Decrypt secrets", + "name": "decrypt", + "in": "query" + }, { "type": "integer", - "description": "template id", - "name": "template", + "description": "Zone ID", + "name": "zone", "in": "path", "required": true - }, - { - "description": "Network Lock", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockNetworkTemplateRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockNetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ZoneResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/network/template/{template}/name": { - "patch": { + }, + "delete": { "security": [ { "Token": [] } ], - "description": "Rename a virtual network template.", + "description": "Delete a zone.", "tags": [ "preview" ], - "summary": "rename network template", + "summary": "delete zone", "parameters": [ { - "type": "integer", - "description": "template id", - "name": "template", + "type": "string", + "description": "Zone ID", + "name": "zone", "in": "path", "required": true - }, - { - "description": "Network Rename", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameNetworkTemplateRequest" - } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameNetworkTemplateResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - } - }, - "/v3/cloud/network/template/{template}/owner": { + }, "patch": { "security": [ { "Token": [] } ], - "description": "Change the owner of a virtual network template.", + "description": "Update a zone.", "tags": [ "preview" ], - "summary": "change network template owner", + "summary": "update zone", "parameters": [ { "type": "integer", - "description": "template id", - "name": "template", + "description": "zone id", + "name": "zone", "in": "path", "required": true }, { - "description": "Network Owner", + "description": "Zone Template", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkTemplateOwnershipRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateZoneRequest" } } ], @@ -34426,81 +34936,81 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkTemplateOwnershipResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateZoneResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/template/{template}/permissions": { + "/v3-preview/cloud/zone/{zone}/enable": { "patch": { "security": [ { "Token": [] } ], - "description": "Change the permissions of a virtual network template.", + "description": "Enable a zone.", "tags": [ "preview" ], - "summary": "change network template permissions", + "summary": "enable zone", "parameters": [ { "type": "integer", - "description": "template id", - "name": "template", + "description": "zone id", + "name": "zone", "in": "path", "required": true }, { - "description": "Network Permissions", + "description": "Zone Enable", "name": "data", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkTemplatePermissionsRequest" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableZoneRequest" } } ], @@ -34508,7014 +35018,5486 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkTemplatePermissionsResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableZoneResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/template/{template}/unlock": { + "/v3-preview/cloud/zone/{zone}/name": { "patch": { "security": [ { "Token": [] } ], - "description": "Unlock a virtual network template.", + "description": "Rename a zone.", "tags": [ "preview" ], - "summary": "unlock network template", + "summary": "rename zone", "parameters": [ { "type": "integer", - "description": "template id", - "name": "template", + "description": "zone id", + "name": "zone", "in": "path", "required": true + }, + { + "description": "Zone Name", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameZoneRequest" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockNetworkTemplateResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameZoneResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/templates": { - "get": { + "/v3-preview/metal/datastore": { + "post": { "security": [ { "Token": [] } ], - "description": "Get a list of virtual network templates.", + "description": "Creates a storage pool and associates it with a datastore.", "tags": [ "preview" ], - "summary": "get network templates", + "summary": "Create a datastore", "parameters": [ { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" + "description": "Datastore definition", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.CreateDatastoreRequest" + } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.NetworkTemplateResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, - "404": { - "description": "Not Found", + "409": { + "description": "Conflict", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, - "423": { - "description": "Locked", + "500": { + "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, - "500": { - "description": "Internal Server Error", + "501": { + "description": "Not Implemented", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/{network}": { - "get": { + "/v3-preview/metal/datastore/{name}": { + "delete": { "security": [ { "Token": [] } ], - "description": "List a virtual network.", + "description": "Delete a datastore and underlying pool.", "tags": [ "preview" ], - "summary": "get network", + "summary": "delete datastore", "parameters": [ { - "type": "integer", - "description": "Network ID", - "name": "network", + "type": "string", + "description": "Datastore Name", + "name": "name", "in": "path", "required": true - }, - { - "type": "string", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.NetworkResponse" - } + "description": "OK" }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" + } + }, + "501": { + "description": "Not Implemented", + "schema": { + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "delete": { + } + }, + "/v3-preview/metal/host": { + "get": { "security": [ { "Token": [] } ], - "description": "Delete a network.", + "description": "Get a list of all bare-metal hosts.", "tags": [ "preview" ], - "summary": "delete network", - "parameters": [ - { - "type": "string", - "description": "Network ID", - "name": "network", - "in": "path", - "required": true - } - ], + "summary": "get hosts", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HostsResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/metal/host/{id}/": { + "get": { "security": [ { "Token": [] } ], - "description": "Update a network.", + "description": "Returns the details of the host with the given hostname.", "tags": [ "preview" ], - "summary": "update network", + "summary": "Get a single host", "parameters": [ { - "type": "integer", - "description": "network id", - "name": "network", + "type": "string", + "description": "hostname", + "name": "id", "in": "path", "required": true - }, - { - "description": "Network", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkRequest" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HostResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/{network}/address-range": { - "post": { + "/v3-preview/snapper/snapshots/archive": { + "get": { "security": [ { "Token": [] } ], - "description": "Add an address range to a network.", + "description": "Returns a list of all archive snapshots.", "tags": [ "preview" ], - "summary": "add address range", - "parameters": [ - { - "type": "integer", - "description": "Network ID", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Address Range", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddNetworkAddressRangeRequest" - } - } - ], + "summary": "get archive snapshots", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddNetworkAddressRangeResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_snapshot.ListArchiveResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } - }, - "patch": { + } + }, + "/v3-preview/snapper/snapshots/manual": { + "get": { "security": [ { "Token": [] } ], - "description": "Update an address range in a network.", + "description": "Returns a list of all manual snapshots.", "tags": [ "preview" ], - "summary": "update address range", - "parameters": [ - { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Address Range", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkAddressRangeRequest" - } - } - ], + "summary": "get manual snapshots", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkAddressRangeResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_snapshot.ListManualResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/{network}/address-range/{range}": { - "delete": { + "/v3-preview/snapper/snapshots/remote": { + "get": { "security": [ { "Token": [] } ], - "description": "Delete an address range from a network.", + "description": "Returns a list of all remote snapshots.", "tags": [ "preview" ], - "summary": "delete address range", - "parameters": [ - { - "type": "integer", - "description": "Network ID", - "name": "network", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Address Range ID", - "name": "ar", - "in": "path", - "required": true - }, - { - "type": "boolean", - "description": "Force delete", - "name": "force", - "in": "query" - } - ], + "summary": "get remote snapshots", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_snapshot.ListRemoteResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/{network}/address-range/{range}/free": { - "delete": { + "/v3-preview/snapper/stack": { + "get": { "security": [ { "Token": [] } ], - "description": "Free a reserved address range from a network.", + "description": "Returns the runtime stack of all goroutines in the snapper service.", "tags": [ "preview" ], - "summary": "free address range", - "parameters": [ - { - "type": "string", - "description": "Network ID", - "name": "network", - "in": "path", - "required": true - }, - { - "type": "string", - "description": "Address Range ID", - "name": "ar", - "in": "path", - "required": true - } - ], + "summary": "get snapper stack", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/github_com_softiron_manifold-api_snapshot.ListStackResponse" + } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } }, - "/v3/cloud/network/{network}/hold": { - "patch": { + "/v3-preview/snapper/status": { + "get": { "security": [ { "Token": [] } ], - "description": "Holds a virtual network lease as used.", + "description": "Returns the status of the snapper service.", "tags": [ "preview" ], - "summary": "hold network", - "parameters": [ - { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Network Hold", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HoldNetworkRequest" - } - } - ], + "summary": "get snapper status", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HoldNetworkResponse" + "$ref": "#/definitions/github_com_softiron_manifold-api_snapshot.ListStatusResponse" } }, "400": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "401": { "description": "Unauthorized", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "403": { "description": "Forbidden", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "404": { "description": "Not Found", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "423": { "description": "Locked", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } }, "503": { "description": "Service Unavailable", "schema": { - "$ref": "#/definitions/sifi.ResponseError" + "$ref": "#/definitions/manifold.ResponseError" } } } } - }, - "/v3/cloud/network/{network}/lock": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Lock a virtual network.", - "tags": [ - "preview" - ], - "summary": "lock network", - "parameters": [ - { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Network Lock", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockNetworkRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockNetworkResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "definitions": { + "auth.LoginResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" } } }, - "/v3/cloud/network/{network}/name": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Rename a network.", - "tags": [ - "preview" - ], - "summary": "patch name", - "parameters": [ - { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Network Rename", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameNetworkRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameNetworkResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + "cloud.DocumentTemplate": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" } } } }, - "/v3/cloud/network/{network}/ownership": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Change ownership on a network.", - "tags": [ - "preview" - ], - "summary": "patch ownership", - "parameters": [ - { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Network Ownership", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkOwnershipRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkOwnershipResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + "cloud.InstanceGroupTemplate": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" } } } }, - "/v3/cloud/network/{network}/permissions": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Change permissions on a network.", - "tags": [ - "preview" - ], - "summary": "patch permissions", - "parameters": [ - { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Network Permissions", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkPermissionsRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeNetworkPermissionsResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + "cloud.MarketplaceAppTemplate": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" } } } }, - "/v3/cloud/network/{network}/recover": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Recover a virtual network.", - "tags": [ - "preview" - ], - "summary": "recover network", - "parameters": [ - { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Network Recover", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RecoverNetworkRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RecoverNetworkResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + "cloud.RouterTemplate": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" } } } }, - "/v3/cloud/network/{network}/release": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Releases a virtual network lease on hold.", - "tags": [ - "preview" - ], - "summary": "release network", - "parameters": [ - { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Network Release", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ReleaseNetworkRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ReleaseNetworkResponse" - } - }, - "400": { - "description": "error", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "error", - "schema": { - "type": "string" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.ACL": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "resource": { + "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (VM, Host...) | resource ID |\n +-----------------------+-----------------------+", + "type": "integer" + }, + "rights": { + "description": "64 bits\n +-----------------------------------------------+\n | Actions (MANAGE, CREATE, USE... |\n +-----------------------------------------------+", + "type": "integer" + }, + "string": { + "type": "string" + }, + "user": { + "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (user,group,all) | user/group ID |\n +-----------------------+-----------------------+", + "type": "integer" + }, + "zone": { + "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (individual,all) | zone ID |\n +-----------------------+-----------------------+", + "type": "integer" } } }, - "/v3/cloud/network/{network}/reserve": { - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Reserve a network.", - "tags": [ - "preview" - ], - "summary": "reserve network", - "parameters": [ - { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Network Reservation", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ReserveNetworkRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ReserveNetworkResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + "github_com_softiron_manifold-api_cloud.ACLsResponse": { + "type": "object", + "properties": { + "acls": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ACL" } } } }, - "/v3/cloud/network/{network}/template/update": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Update a virtual network template.", - "tags": [ - "preview" - ], - "summary": "update network template", - "parameters": [ - { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - }, - { - "description": "Network Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkTemplateRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateNetworkTemplateResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.AcctHistory": { + "type": "object", + "properties": { + "action": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Action" + }, + "cluster_id": { + "type": "integer" + }, + "datastore_id": { + "type": "integer" + }, + "end_time": { + "type": "string" + }, + "epilog_end_time": { + "type": "string" + }, + "epilog_start_time": { + "type": "string" + }, + "group_id": { + "type": "integer" + }, + "host_id": { + "type": "integer" + }, + "hostname": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "instance": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Instance" + }, + "instance_mad": { + "type": "string" + }, + "prolog_end_time": { + "type": "string" + }, + "prolog_start_time": { + "type": "string" + }, + "request_id": { + "type": "integer" + }, + "running_end_time": { + "type": "string" + }, + "running_start_time": { + "type": "string" + }, + "sequence_number": { + "type": "integer" + }, + "start_time": { + "type": "string" + }, + "transfer_manager_mad": { + "type": "string" + }, + "user_id": { + "type": "integer" } } }, - "/v3/cloud/network/{network}/unlock": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Unlock a virtual network.", - "tags": [ - "preview" - ], - "summary": "unlock network", - "parameters": [ - { - "type": "integer", - "description": "network id", - "name": "network", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockNetworkResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.AddGroupAdminRequest": { + "type": "object", + "properties": { + "user": { + "type": "integer" } } }, - "/v3/cloud/router": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "List virtual routers", - "tags": [ - "preview" - ], - "summary": "get routers", - "parameters": [ - { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RoutersResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.AddGroupAdminResponse": { + "type": "object", + "properties": { + "group": { + "type": "integer" } - }, - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Create a virtual router", - "tags": [ - "preview" - ], - "summary": "post router", - "parameters": [ - { - "description": "Router Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateRouterRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateRouterResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.AddInstanceScheduleRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" } } }, - "/v3/cloud/router/{router}": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "List a virtual router", - "tags": [ - "preview" - ], - "summary": "get router", - "parameters": [ - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, - { - "type": "string", - "description": "Router ID", - "name": "router", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RouterResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.AddInstanceScheduleResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" } - }, - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Delete a virtual router", - "tags": [ - "preview" - ], - "summary": "delete router", - "parameters": [ - { - "type": "boolean", - "description": "Delete disk", - "name": "disk", - "in": "query" - }, - { - "type": "string", - "description": "Router ID", - "name": "router", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.AddInstanceSecurityGroupResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" } - }, - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Update a virtual router", - "tags": [ - "preview" - ], - "summary": "update router", - "parameters": [ - { - "type": "integer", - "description": "router id", - "name": "router", - "in": "path", - "required": true - }, - { - "description": "Router Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateRouterRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateRouterResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.AddNetworkAddressRangeRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" } } }, - "/v3/cloud/router/{router}/instantiate": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Instantiate a virtual router", - "tags": [ - "preview" - ], - "summary": "instantiate router", - "parameters": [ - { - "type": "integer", - "description": "router id", - "name": "router", - "in": "path", - "required": true - }, - { - "description": "Router Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateRouterRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateRouterResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.AddNetworkAddressRangeResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" } } }, - "/v3/cloud/router/{router}/lock": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Lock a virtual router", - "tags": [ - "preview" - ], - "summary": "lock router", - "parameters": [ - { - "type": "integer", - "description": "router id", - "name": "router", - "in": "path", - "required": true - }, - { - "description": "Router Lock", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockRouterRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockRouterResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.AddUserGroupResponse": { + "type": "object", + "properties": { + "user": { + "type": "integer" } } }, - "/v3/cloud/router/{router}/name": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Rename a virtual router", - "tags": [ - "preview" - ], - "summary": "rename router", - "parameters": [ - { - "type": "integer", - "description": "router id", - "name": "router", - "in": "path", - "required": true - }, - { - "description": "Router Rename", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameRouterRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameRouterResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.AllocateDocumentRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + }, + "type": { + "type": "integer" } } }, - "/v3/cloud/router/{router}/nic": { - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Add a NIC to a virtual router", - "tags": [ - "preview" - ], - "summary": "add router nic", - "parameters": [ - { - "type": "integer", - "description": "virtual router ID", - "name": "router", - "in": "path", - "required": true - }, - { - "description": "Router NIC", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateRouterNICRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateRouterNICResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.AllocateDocumentResponse": { + "type": "object", + "properties": { + "document": { + "type": "integer" } } }, - "/v3/cloud/router/{router}/nic/{nic}": { - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Remove a NIC from a virtual router", - "tags": [ - "preview" - ], - "summary": "remove router nic", - "parameters": [ - { - "type": "string", - "description": "Router ID", - "name": "router", - "in": "path", - "required": true - }, - { - "type": "string", - "description": "NIC ID", - "name": "nic", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.CalculateInstancesShowbackRequest": { + "type": "object", + "properties": { + "month": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Period" + }, + "year": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Period" } } }, - "/v3/cloud/router/{router}/ownership": { - "patch": { - "security": [ - { - "Token": [] + "github_com_softiron_manifold-api_cloud.Capacity": { + "type": "object", + "properties": { + "free_cpu": { + "type": "integer" + }, + "free_memory": { + "type": "integer" + }, + "used_cpu": { + "type": "integer" + }, + "used_memory": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeDocumentOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeDocumentOwnershipResponse": { + "type": "object", + "properties": { + "document": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeDocumentPermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeDocumentPermissionsResponse": { + "type": "object", + "properties": { + "document": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeImageOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeImageOwnershipResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeImagePermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeImagePermissionsResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeImageTypeRequest": { + "type": "object", + "properties": { + "type": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeImageTypeResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeInstanceGroupOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeInstanceGroupOwnershipResponse": { + "type": "object", + "properties": { + "group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeInstanceGroupPermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeInstanceGroupPermissionsResponse": { + "type": "object", + "properties": { + "group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeInstanceOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeInstanceOwnershipResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeInstancePermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeInstancePermissionsResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeMarketAppOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeMarketAppOwnershipResponse": { + "type": "object", + "properties": { + "market_app": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeMarketAppPermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeMarketAppPermissionsResponse": { + "type": "object", + "properties": { + "market_app": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeMarketOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeMarketOwnershipResponse": { + "type": "object", + "properties": { + "market": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeMarketPermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeMarketPermissionsResponse": { + "type": "object", + "properties": { + "market": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeNetworkOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeNetworkOwnershipResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeNetworkPermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeNetworkPermissionsResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeNetworkTemplateOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeNetworkTemplateOwnershipResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeNetworkTemplatePermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeNetworkTemplatePermissionsResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeRouterOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeRouterOwnershipResponse": { + "type": "object", + "properties": { + "router": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeRouterPermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeRouterPermissionsResponse": { + "type": "object", + "properties": { + "router": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeSecurityGroupOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeSecurityGroupOwnershipResponse": { + "type": "object", + "properties": { + "security_group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeSecurityGroupPermissionsRequest": { + "type": "object", + "properties": { + "perms": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeSecurityGroupPermissionsResponse": { + "type": "object", + "properties": { + "security_group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeTemplateOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeTemplateOwnershipResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeTemplatePermissionsRequest": { + "type": "object", + "properties": { + "disk": { + "type": "boolean" + }, + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeTemplatePermissionsResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeUserAuthRequest": { + "type": "object", + "properties": { + "driver": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeUserAuthResponse": { + "type": "object", + "properties": { + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeUserGroupResponse": { + "type": "object", + "properties": { + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeUserPasswordRequest": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.ChangeUserPasswordResponse": { + "type": "object", + "properties": { + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CloneDocumentRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CloneDocumentResponse": { + "type": "object", + "properties": { + "document": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CloneImageRequest": { + "type": "object", + "properties": { + "datastore": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CloneImageResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CloneNetworkTemplateRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CloneNetworkTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CloneSecurityGroupRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CloneSecurityGroupResponse": { + "type": "object", + "properties": { + "security_group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CloneTemplateRequest": { + "type": "object", + "properties": { + "disk": { + "type": "boolean" + }, + "name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CloneTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.Cluster": { + "type": "object", + "properties": { + "datastores": { + "type": "array", + "items": { + "type": "integer" + } + }, + "hosts": { + "type": "array", + "items": { + "type": "integer" + } + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "networks": { + "type": "array", + "items": { + "type": "integer" + } + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + } + } + }, + "github_com_softiron_manifold-api_cloud.ClusterResponse": { + "type": "object", + "properties": { + "cluster": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Cluster" + } + } + }, + "github_com_softiron_manifold-api_cloud.ClustersResponse": { + "type": "object", + "properties": { + "cluster": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Cluster" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.CommitSecurityGroupRequest": { + "type": "object", + "properties": { + "all": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_cloud.CommitSecurityGroupResponse": { + "type": "object", + "properties": { + "security_group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.Configuration": { + "type": "object", + "properties": { + "api_list_order": { + "type": "array", + "items": { + "type": "string" + } + }, + "auth_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.AuthMAD" + } + }, + "auth_madconf": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.AuthMADConf" + } + }, + "cluster_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "datastore_capacity_check": { + "type": "array", + "items": { + "type": "string" + } + }, + "datastore_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "datastore_location": { + "type": "array", + "items": { + "type": "string" + } + }, + "datastore_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.DatastoreMAD" + } + }, + "db": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.DB" + }, + "default_auth": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_cdrom_device_prefix": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_cost": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.DefaultCost" + } + }, + "default_device_prefix": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_image_persistent": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_image_persistent_new": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_image_type": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_umask": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdccluster_datastore_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdccluster_host_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdccluster_net_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdcdatastore_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdchost_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdcvnet_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "document_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "dsmadconf": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.DSMADConf" + } + }, + "dsmonitor_instance_disk": { + "type": "integer" + }, + "enable_other_permissions": { + "type": "string" + }, + "federation": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.Federation" + }, + "group_restricted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "hook_log_conf": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.HookLogConf" + }, + "hook_manager_mad": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.HookManagerMAD" + }, + "host_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "im_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.ImMAD" + } + }, + "image_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "image_restricted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "inherit_datastore_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "inherit_image_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "inherit_vnet_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance_admin_operations": { + "type": "string" + }, + "instance_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.InstanceMAD" + } + }, + "instance_manage_operations": { + "type": "string" + }, + "instance_monitoring_expiration_time": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance_restricted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance_snapshot_factor": { + "type": "string" + }, + "instance_submit_on_hold": { + "type": "string" + }, + "instance_use_operations": { + "type": "array", + "items": { + "type": "string" + } + }, + "ipam_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.IpamMAD" + } + }, + "keepalive_max_conn": { + "type": "array", + "items": { + "type": "integer" + } + }, + "keepalive_timeout": { + "type": "array", + "items": { + "type": "integer" + } + }, + "listen_address": { + "type": "array", + "items": { + "type": "string" + } + }, + "log": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.Log" + } + }, + "log_call_format": { + "type": "array", + "items": { + "type": "string" + } + }, + "macprefix": { + "type": "array", + "items": { + "type": "string" + } + }, + "manager_timer": { + "type": "array", + "items": { + "type": "integer" + } + }, + "market_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.MarketMAD" + } + }, + "market_madconf": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.MarketMADConf" + } + }, + "max_conn": { + "type": "integer" + }, + "max_conn_backlog": { + "type": "integer" + }, + "message_size": { + "type": "integer" + }, + "monitoring_interval_datastore": { + "type": "integer" + }, + "monitoring_interval_dbupdate": { + "type": "integer" + }, + "monitoring_interval_host": { + "type": "integer" + }, + "monitoring_interval_instance": { + "type": "integer" + }, + "monitoring_interval_market": { + "type": "integer" + }, + "network_size": { + "type": "integer" + }, + "one_key": { + "type": "array", + "items": { + "type": "string" + } + }, + "pcipassthrough_bus": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "raft": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.Raft" + }, + "rpclog": { + "type": "string" + }, + "scripts_remote_dir": { + "type": "string" + }, + "session_expiration_time": { + "type": "integer" + }, + "showback_only_running": { + "type": "string" + }, + "timeout": { + "type": "integer" + }, + "tm_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.TmMAD" + } + }, + "tm_madconf": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.TmMADConf" + } + }, + "user_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "user_restricted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "vlanids": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.VLANIDs" + }, + "vncports": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.VNCPorts" + }, + "vnet_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "vnet_restricted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "vnmadconf": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.VNetMADConf" + } + }, + "vxlan_ids": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.VxlanIDs" + } + } + }, + "github_com_softiron_manifold-api_cloud.Core": { + "type": "object", + "properties": { + "cpus": { + "type": "string" + }, + "dedicated": { + "type": "boolean" + }, + "free": { + "type": "integer" + }, + "id": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateACLRequest": { + "type": "object", + "properties": { + "resource": { + "type": "integer" + }, + "rights": { + "type": "integer" + }, + "user": { + "type": "integer" + }, + "zone": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateACLResponse": { + "type": "object", + "properties": { + "acl": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateGroupRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateGroupResponse": { + "type": "object", + "properties": { + "group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateHookRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateHookResponse": { + "type": "object", + "properties": { + "hook": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateImageRequest": { + "type": "object", + "properties": { + "datastore": { + "type": "integer" + }, + "enforce_capacity": { + "type": "boolean" + }, + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateImageResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceDiskImageRequest": { + "type": "object", + "properties": { + "image_type": { + "type": "string" + }, + "name": { + "type": "string" + }, + "snapshot": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceDiskImageResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceDiskRequest": { + "type": "object", + "properties": { + "disk": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceDiskResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceDiskSnapshotRequest": { + "type": "object", + "properties": { + "description": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceDiskSnapshotResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceGroupRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceNICRequest": { + "type": "object", + "properties": { + "nic": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceNICResponse": { + "type": "object", + "properties": { + "instance": { + "description": "TODO: would make more sense as NIC ID, maybe docs are wrong", + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceRequest": { + "type": "object", + "properties": { + "pending": { + "type": "boolean" + }, + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceSnapshotRequest": { + "type": "object", + "properties": { + "snapshot": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateInstanceSnapshotResponse": { + "type": "object", + "properties": { + "snapshot": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateMarketAppRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateMarketAppResponse": { + "type": "object", + "properties": { + "market_app": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateMarketRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateMarketResponse": { + "type": "object", + "properties": { + "market": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateNetworkRequest": { + "type": "object", + "properties": { + "cluster": { + "type": "integer" + }, + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateNetworkResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateNetworkTemplateRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateNetworkTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateRouterNICRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateRouterNICResponse": { + "type": "object", + "properties": { + "router": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateRouterRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateRouterResponse": { + "type": "object", + "properties": { + "router": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateSecurityGroupRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateSecurityGroupResponse": { + "type": "object", + "properties": { + "security_group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateTemplateRequest": { + "type": "object", + "properties": { + "data": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateUserRequest": { + "type": "object", + "properties": { + "auth": { + "type": "string" + }, + "gids": { + "type": "array", + "items": { + "type": "integer" + } + }, + "password": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateUserResponse": { + "type": "object", + "properties": { + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateVNCProxyRequest": { + "type": "object", + "properties": { + "zone": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateVNCProxyResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "password": { + "type": "string" + }, + "token": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateZoneRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.CreateZoneResponse": { + "type": "object", + "properties": { + "zone": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.DataCenter": { + "type": "object", + "properties": { + "clusters": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_datacenter.Cluster" + } + }, + "datastores": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_datacenter.Datastore" + } + }, + "groups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "hosts": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_datacenter.Host" + } + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "networks": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_datacenter.Network" + } + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + } + } + }, + "github_com_softiron_manifold-api_cloud.DataCenterResponse": { + "type": "object", + "properties": { + "datacenter": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DataCenter" + } + } + }, + "github_com_softiron_manifold-api_cloud.DataCentersResponse": { + "type": "object", + "properties": { + "datacenters": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DataCenter" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.Datastore": { + "type": "object", + "properties": { + "base_path": { + "type": "string" + }, + "clusters": { + "type": "array", + "items": { + "type": "integer" + } + }, + "datastore_mad": { + "type": "string" + }, + "disk_type": { + "type": "integer" + }, + "free_mb": { + "type": "integer" + }, + "group_id": { + "type": "integer" + }, + "group_name": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "images": { + "type": "array", + "items": { + "type": "integer" + } + }, + "name": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + }, + "state": { + "type": "string", + "enum": [ + "ready", + "disabled" + ] + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "total_mb": { + "type": "integer" + }, + "transfer_manager_mad": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "image", + "system", + "file" + ] + }, + "used_mb": { + "type": "integer" + }, + "user_id": { + "type": "integer" + }, + "user_name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.DatastoreResponse": { + "type": "object", + "properties": { + "datastore": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Datastore" + } + } + }, + "github_com_softiron_manifold-api_cloud.Datastores": { + "type": "object", + "properties": { + "disk_usage": { + "type": "integer" + }, + "free_disk": { + "type": "integer" + }, + "max_disk": { + "type": "integer" + }, + "used_disk": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.DatastoresResponse": { + "type": "object", + "properties": { + "datastore": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Datastore" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.DeleteTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.DeployInstanceRequest": { + "type": "object", + "properties": { + "datastore": { + "type": "integer" + }, + "enforce": { + "type": "boolean" + }, + "host": { + "type": "integer" + }, + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.DeployInstanceResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.Document": { + "type": "object", + "properties": { + "group_id": { + "type": "integer" + }, + "group_name": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + }, + "name": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "type": { + "type": "string" + }, + "user_id": { + "type": "integer" + }, + "user_name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.DocumentResponse": { + "type": "object", + "properties": { + "document": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Document" + } + } + }, + "github_com_softiron_manifold-api_cloud.DocumentsResponse": { + "type": "object", + "properties": { + "document": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Document" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableDatastoreRequest": { + "type": "object", + "properties": { + "enable": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableDatastoreResponse": { + "type": "object", + "properties": { + "datastore": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableImageRequest": { + "type": "object", + "properties": { + "enable": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableImageResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableMarketAppRequest": { + "type": "object", + "properties": { + "enable": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableMarketAppResponse": { + "type": "object", + "properties": { + "market": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableMarketRequest": { + "type": "object", + "properties": { + "enable": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableMarketResponse": { + "type": "object", + "properties": { + "market": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableUserRequest": { + "type": "object", + "properties": { + "enable": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableUserResponse": { + "type": "object", + "properties": { + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableZoneRequest": { + "type": "object", + "properties": { + "enable": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_cloud.EnableZoneResponse": { + "type": "object", + "properties": { + "zone": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.FlattenImageSnapshotResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.Group": { + "type": "object", + "properties": { + "admins": { + "type": "array", + "items": { + "type": "integer" + } + }, + "datastore_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDatastore" + } + }, + "default_group_quotas": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" + }, + "id": { + "type": "integer" + }, + "image_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserImage" + } + }, + "instance_quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserInstance" + }, + "name": { + "type": "string" + }, + "network_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserNetwork" + } + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "users": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.GroupQuotaResponse": { + "type": "object", + "properties": { + "quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" + } + } + }, + "github_com_softiron_manifold-api_cloud.GroupResponse": { + "type": "object", + "properties": { + "group": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Group" + } + } + }, + "github_com_softiron_manifold-api_cloud.GroupsResponse": { + "type": "object", + "properties": { + "groups": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Group" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.HoldNetworkRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.HoldNetworkResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.Hook": { + "type": "object", + "properties": { + "hook_log": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookLog" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "type": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.HookExecutionRecord": { + "type": "object", + "properties": { + "arguments": { + "type": "string" + }, + "execution_id": { + "type": "integer" + }, + "execution_result": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookExecutionResult" + }, + "hook_id": { + "type": "integer" + }, + "remote_host": { + "type": "string" + }, + "retry": { + "type": "string" + }, + "timestamp": { + "type": "integer" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.HookExecutionResult": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "command": { + "type": "string" + }, + "stderr": { + "type": "string" + }, + "stdout": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.HookLog": { + "type": "object", + "properties": { + "execution_record": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookExecutionRecord" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.HookLogResponse": { + "type": "object", + "properties": { + "hook_log": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookLog" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.HookResponse": { + "type": "object", + "properties": { + "hook": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Hook" + } + } + }, + "github_com_softiron_manifold-api_cloud.HooksResponse": { + "type": "object", + "properties": { + "hook": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Hook" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.Host": { + "type": "object", + "properties": { + "cluster": { + "type": "string" + }, + "cluster_id": { + "type": "integer" + }, + "host_share": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostShare" + }, + "id": { + "type": "integer" + }, + "information_manager_mad": { + "type": "string" + }, + "instance_mad": { + "type": "string" + }, + "instances": { + "type": "array", + "items": { + "type": "integer" + } + }, + "monitoring": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostMonitoring" + }, + "name": { + "type": "string" + }, + "prev_state": { + "type": "integer" + }, + "state": { + "type": "integer" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + } + } + }, + "github_com_softiron_manifold-api_cloud.HostMonitoring": { + "type": "object", + "properties": { + "capacity": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Capacity" + }, + "id": { + "type": "integer" + }, + "system": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.System" + }, + "timestamp": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.HostMonitoringResponse": { + "type": "object", + "properties": { + "monitoring": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostMonitoring" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.HostResponse": { + "type": "object", + "properties": { + "host": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Host" + } + } + }, + "github_com_softiron_manifold-api_cloud.HostShare": { + "type": "object", + "properties": { + "cpuusage": { + "type": "integer" + }, + "datastores": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Datastores" + }, + "instances_thread": { + "type": "integer" + }, + "max_cpu": { + "type": "integer" + }, + "max_mem": { + "type": "integer" + }, + "mem_usage": { + "type": "integer" + }, + "numa_nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Node" + } + }, + "pcidevices": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.PCI" + } + }, + "running_instances": { + "type": "integer" + }, + "total_cpu": { + "type": "integer" + }, + "total_mem": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.HostsMonitoringResponse": { + "type": "object", + "properties": { + "monitoring": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostMonitoring" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.HostsResponse": { + "type": "object", + "properties": { + "hosts": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Host" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.HugePage": { + "type": "object", + "properties": { + "free": { + "type": "integer" + }, + "pages": { + "type": "integer" + }, + "size": { + "type": "integer" + }, + "usage": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.Image": { + "type": "object", + "properties": { + "app_clones": { + "type": "array", + "items": { + "type": "integer" + } + }, + "clones": { + "type": "array", + "items": { + "type": "integer" + } + }, + "cloning_id": { + "type": "integer" + }, + "cloning_ops": { + "type": "integer" + }, + "datastore": { + "type": "string" + }, + "datastore_id": { + "type": "integer" + }, + "disk_type": { + "type": "integer" + }, + "filesystem": { + "type": "string" + }, + "format": { + "type": "string" + }, + "group_id": { + "type": "integer" + }, + "group_name": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "instances": { + "type": "array", + "items": { + "type": "integer" + } + }, + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + }, + "persistent": { + "type": "integer" + }, + "prev_state": { + "type": "integer" + }, + "registration_time": { + "type": "string" + }, + "running_instances": { + "type": "integer" + }, + "size": { + "type": "integer" + }, + "snapshots": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Snapshots" + }, + "source": { + "type": "string" + }, + "state": { + "type": "integer" + }, + "target_snapshot": { + "type": "integer" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "type": { + "type": "integer" + }, + "user_id": { + "type": "integer" + }, + "user_name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.ImageResponse": { + "type": "object", + "properties": { + "image": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Image" + } + } + }, + "github_com_softiron_manifold-api_cloud.ImagesResponse": { + "type": "object", + "properties": { + "images": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Image" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.Instance": { + "type": "object", + "properties": { + "deploy_id": { + "type": "string" + }, + "end_time": { + "type": "string" + }, + "group_id": { + "type": "integer" + }, + "group_name": { + "type": "string" + }, + "history_records": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.History" + } + }, + "id": { + "type": "integer" + }, + "last_poll": { + "type": "string" + }, + "lcm_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LCMState" + }, + "monitoring": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Monitoring" + }, + "name": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + }, + "prev_lcm_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LCMState" + }, + "prev_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.State" + }, + "reschedule": { + "type": "boolean" + }, + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.DiskSnapshots" + } + }, + "start_time": { + "type": "string" + }, + "state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.State" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "user_id": { + "type": "integer" + }, + "user_name": { + "type": "string" + }, + "user_template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + } + } + }, + "github_com_softiron_manifold-api_cloud.InstanceGroup": { + "type": "object", + "properties": { + "gid": { + "type": "integer" + }, + "group_name": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + }, + "name": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.GroupRole" } - ], - "description": "Change a virtual router ownership", - "tags": [ - "preview" - ], - "summary": "change router ownership", - "parameters": [ - { - "type": "integer", - "description": "router id", - "name": "router", - "in": "path", - "required": true - }, - { - "description": "Router Ownership", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeRouterOwnershipRequest" - } + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "uid": { + "type": "integer" + }, + "user_name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.InstanceGroupResponse": { + "type": "object", + "properties": { + "instance_group": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceGroup" + } + } + }, + "github_com_softiron_manifold-api_cloud.InstanceGroupsResponse": { + "type": "object", + "properties": { + "instance_groups": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceGroup" } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeRouterOwnershipResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + } + } + }, + "github_com_softiron_manifold-api_cloud.InstanceMonitoringResponse": { + "type": "object", + "properties": { + "monitoring": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Monitoring" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.InstanceResponse": { + "type": "object", + "properties": { + "instance": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockedInstance" + } + } + }, + "github_com_softiron_manifold-api_cloud.InstanceTemplate": { + "type": "object", + "properties": { + "gid": { + "type": "integer" + }, + "gname": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + }, + "name": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + }, + "regtime": { + "type": "integer" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "uid": { + "type": "integer" + }, + "uname": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.InstancesAccountingResponse": { + "type": "object", + "properties": { + "accounting": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AcctHistory" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.InstancesMonitoringResponse": { + "type": "object", + "properties": { + "monitoring": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Monitoring" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.InstancesResponse": { + "type": "object", + "properties": { + "instances": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockedInstance" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.InstancesShowbackResponse": { + "type": "object", + "properties": { + "showback": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Showback" } } } }, - "/v3/cloud/router/{router}/permissions": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Change a virtual router permissions", - "tags": [ - "preview" - ], - "summary": "change router permissions", - "parameters": [ - { - "type": "integer", - "description": "router id", - "name": "router", - "in": "path", - "required": true - }, - { - "description": "Router Permissions", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeRouterPermissionsRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeRouterPermissionsResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.InstantiateNetworkTemplateRequest": { + "type": "object", + "properties": { + "extra": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.InstantiateNetworkTemplateResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.InstantiateRouterRequest": { + "type": "object", + "properties": { + "extra": { + "type": "string" + }, + "instance_template": { + "type": "integer" + }, + "instances": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "pending": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_cloud.InstantiateRouterResponse": { + "type": "object", + "properties": { + "router": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.InstantiateTemplateRequest": { + "type": "object", + "properties": { + "data": { + "type": "string" + }, + "disk_copy": { + "type": "boolean" + }, + "hold": { + "type": "boolean" + }, + "name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.InstantiateTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.LCMState": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61 + ], + "x-enum-comments": { + "BootFailureLCMState": "boot_failure", + "BootLCMState": "boot", + "BootMigrateFailureLCMState": "boot_migrate_failure", + "BootMigrateLCMState": "boot_migrate", + "BootPowerOffLCMState": "boot_poweroff", + "BootStoppedFailureLCMState": "boot_stopped_failure", + "BootStoppedLCMState": "boot_stopped", + "BootSuspendedLCMState": "boot_suspended", + "BootUndeployFailureLCMState": "boot_undeploy_failure", + "BootUndeployLCMState": "boot_undeploy", + "BootUnknownLCMState": "boot_unknown", + "CleanupDeleteLCMState": "cleanup_delete", + "CleanupResubmitLCMState": "cleanup_resubmit", + "DiskSnapshotDeleteLCMState": "disk_snapshot_delete", + "DiskSnapshotDeletePowerOffLCMState": "disk_snapshot_delete_poweroff", + "DiskSnapshotDeleteSuspendedLCMState": "disk_snapshot_delete_suspended", + "DiskSnapshotLCMState": "disk_snapshot", + "DiskSnapshotPowerOffLCMState": "disk_snapshot_poweroff", + "DiskSnapshotRevertPowerOffLCMState": "disk_snapshot_revert_poweroff", + "DiskSnapshotRevertSuspendedLCMState": "disk_snapshot_revert_suspended", + "DiskSnapshotSuspendLCMState": "disk_snapshot_suspend", + "EpilogFailureLCMState": "epilog_failure", + "EpilogLCMState": "epilog", + "EpilogStopFailureLCMState": "epilog_stop_failure", + "EpilogStopLCMState": "epilog_stop", + "EpilogUndeployFailureLCMState": "epilog_undeploy_failure", + "EpilogUndeployLCMState": "epilog_undeploy", + "HotplugEpilogPowerOffLCMState": "hotplug_epilog_poweroff", + "HotplugLCMState": "hotplug", + "HotplugNICLCMState": "hotplug_nic", + "HotplugPrologPowerOffLCMState": "hotplug_prolog_poweroff", + "HotplugSaveAsLCMState": "hotplug_saveas", + "HotplugSaveAsPowerOffLCMState": "hotplug_saveas_poweroff", + "HotplugSnapshotLCMState": "hotplug_snapshot", + "HotplutSaveAsSuspendedLCMState": "hotplug_saveas_suspended", + "InitLCMState": "init", + "MigrateLCMState": "migrate", + "PrologFailureLCMState": "prolog_failure", + "PrologLCMState": "prolog", + "PrologMigrageSuspendFailureLCMState": "prolog_migrate_suspend_failure", + "PrologMigrageSuspendLCMState": "prolog_migrate_suspend", + "PrologMigrateFailureLCMState": "prolog_migrate_failure", + "PrologMigrateLCMState": "prolog_migrate", + "PrologMigratePowerOffFailureLCMState": "prolog_migrate_poweroff_failure", + "PrologMigratePowerOffLCMState": "prolog_migrate_poweroff", + "PrologMigrateUnknownFailureLCMState": "prolog_migrate_unknown_failure", + "PrologMigrateUnknownLCMState": "prolog_migrate_unknown", + "PrologResumeFailureLCMState": "prolog_resume_failure", + "PrologResumeLCMState": "prolog_resume", + "PrologUndeployFailureLCMState": "prolog_undeploy_failure", + "PrologUndeployLCMState": "prolog_undeploy", + "RunningLCMState": "running", + "SaveMigrateLCMState": "save_migrate", + "SaveStopLCMState": "save_stop", + "SaveSuspendLCMState": "save_suspend", + "ShutdownLCMState": "shutdown", + "ShutdownPowerOffLCMState": "shutdown_poweroff", + "ShutdownUndeployLCMState": "shutdown_undeploy", + "UnknownLCMState": "unknown" + }, + "x-enum-varnames": [ + "InitLCMState", + "PrologLCMState", + "BootLCMState", + "RunningLCMState", + "MigrateLCMState", + "SaveStopLCMState", + "SaveSuspendLCMState", + "SaveMigrateLCMState", + "PrologMigrateLCMState", + "PrologResumeLCMState", + "EpilogStopLCMState", + "EpilogLCMState", + "ShutdownLCMState", + "_", + "_", + "CleanupResubmitLCMState", + "UnknownLCMState", + "HotplugLCMState", + "ShutdownPowerOffLCMState", + "BootUnknownLCMState", + "BootPowerOffLCMState", + "BootSuspendedLCMState", + "BootStoppedLCMState", + "CleanupDeleteLCMState", + "HotplugSnapshotLCMState", + "HotplugNICLCMState", + "HotplugSaveAsLCMState", + "HotplugSaveAsPowerOffLCMState", + "HotplutSaveAsSuspendedLCMState", + "ShutdownUndeployLCMState", + "EpilogUndeployLCMState", + "PrologUndeployLCMState", + "BootUndeployLCMState", + "HotplugPrologPowerOffLCMState", + "HotplugEpilogPowerOffLCMState", + "BootMigrateLCMState", + "BootFailureLCMState", + "BootMigrateFailureLCMState", + "PrologMigrateFailureLCMState", + "PrologFailureLCMState", + "EpilogFailureLCMState", + "EpilogStopFailureLCMState", + "EpilogUndeployFailureLCMState", + "PrologMigratePowerOffLCMState", + "PrologMigratePowerOffFailureLCMState", + "PrologMigrageSuspendLCMState", + "PrologMigrageSuspendFailureLCMState", + "BootUndeployFailureLCMState", + "BootStoppedFailureLCMState", + "PrologResumeFailureLCMState", + "PrologUndeployFailureLCMState", + "DiskSnapshotPowerOffLCMState", + "DiskSnapshotRevertPowerOffLCMState", + "DiskSnapshotDeletePowerOffLCMState", + "DiskSnapshotSuspendLCMState", + "DiskSnapshotRevertSuspendedLCMState", + "DiskSnapshotDeleteSuspendedLCMState", + "DiskSnapshotLCMState", + "_", + "DiskSnapshotDeleteLCMState", + "PrologMigrateUnknownLCMState", + "PrologMigrateUnknownFailureLCMState" + ] + }, + "github_com_softiron_manifold-api_cloud.Lock": { + "type": "object", + "properties": { + "locked": { + "type": "boolean" + }, + "owner": { + "type": "integer" + }, + "req_id": { + "type": "integer" + }, + "time": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.LockDocumentRequest": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "test": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_cloud.LockDocumentResponse": { + "type": "object", + "properties": { + "document": { + "type": "integer" + }, + "time": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.LockHookRequest": { + "type": "object", + "properties": { + "level": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockLevel" + }, + "test": { + "type": "boolean" } } }, - "/v3/cloud/router/{router}/unlock": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Unlock a virtual router.", - "tags": [ - "preview" - ], - "summary": "unlock router", - "parameters": [ - { - "type": "integer", - "description": "router id", - "name": "router", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockRouterResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockHookResponse": { + "type": "object", + "properties": { + "hook": { + "type": "integer" + }, + "time": { + "type": "string" } } }, - "/v3/cloud/security-group": { - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Create a new security group.", - "tags": [ - "preview" - ], - "summary": "create a new security group", - "parameters": [ - { - "description": "Security Group", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateSecurityGroupRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateSecurityGroupResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockImageRequest": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "test": { + "type": "boolean" } } }, - "/v3/cloud/security-group/": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "retrieves information for all or part of the security\ngroups in the pool.", - "tags": [ - "preview" - ], - "summary": "retrieves information for subset of security groups", - "parameters": [ - { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SecurityGroupsResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockImageResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" + }, + "time": { + "type": "string" } } }, - "/v3/cloud/security-group/{group}": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Retrieves information for the security group.", - "tags": [ - "preview" - ], - "summary": "retrieves information for the security group", - "parameters": [ - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, - { - "type": "integer", - "description": "Security group ID", - "name": "sg", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SecurityGroupResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } - } - }, - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Deletes the given security group from the pool.", - "tags": [ - "preview" - ], - "summary": "delete a security group", - "parameters": [ - { - "type": "integer", - "description": "Group ID", - "name": "sg", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockInstanceGroupRequest": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "test": { + "type": "boolean" } - }, - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Replaces the security group template contents.", - "tags": [ - "preview" - ], - "summary": "replaces the security group template contents", - "parameters": [ - { - "type": "integer", - "description": "sg id", - "name": "sg", - "in": "path", - "required": true - }, - { - "description": "Security Group", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateSecurityGroupRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateSecurityGroupResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.LockInstanceGroupResponse": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "time": { + "type": "string" } } }, - "/v3/cloud/security-group/{group}/chmod": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Changes the permission bits of a security group.", - "tags": [ - "preview" - ], - "summary": "changes the permission bits of a security group", - "parameters": [ - { - "type": "integer", - "description": "sg id", - "name": "sg", - "in": "path", - "required": true - }, - { - "description": "Permissions", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeSecurityGroupPermissionsRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeSecurityGroupPermissionsResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockInstanceRequest": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "test": { + "type": "boolean" } } }, - "/v3/cloud/security-group/{group}/chown": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Changes the ownership of a security group.", - "tags": [ - "preview" - ], - "summary": "changes the ownership of a security group", - "parameters": [ - { - "type": "integer", - "description": "sg id", - "name": "sg", - "in": "path", - "required": true - }, - { - "description": "New user and group", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeSecurityGroupOwnershipRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeSecurityGroupOwnershipResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockInstanceResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + }, + "time": { + "type": "string" } } }, - "/v3/cloud/security-group/{group}/clone": { - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Clones an existing security group.", - "tags": [ - "preview" - ], - "summary": "clones an existing security group", - "parameters": [ - { - "type": "integer", - "description": "Group ID", - "name": "sg", - "in": "path", - "required": true - }, - { - "description": "Cloned group", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneSecurityGroupRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneSecurityGroupResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockLevel": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3, + 4 + ], + "x-enum-comments": { + "AdminLockLevel": "admin", + "AllLockLevel": "all", + "ManageLockLevel": "manage", + "UseLockLevel": "use" + }, + "x-enum-varnames": [ + "_", + "UseLockLevel", + "ManageLockLevel", + "AdminLockLevel", + "AllLockLevel" + ] + }, + "github_com_softiron_manifold-api_cloud.LockMarketAppRequest": { + "type": "object", + "properties": { + "level": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockLevel" + }, + "test": { + "type": "boolean" } } }, - "/v3/cloud/security-group/{group}/commit": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Commit security group changes to associated VMs. This is\nintended for retrying updates of VMs or reinitialize the updating process if\none stopped or failed after a one.secgroup.update call.", - "tags": [ - "preview" - ], - "summary": "Commit security group changes to associated VMs", - "parameters": [ - { - "type": "integer", - "description": "sg id", - "name": "sg", - "in": "path", - "required": true - }, - { - "description": "Security group ID", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CommitSecurityGroupRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CommitSecurityGroupResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockMarketAppResponse": { + "type": "object", + "properties": { + "market_app": { + "type": "integer" } } }, - "/v3/cloud/security-group/{group}/rename": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Renames a security group.", - "tags": [ - "preview" - ], - "summary": "renames a security group", - "parameters": [ - { - "type": "integer", - "description": "sg id", - "name": "sg", - "in": "path", - "required": true - }, - { - "description": "Security Group name", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameSecurityGroupRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameSecurityGroupResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockNetworkRequest": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "test": { + "type": "boolean" } } }, - "/v3/cloud/system/config": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Return the system configuration.", - "tags": [ - "preview" - ], - "summary": "returns the system configuration", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SystemConfigResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockNetworkResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" + }, + "time": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.LockNetworkTemplateRequest": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "test": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_cloud.LockNetworkTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + }, + "time": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.LockRouterRequest": { + "type": "object", + "properties": { + "level": { + "type": "string" + }, + "test": { + "type": "boolean" } } }, - "/v3/cloud/system/version": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Return the system core version.", - "tags": [ - "preview" - ], - "summary": "returns the core version", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SystemVersionResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockRouterResponse": { + "type": "object", + "properties": { + "router": { + "type": "integer" + }, + "time": { + "type": "string" } } }, - "/v3/cloud/template": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Retrieves information for all or part of the Resources in the pool.", - "tags": [ - "preview" - ], - "summary": "list templates", - "parameters": [ - { - "type": "string", - "description": "Filter", - "name": "filter", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.TemplatesResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.LockTemplateRequest": { + "type": "object", + "properties": { + "level": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockLevel" + }, + "test": { + "type": "boolean" } - }, - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Allocates a new template.", - "tags": [ - "preview" - ], - "summary": "post template", - "parameters": [ - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateTemplateRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateTemplateResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.LockTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" } } }, - "/v3/cloud/template/{template}": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Retrieves information for the template.", - "tags": [ - "preview" - ], - "summary": "list a template", - "parameters": [ - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, - { - "type": "integer", - "description": "ID", - "name": "template", - "in": "path", - "required": true + "github_com_softiron_manifold-api_cloud.LockedInstance": { + "type": "object", + "properties": { + "deploy_id": { + "type": "string" + }, + "end_time": { + "type": "string" + }, + "group_id": { + "type": "integer" + }, + "group_name": { + "type": "string" + }, + "history_records": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.History" } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.TemplateResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + }, + "id": { + "type": "integer" + }, + "last_poll": { + "type": "string" + }, + "lcm_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LCMState" + }, + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + }, + "monitoring": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Monitoring" + }, + "name": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + }, + "prev_lcm_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LCMState" + }, + "prev_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.State" + }, + "reschedule": { + "type": "boolean" + }, + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.DiskSnapshots" } + }, + "start_time": { + "type": "string" + }, + "state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.State" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "user_id": { + "type": "integer" + }, + "user_name": { + "type": "string" + }, + "user_template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" } - }, - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Deletes the given template from the pool.", - "tags": [ - "preview" - ], - "summary": "delete template", - "parameters": [ - { - "type": "boolean", - "description": "Delete disk", - "name": "disk", - "in": "query" - }, - { - "type": "string", - "description": "Template ID", - "name": "template", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DeleteTemplateResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.MarketAppResponse": { + "type": "object", + "properties": { + "application": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketplaceApp" } - }, - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Replaces the template contents.", - "tags": [ - "preview" - ], - "summary": "update template", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateTemplateRequest" - } + } + }, + "github_com_softiron_manifold-api_cloud.MarketAppsResponse": { + "type": "object", + "properties": { + "applications": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketplaceApp" } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateTemplateResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + } + } + }, + "github_com_softiron_manifold-api_cloud.MarketResponse": { + "type": "object", + "properties": { + "market": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Marketplace" + } + } + }, + "github_com_softiron_manifold-api_cloud.Marketplace": { + "type": "object", + "properties": { + "free_mb": { + "type": "integer" + }, + "gid": { + "type": "integer" + }, + "group_name": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "market_mad": { + "type": "string" + }, + "marketplace_apps": { + "type": "array", + "items": { + "type": "integer" } + }, + "name": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + }, + "state": { + "type": "integer" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "total_mb": { + "type": "integer" + }, + "uid": { + "type": "integer" + }, + "used_mb": { + "type": "integer" + }, + "user_name": { + "type": "string" + }, + "zone_id": { + "type": "string" } } }, - "/v3/cloud/template/{template}/clone": { - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Clones an existing virtual machine template.", - "tags": [ - "preview" - ], - "summary": "clone template", - "parameters": [ - { - "type": "string", - "description": "Template ID", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneTemplateRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CloneTemplateResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.MarketplaceApp": { + "type": "object", + "properties": { + "apptemplate64": { + "type": "string" + }, + "description": { + "type": "string" + }, + "format": { + "type": "string" + }, + "gid": { + "type": "integer" + }, + "group_name": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + }, + "marketplace": { + "type": "string" + }, + "marketplace_id": { + "type": "integer" + }, + "md5": { + "type": "string" + }, + "name": { + "type": "string" + }, + "origin_id": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + }, + "regtime": { + "type": "integer" + }, + "size": { + "type": "integer" + }, + "source": { + "type": "string" + }, + "state": { + "type": "integer" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "type": { + "type": "integer" + }, + "uid": { + "type": "integer" + }, + "user_name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "zone_id": { + "type": "string" } } }, - "/v3/cloud/template/{template}/instantiate": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Instantiates a new virtual machine from a template.", - "tags": [ - "preview" - ], - "summary": "instantiate template", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateTemplateRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstantiateTemplateResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + "github_com_softiron_manifold-api_cloud.MarketsResponse": { + "type": "object", + "properties": { + "market": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Marketplace" } } } }, - "/v3/cloud/template/{template}/lock": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Locks a Template.", - "tags": [ - "preview" - ], - "summary": "lock a template", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Templates", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockTemplateRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockTemplateResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.Memory": { + "type": "object", + "properties": { + "distance": { + "type": "string" + }, + "free": { + "type": "integer" + }, + "total": { + "type": "integer" + }, + "usage": { + "type": "integer" + }, + "used": { + "type": "integer" } } }, - "/v3/cloud/template/{template}/name": { - "patch": { - "security": [ - { - "Token": [] + "github_com_softiron_manifold-api_cloud.MoveInstanceRequest": { + "type": "object", + "properties": { + "enforce_capacity": { + "description": "TODO: probably should reverse this logic", + "type": "boolean" + }, + "host": { + "type": "integer" + }, + "live_migrate": { + "type": "boolean" + }, + "migration_type": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.MoveInstanceResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.Network": { + "type": "object", + "properties": { + "arpool": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_network.AddressRange" } - ], - "description": "Renames a template.", - "tags": [ - "preview" - ], - "summary": "rename template", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameTemplateRequest" - } + }, + "bridge": { + "type": "string" + }, + "bridge_type": { + "type": "string" + }, + "clusters": { + "type": "array", + "items": { + "type": "integer" } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameTemplateResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + }, + "gid": { + "type": "integer" + }, + "group_name": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + }, + "name": { + "type": "string" + }, + "outer_vlanid": { + "type": "string" + }, + "outer_vlanidautomatic": { + "type": "string" + }, + "parent_network_id": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + }, + "phydev": { + "type": "string" + }, + "prev_state": { + "type": "integer" + }, + "state": { + "type": "integer" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "uid": { + "type": "integer" + }, + "used_leases": { + "type": "integer" + }, + "user_name": { + "type": "string" + }, + "vlanid": { + "type": "string" + }, + "vlanidautomatic": { + "type": "string" + }, + "vnmad": { + "type": "string" + }, + "vrouters": { + "type": "array", + "items": { + "type": "integer" } } } }, - "/v3/cloud/template/{template}/ownership": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Changes the ownership of a template.", - "tags": [ - "preview" - ], - "summary": "change template ownership", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeTemplateOwnershipRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeTemplateOwnershipResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.NetworkResponse": { + "type": "object", + "properties": { + "network": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Network" } } }, - "/v3/cloud/template/{template}/permissions": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Changes the permission bits of a template.", - "tags": [ - "preview" - ], - "summary": "change template permissions", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - }, - { - "description": "Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeTemplatePermissionsRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeTemplatePermissionsResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.NetworkTemplateResponse": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" } } }, - "/v3/cloud/template/{template}/unlock": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Unlocks a Template.", - "tags": [ - "preview" - ], - "summary": "unlock a template", - "parameters": [ - { - "type": "integer", - "description": "template id", - "name": "template", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UnlockTemplateResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + "github_com_softiron_manifold-api_cloud.NetworksResponse": { + "type": "object", + "properties": { + "networks": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Network" } } } }, - "/v3/cloud/user": { - "get": { - "security": [ - { - "Token": [] + "github_com_softiron_manifold-api_cloud.Node": { + "type": "object", + "properties": { + "core": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Core" } - ], - "description": "Retrieves information for the user.", - "tags": [ - "preview" - ], - "summary": "retrieves information for the user", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UsersResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } + }, + "hugepage": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HugePage" } + }, + "memory": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Memory" + }, + "node_id": { + "type": "integer" } - }, - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Create new user account.", - "tags": [ - "preview" - ], - "summary": "create new user", - "parameters": [ - { - "description": "User", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateUserRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateUserResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.PCI": { + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "bus": { + "type": "string" + }, + "class": { + "type": "string" + }, + "class_name": { + "type": "string" + }, + "device": { + "type": "string" + }, + "device_name": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "function": { + "type": "string" + }, + "instance_id": { + "type": "integer" + }, + "numa_node": { + "type": "string" + }, + "short_address": { + "type": "string" + }, + "slot": { + "type": "string" + }, + "type": { + "type": "string" + }, + "vendor": { + "type": "string" + }, + "vendor_name": { + "type": "string" } } }, - "/v3/cloud/user/login": { - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Generate or set user login token.", - "tags": [ - "preview" - ], - "summary": "set user login token", - "parameters": [ - { - "description": "User login", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserLoginRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserLoginResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.Period": { + "type": "object", + "properties": { + "end": { + "type": "integer" + }, + "start": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.Permissions": { + "type": "object", + "properties": { + "group": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.perms" + }, + "other": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.perms" + }, + "owner": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.perms" + } + } + }, + "github_com_softiron_manifold-api_cloud.RaftStatus": { + "type": "object", + "properties": { + "commit": { + "type": "integer" + }, + "fed_log_index": { + "type": "integer" + }, + "log_index": { + "type": "integer" + }, + "log_term": { + "type": "integer" + }, + "server_id": { + "type": "integer" + }, + "state": { + "type": "integer" + }, + "term": { + "type": "integer" + }, + "voted_for": { + "type": "integer" } } }, - "/v3/cloud/user/quota": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Returns the default user quota limits.", - "tags": [ - "preview" - ], - "summary": "returns the default user quota limits", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserQuotaResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RecoverInstanceRequest": { + "type": "object", + "properties": { + "operation": { + "type": "string" } - }, - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Updates the default user quota limits.", - "tags": [ - "preview" - ], - "summary": "updates the default user quota limits", - "parameters": [ - { - "description": "Default user quota", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDefaultUserQuotaRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateDefaultUserQuotaResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.RecoverInstanceResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" } } }, - "/v3/cloud/user/{user}": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Retrieves information for the user.", - "tags": [ - "preview" - ], - "summary": "retrieves information for the user", - "parameters": [ - { - "type": "integer", - "description": "User ID", - "name": "user", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RecoverNetworkRequest": { + "type": "object", + "properties": { + "recovery": { + "type": "string" } - }, - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Deletes an user.", - "tags": [ - "preview" - ], - "summary": "delete user", - "parameters": [ - { - "type": "integer", - "description": "Group ID", - "name": "user", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "error", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "error", - "schema": { - "type": "string" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.RecoverNetworkResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" } - }, - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Update user data.", - "tags": [ - "preview" - ], - "summary": "update user", - "parameters": [ - { - "type": "integer", - "description": "user id", - "name": "user", - "in": "path", - "required": true - }, - { - "description": "User", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateUserRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateUserResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.ReleaseNetworkRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" } } }, - "/v3/cloud/user/{user}/auth": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Changes the authentication driver and the password for the given user.", - "tags": [ - "preview" - ], - "summary": "change authentication driver and password", - "parameters": [ - { - "type": "integer", - "description": "user id", - "name": "user", - "in": "path", - "required": true - }, - { - "description": "authentication driver", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeUserAuthRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeUserAuthResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.ReleaseNetworkResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" } } }, - "/v3/cloud/user/{user}/enable": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Enables or disables an user.", - "tags": [ - "preview" - ], - "summary": "enables or disables an user", - "parameters": [ - { - "type": "integer", - "description": "user id", - "name": "user", - "in": "path", - "required": true - }, - { - "description": "Enable", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableUserRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableUserResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameDocumentRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } } }, - "/v3/cloud/user/{user}/group/{group}": { - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Adds the User to a secondary group..", - "tags": [ - "preview" - ], - "summary": "adds the User to a secondary group.", - "parameters": [ - { - "type": "integer", - "description": "User ID", - "name": "user", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Group ID", - "name": "group", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AddUserGroupResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameDocumentResponse": { + "type": "object", + "properties": { + "document": { + "type": "integer" } - }, - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Removes user from a secondary group.", - "tags": [ - "preview" - ], - "summary": "remove user from group", - "parameters": [ - { - "type": "integer", - "description": "User ID", - "name": "user", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "Group ID", - "name": "group", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "error", - "schema": { - "type": "string" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "error", - "schema": { - "type": "string" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.RenameHookRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } - }, - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Changes the group of the given user.", - "tags": [ - "preview" - ], - "summary": "changes the group of the given user", - "parameters": [ - { - "type": "integer", - "description": "user id", - "name": "user", - "in": "path", - "required": true - }, - { - "type": "integer", - "description": "group id", - "name": "group", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeUserGroupResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.RenameHookResponse": { + "type": "object", + "properties": { + "hook": { + "type": "integer" } } }, - "/v3/cloud/user/{user}/password": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Set new user password.", - "tags": [ - "preview" - ], - "summary": "set user password", - "parameters": [ - { - "type": "integer", - "description": "user id", - "name": "user", - "in": "path", - "required": true - }, - { - "description": "User password", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeUserPasswordRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ChangeUserPasswordResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameImageRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } } }, - "/v3/cloud/user/{user}/quota": { - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Sets the user quota limits.", - "tags": [ - "preview" - ], - "summary": "sets the user quota limits", - "parameters": [ - { - "type": "integer", - "description": "user id", - "name": "user", - "in": "path", - "required": true - }, - { - "description": "user quota", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetUserQuotaRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SetUserQuotaResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameImageResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" } } }, - "/v3/cloud/zone": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "List all zones.", - "tags": [ - "preview" - ], - "summary": "get zones", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ZonesResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameInstanceDiskSnapshotRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } - }, - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Create a zone.", - "tags": [ - "preview" - ], - "summary": "post zone", - "parameters": [ - { - "description": "Zone Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateZoneRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.CreateZoneResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.RenameInstanceDiskSnapshotResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.RenameInstanceGroupRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } } }, - "/v3/cloud/zone/raft": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Get zone raft status.", - "tags": [ - "preview" - ], - "summary": "get zone raft status", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ZonesRaftStatusResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameInstanceGroupResponse": { + "type": "object", + "properties": { + "group": { + "type": "integer" } } }, - "/v3/cloud/zone/{zone}": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Get a zone.", - "tags": [ - "preview" - ], - "summary": "get zone", - "parameters": [ - { - "type": "boolean", - "description": "Decrypt secrets", - "name": "decrypt", - "in": "query" - }, - { - "type": "integer", - "description": "Zone ID", - "name": "zone", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ZoneResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameInstanceRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } - }, - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Delete a zone.", - "tags": [ - "preview" - ], - "summary": "delete zone", - "parameters": [ - { - "type": "string", - "description": "Zone ID", - "name": "zone", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.RenameInstanceResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" } - }, - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Update a zone.", - "tags": [ - "preview" - ], - "summary": "update zone", - "parameters": [ - { - "type": "integer", - "description": "zone id", - "name": "zone", - "in": "path", - "required": true - }, - { - "description": "Zone Template", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateZoneRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UpdateZoneResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + } + }, + "github_com_softiron_manifold-api_cloud.RenameMarketAppRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } } }, - "/v3/cloud/zone/{zone}/enable": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Enable a zone.", - "tags": [ - "preview" - ], - "summary": "enable zone", - "parameters": [ - { - "type": "integer", - "description": "zone id", - "name": "zone", - "in": "path", - "required": true - }, - { - "description": "Zone Enable", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableZoneRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.EnableZoneResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameMarketAppResponse": { + "type": "object", + "properties": { + "market_app": { + "type": "integer" } } }, - "/v3/cloud/zone/{zone}/name": { - "patch": { - "security": [ - { - "Token": [] - } - ], - "description": "Rename a zone.", - "tags": [ - "preview" - ], - "summary": "rename zone", - "parameters": [ - { - "type": "integer", - "description": "zone id", - "name": "zone", - "in": "path", - "required": true - }, - { - "description": "Zone Name", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameZoneRequest" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RenameZoneResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameMarketRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } } }, - "/v3/metal/datastore": { - "post": { - "security": [ - { - "Token": [] - } - ], - "description": "Creates a storage pool and associates it with a datastore.", - "tags": [ - "preview" - ], - "summary": "Create a datastore", - "parameters": [ - { - "description": "Datastore definition", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_metal.CreateDatastoreRequest" - } - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "409": { - "description": "Conflict", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "501": { - "description": "Not Implemented", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameMarketResponse": { + "type": "object", + "properties": { + "market": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.RenameNetworkRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.RenameNetworkResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" } } }, - "/v3/metal/datastore/{name}": { - "delete": { - "security": [ - { - "Token": [] - } - ], - "description": "Delete a datastore and underlying pool.", - "tags": [ - "preview" - ], - "summary": "delete datastore", - "parameters": [ - { - "type": "string", - "description": "Datastore Name", - "name": "name", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK" - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "501": { - "description": "Not Implemented", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameNetworkTemplateRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } } }, - "/v3/metal/host": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Get a list of all bare-metal hosts.", - "tags": [ - "preview" - ], - "summary": "get hosts", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HostsResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameNetworkTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" } } }, - "/v3/metal/host/{id}/": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Returns the details of the host with the given hostname.", - "tags": [ - "preview" - ], - "summary": "Get a single host", - "parameters": [ - { - "type": "string", - "description": "hostname", - "name": "id", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HostResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameRouterRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } } }, - "/v3/snapper/snapshots/archive": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Returns a list of all archive snapshots.", - "tags": [ - "preview" - ], - "summary": "get archive snapshots", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_snapshot.ListArchiveResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameRouterResponse": { + "type": "object", + "properties": { + "router": { + "type": "integer" } } }, - "/v3/snapper/snapshots/manual": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Returns a list of all manual snapshots.", - "tags": [ - "preview" - ], - "summary": "get manual snapshots", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_snapshot.ListManualResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameSecurityGroupRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } } }, - "/v3/snapper/snapshots/remote": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Returns a list of all remote snapshots.", - "tags": [ - "preview" - ], - "summary": "get remote snapshots", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_snapshot.ListRemoteResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameSecurityGroupResponse": { + "type": "object", + "properties": { + "security_group": { + "type": "integer" } } }, - "/v3/snapper/stack": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Returns the runtime stack of all goroutines in the snapper service.", - "tags": [ - "preview" - ], - "summary": "get snapper stack", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_snapshot.ListStackResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameTemplateRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" } } }, - "/v3/snapper/status": { - "get": { - "security": [ - { - "Token": [] - } - ], - "description": "Returns the status of the snapper service.", - "tags": [ - "preview" - ], - "summary": "get snapper status", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_softiron_manifold-api_snapshot.ListStatusResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "423": { - "description": "Locked", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/sifi.ResponseError" - } - } + "github_com_softiron_manifold-api_cloud.RenameTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.RenameZoneRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.RenameZoneResponse": { + "type": "object", + "properties": { + "zone": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ReserveNetworkRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" } } - } - }, - "definitions": { - "auth.LoginResponse": { + }, + "github_com_softiron_manifold-api_cloud.ReserveNetworkResponse": { "type": "object", "properties": { - "token": { + "network": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ResizeInstanceDiskRequest": { + "type": "object", + "properties": { + "size": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ResizeInstanceDiskResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.ResizeInstanceRequest": { + "type": "object", + "properties": { + "enforce_capacity": { + "description": "TODO: probably should reverse this logic", + "type": "boolean" + }, + "template": { "type": "string" } } }, - "cloud.DocumentTemplate": { + "github_com_softiron_manifold-api_cloud.ResizeInstanceResponse": { "type": "object", "properties": { - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "instance": { + "type": "integer" } } }, - "cloud.InstanceGroupTemplate": { + "github_com_softiron_manifold-api_cloud.RetryHookRequest": { "type": "object", "properties": { - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "execution": { + "type": "integer" } } }, - "cloud.MarketplaceAppTemplate": { + "github_com_softiron_manifold-api_cloud.RetryHookResponse": { "type": "object", "properties": { - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "hook": { + "type": "integer" } } }, - "cloud.RouterTemplate": { + "github_com_softiron_manifold-api_cloud.RevertImageSnapshotResponse": { "type": "object", "properties": { - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "image": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ACL": { + "github_com_softiron_manifold-api_cloud.RevertInstanceDiskSnapshotResponse": { "type": "object", "properties": { - "id": { + "snapshot": { "type": "integer" - }, - "resource": { - "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (VM, Host...) | resource ID |\n +-----------------------+-----------------------+", + } + } + }, + "github_com_softiron_manifold-api_cloud.RevertInstanceSnapshotResponse": { + "type": "object", + "properties": { + "instance": { "type": "integer" - }, - "rights": { - "description": "64 bits\n +-----------------------------------------------+\n | Actions (MANAGE, CREATE, USE... |\n +-----------------------------------------------+", + } + } + }, + "github_com_softiron_manifold-api_cloud.Router": { + "type": "object", + "properties": { + "gid": { "type": "integer" }, - "string": { + "group_name": { "type": "string" }, - "user": { - "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (user,group,all) | user/group ID |\n +-----------------------+-----------------------+", + "id": { "type": "integer" }, - "zone": { - "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (individual,all) | zone ID |\n +-----------------------+-----------------------+", + "instances": { + "type": "array", + "items": { + "type": "integer" + } + }, + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + }, + "name": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "uid": { "type": "integer" + }, + "user_name": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ACLsResponse": { + "github_com_softiron_manifold-api_cloud.RouterResponse": { "type": "object", "properties": { - "acls": { + "router": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Router" + } + } + }, + "github_com_softiron_manifold-api_cloud.RoutersResponse": { + "type": "object", + "properties": { + "routers": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.ACL" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Router" } } } }, - "github_com_softiron_manifold-api_cloud.AcctHistory": { + "github_com_softiron_manifold-api_cloud.SecurityGroup": { "type": "object", "properties": { - "action": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Action" + "error_instances": { + "type": "array", + "items": { + "type": "integer" + } }, - "cluster_id": { + "group_id": { "type": "integer" }, - "datastore_id": { + "group_name": { + "type": "string" + }, + "id": { "type": "integer" }, - "end_time": { + "name": { "type": "string" }, - "epilog_end_time": { - "type": "string" + "outdated_instances": { + "type": "array", + "items": { + "type": "integer" + } }, - "epilog_start_time": { - "type": "string" + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" }, - "group_id": { + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + }, + "updated_instances": { + "type": "array", + "items": { + "type": "integer" + } + }, + "updating_instances": { + "type": "array", + "items": { + "type": "integer" + } + }, + "user_id": { "type": "integer" }, - "host_id": { + "user_name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.SecurityGroupResponse": { + "type": "object", + "properties": { + "security_group": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SecurityGroup" + } + } + }, + "github_com_softiron_manifold-api_cloud.SecurityGroupsResponse": { + "type": "object", + "properties": { + "security_group": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SecurityGroup" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.Server": { + "type": "object", + "properties": { + "commit": { "type": "integer" }, - "hostname": { + "endpoint": { "type": "string" }, + "fed_log_index": { + "type": "integer" + }, "id": { "type": "integer" }, - "instance": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Instance" + "log_index": { + "type": "integer" }, - "instance_mad": { + "name": { "type": "string" }, - "prolog_end_time": { - "type": "string" + "state": { + "type": "integer" }, - "prolog_start_time": { + "term": { + "type": "integer" + }, + "voted_for": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.SetGroupQuotaRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.SetGroupQuotaResponse": { + "type": "object", + "properties": { + "group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.SetImagePersistentRequest": { + "type": "object", + "properties": { + "persistent": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_cloud.SetImagePersistentResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.SetInstanceActionRequest": { + "type": "object", + "properties": { + "action": { + "description": "Action to perform", + "type": "string", + "enum": [ + "hold", + "poweroff", + "poweroff-hard", + "reboot", + "reboot-hard", + "release", + "resched", + "resume", + "stop", + "suspend", + "terminate", + "terminate-hard", + "undeploy", + "undeploy-hard" + ] + } + } + }, + "github_com_softiron_manifold-api_cloud.SetInstanceActionResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.SetUserQuotaRequest": { + "type": "object", + "properties": { + "template": { "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.SetUserQuotaResponse": { + "type": "object", + "properties": { + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.Showback": { + "type": "object", + "properties": { + "cpucost": { + "type": "number" }, - "request_id": { + "disk_cost": { + "type": "number" + }, + "gid": { "type": "integer" }, - "running_end_time": { + "group_name": { "type": "string" }, - "running_start_time": { - "type": "string" + "hours": { + "type": "number" }, - "sequence_number": { + "instance": { "type": "integer" }, - "start_time": { + "instance_name": { "type": "string" }, - "transfer_manager_mad": { + "memory_cost": { + "type": "number" + }, + "month": { + "type": "integer" + }, + "rhours": { + "type": "number" + }, + "total_cost": { + "type": "number" + }, + "uid": { + "type": "integer" + }, + "user_name": { "type": "string" }, - "user_id": { + "year": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.System": { + "type": "object", + "properties": { + "netrx": { + "type": "integer" + }, + "nettx": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.SystemConfigResponse": { + "type": "object", + "properties": { + "config": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Configuration" + } + } + }, + "github_com_softiron_manifold-api_cloud.SystemVersionResponse": { + "type": "object", + "properties": { + "version": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.Template": { + "type": "object", + "additionalProperties": {} + }, + "github_com_softiron_manifold-api_cloud.TemplateResponse": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceTemplate" + } + } + }, + "github_com_softiron_manifold-api_cloud.TemplatesResponse": { + "type": "object", + "properties": { + "template": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceTemplate" + } + } + } + }, + "github_com_softiron_manifold-api_cloud.UnlockDocumentResponse": { + "type": "object", + "properties": { + "document": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.UnlockHookRequest": { + "type": "object", + "properties": { + "lock": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.UnlockHookResponse": { + "type": "object", + "properties": { + "hook": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.UnlockImageResponse": { + "type": "object", + "properties": { + "image": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.UnlockInstanceGroupResponse": { + "type": "object", + "properties": { + "group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.UnlockInstanceResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.UnlockMarketAppResponse": { + "type": "object", + "properties": { + "market_app": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.UnlockNetworkResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.UnlockNetworkTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.UnlockRouterResponse": { + "type": "object", + "properties": { + "router": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud.UnlockTemplateResponse": { + "type": "object", + "properties": { + "template": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.AddClusterDatastoreResponse": { + "github_com_softiron_manifold-api_cloud.UpdateDefaultUserQuotaRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud.UpdateDefaultUserQuotaResponse": { + "type": "object", + "properties": { + "quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" + } + } + }, + "github_com_softiron_manifold-api_cloud.UpdateDocumentRequest": { "type": "object", "properties": { - "datastore": { - "type": "integer" + "merge": { + "type": "boolean" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.AddClusterHostResponse": { + "github_com_softiron_manifold-api_cloud.UpdateDocumentResponse": { "type": "object", "properties": { - "host": { + "document": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.AddClusterNetworkResponse": { + "github_com_softiron_manifold-api_cloud.UpdateGroupQuotaRequest": { "type": "object", "properties": { - "vnet": { - "type": "integer" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.AddDataCenterClusterResponse": { + "github_com_softiron_manifold-api_cloud.UpdateGroupQuotaResponse": { "type": "object", "properties": { - "datacenter": { - "type": "integer" + "quotas": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" } } }, - "github_com_softiron_manifold-api_cloud.AddDataCenterDatastoreResponse": { + "github_com_softiron_manifold-api_cloud.UpdateGroupRequest": { "type": "object", "properties": { - "datacenter": { - "type": "integer" + "merge": { + "type": "boolean" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.AddDataCenterGroupResponse": { + "github_com_softiron_manifold-api_cloud.UpdateGroupResponse": { "type": "object", "properties": { - "datacenter": { + "group": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.AddDataCenterHostResponse": { + "github_com_softiron_manifold-api_cloud.UpdateHookRequest": { "type": "object", "properties": { - "datacenter": { - "type": "integer" + "merge": { + "type": "boolean" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.AddDataCenterNetworkResponse": { + "github_com_softiron_manifold-api_cloud.UpdateHookResponse": { "type": "object", "properties": { - "datacenter": { + "hook": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.AddGroupAdminRequest": { + "github_com_softiron_manifold-api_cloud.UpdateImageRequest": { "type": "object", "properties": { - "user": { - "type": "integer" + "merge": { + "type": "boolean" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.AddGroupAdminResponse": { + "github_com_softiron_manifold-api_cloud.UpdateImageResponse": { "type": "object", "properties": { - "group": { + "image": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.AddInstanceScheduleRequest": { + "github_com_softiron_manifold-api_cloud.UpdateInstanceConfigRequest": { "type": "object", "properties": { + "merge": { + "type": "boolean" + }, "template": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.AddInstanceScheduleResponse": { + "github_com_softiron_manifold-api_cloud.UpdateInstanceConfigResponse": { "type": "object", "properties": { "instance": { @@ -41523,1491 +40505,2231 @@ } } }, - "github_com_softiron_manifold-api_cloud.AddInstanceSecurityGroupResponse": { + "github_com_softiron_manifold-api_cloud.UpdateInstanceGroupRequest": { "type": "object", "properties": { - "instance": { - "type": "integer" + "merge": { + "type": "boolean" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.AddNetworkAddressRangeRequest": { + "github_com_softiron_manifold-api_cloud.UpdateInstanceGroupResponse": { "type": "object", "properties": { - "template": { - "type": "string" + "group": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.AddNetworkAddressRangeResponse": { + "github_com_softiron_manifold-api_cloud.UpdateInstanceScheduleRequest": { "type": "object", "properties": { - "network": { + "action": { "type": "integer" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.AddUserGroupResponse": { + "github_com_softiron_manifold-api_cloud.UpdateInstanceScheduleResponse": { "type": "object", "properties": { - "user": { + "instance": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.AllocateDocumentRequest": { + "github_com_softiron_manifold-api_cloud.UpdateInstanceTemplateRequest": { "type": "object", "properties": { + "merge": { + "type": "boolean" + }, "template": { "type": "string" - }, - "type": { - "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.AllocateDocumentResponse": { + "github_com_softiron_manifold-api_cloud.UpdateInstanceTemplateResponse": { "type": "object", "properties": { - "document": { + "instance": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CalculateInstancesShowbackRequest": { + "github_com_softiron_manifold-api_cloud.UpdateMarketAppRequest": { "type": "object", "properties": { - "month": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Period" + "merge": { + "type": "boolean" }, - "year": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Period" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.Capacity": { + "github_com_softiron_manifold-api_cloud.UpdateMarketAppResponse": { "type": "object", "properties": { - "free_cpu": { - "type": "integer" - }, - "free_memory": { - "type": "integer" - }, - "used_cpu": { - "type": "integer" - }, - "used_memory": { + "market_app": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeDatastoreOwnershipRequest": { + "github_com_softiron_manifold-api_cloud.UpdateMarketRequest": { "type": "object", "properties": { - "group": { - "type": "integer" + "merge": { + "type": "boolean" }, - "user": { - "type": "integer" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeDatastoreOwnershipResponse": { + "github_com_softiron_manifold-api_cloud.UpdateMarketResponse": { "type": "object", "properties": { - "datastore": { + "market": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeDatastorePermissionsRequest": { + "github_com_softiron_manifold-api_cloud.UpdateNetworkAddressRangeRequest": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeDatastorePermissionsResponse": { + "github_com_softiron_manifold-api_cloud.UpdateNetworkAddressRangeResponse": { "type": "object", "properties": { - "datastore": { + "network": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeDocumentOwnershipRequest": { + "github_com_softiron_manifold-api_cloud.UpdateNetworkRequest": { "type": "object", "properties": { - "group": { - "type": "integer" + "merge": { + "type": "boolean" }, - "user": { - "type": "integer" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeDocumentOwnershipResponse": { + "github_com_softiron_manifold-api_cloud.UpdateNetworkResponse": { "type": "object", "properties": { - "document": { + "network": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeDocumentPermissionsRequest": { + "github_com_softiron_manifold-api_cloud.UpdateNetworkTemplateRequest": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "merge": { + "type": "boolean" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeDocumentPermissionsResponse": { + "github_com_softiron_manifold-api_cloud.UpdateNetworkTemplateResponse": { "type": "object", "properties": { - "document": { + "template": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeImageOwnershipRequest": { + "github_com_softiron_manifold-api_cloud.UpdateRouterRequest": { "type": "object", "properties": { - "group": { - "type": "integer" + "merge": { + "type": "boolean" }, - "user": { - "type": "integer" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeImageOwnershipResponse": { + "github_com_softiron_manifold-api_cloud.UpdateRouterResponse": { "type": "object", "properties": { - "image": { + "router": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeImagePermissionsRequest": { + "github_com_softiron_manifold-api_cloud.UpdateSecurityGroupRequest": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "merge": { + "type": "boolean" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeImagePermissionsResponse": { + "github_com_softiron_manifold-api_cloud.UpdateSecurityGroupResponse": { "type": "object", "properties": { - "image": { + "security_group": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeImageTypeRequest": { + "github_com_softiron_manifold-api_cloud.UpdateTemplateRequest": { "type": "object", "properties": { - "type": { + "data": { "type": "string" + }, + "merge": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.ChangeImageTypeResponse": { + "github_com_softiron_manifold-api_cloud.UpdateTemplateResponse": { "type": "object", "properties": { - "image": { + "template": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeInstanceGroupOwnershipRequest": { + "github_com_softiron_manifold-api_cloud.UpdateUserRequest": { "type": "object", "properties": { - "group": { - "type": "integer" + "merge": { + "type": "boolean" }, - "user": { - "type": "integer" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeInstanceGroupOwnershipResponse": { + "github_com_softiron_manifold-api_cloud.UpdateUserResponse": { "type": "object", "properties": { - "group": { + "user": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeInstanceGroupPermissionsRequest": { + "github_com_softiron_manifold-api_cloud.UpdateZoneRequest": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "merge": { + "type": "boolean" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeInstanceGroupPermissionsResponse": { + "github_com_softiron_manifold-api_cloud.UpdateZoneResponse": { "type": "object", "properties": { - "group": { + "zone": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeInstanceOwnershipRequest": { + "github_com_softiron_manifold-api_cloud.User": { "type": "object", "properties": { - "group": { + "auth_driver": { + "type": "string" + }, + "datastore_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDatastore" + } + }, + "default_user_quotas": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" + }, + "enabled": { + "type": "boolean" + }, + "group_id": { "type": "integer" }, - "user": { + "group_name": { + "type": "string" + }, + "groups": { + "type": "array", + "items": { + "type": "integer" + } + }, + "id": { "type": "integer" + }, + "image_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserImage" + } + }, + "instance_quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserInstance" + }, + "login_token": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserLoginToken" + } + }, + "name": { + "type": "string" + }, + "network_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserNetwork" + } + }, + "password": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" } } }, - "github_com_softiron_manifold-api_cloud.ChangeInstanceOwnershipResponse": { + "github_com_softiron_manifold-api_cloud.UserDatastore": { "type": "object", "properties": { - "instance": { - "type": "integer" + "id": { + "type": "string" + }, + "images": { + "type": "string" + }, + "images_used": { + "type": "string" + }, + "size": { + "type": "string" + }, + "size_used": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeInstancePermissionsRequest": { + "github_com_softiron_manifold-api_cloud.UserDefaultQuotas": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "datastore_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDatastore" + } + }, + "image_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserImage" + } + }, + "instance_quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserInstance" + }, + "network_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserNetwork" + } } } }, - "github_com_softiron_manifold-api_cloud.ChangeInstancePermissionsResponse": { + "github_com_softiron_manifold-api_cloud.UserImage": { "type": "object", "properties": { - "instance": { - "type": "integer" + "id": { + "type": "string" + }, + "running_instances": { + "type": "string" + }, + "running_instances_used": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeMarketAppOwnershipRequest": { + "github_com_softiron_manifold-api_cloud.UserInstance": { "type": "object", "properties": { - "group": { + "cpu": { + "type": "number" + }, + "cpu_used": { + "type": "number" + }, + "instances": { "type": "integer" }, - "user": { + "instances_used": { + "type": "integer" + }, + "memory": { + "type": "integer" + }, + "memory_used": { + "type": "integer" + }, + "running_cpu": { + "type": "number" + }, + "running_cpu_used": { + "type": "number" + }, + "running_instances": { + "type": "integer" + }, + "running_instances_used": { + "type": "integer" + }, + "running_memory": { + "type": "integer" + }, + "running_memory_used": { + "type": "integer" + }, + "system_disk_size": { + "type": "integer" + }, + "system_disk_size_used": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeMarketAppOwnershipResponse": { + "github_com_softiron_manifold-api_cloud.UserLoginRequest": { "type": "object", "properties": { - "market_app": { + "duration": { + "type": "integer" + }, + "group": { "type": "integer" + }, + "token": { + "type": "string" + }, + "username": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeMarketAppPermissionsRequest": { + "github_com_softiron_manifold-api_cloud.UserLoginResponse": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "token": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeMarketAppPermissionsResponse": { + "github_com_softiron_manifold-api_cloud.UserLoginToken": { "type": "object", "properties": { - "market_app": { + "effective_group_id": { "type": "integer" + }, + "expiration_time": { + "type": "string" + }, + "token": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeMarketOwnershipRequest": { + "github_com_softiron_manifold-api_cloud.UserNetwork": { "type": "object", "properties": { - "group": { - "type": "integer" + "id": { + "type": "string" }, - "user": { - "type": "integer" + "leases": { + "type": "string" + }, + "leases_used": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeMarketOwnershipResponse": { + "github_com_softiron_manifold-api_cloud.UserQuotaResponse": { "type": "object", "properties": { - "market": { - "type": "integer" + "quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" } } }, - "github_com_softiron_manifold-api_cloud.ChangeMarketPermissionsRequest": { + "github_com_softiron_manifold-api_cloud.UserResponse": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "user": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.User" } } }, - "github_com_softiron_manifold-api_cloud.ChangeMarketPermissionsResponse": { + "github_com_softiron_manifold-api_cloud.UsersResponse": { "type": "object", "properties": { - "market": { - "type": "integer" + "users": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.User" + } } } }, - "github_com_softiron_manifold-api_cloud.ChangeNetworkOwnershipRequest": { + "github_com_softiron_manifold-api_cloud.Zone": { "type": "object", "properties": { - "group": { + "id": { "type": "integer" }, - "user": { + "name": { + "type": "string" + }, + "servers": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Server" + } + }, + "state": { "type": "integer" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" } } }, - "github_com_softiron_manifold-api_cloud.ChangeNetworkOwnershipResponse": { + "github_com_softiron_manifold-api_cloud.ZoneResponse": { "type": "object", "properties": { - "network": { - "type": "integer" + "zone": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Zone" } } }, - "github_com_softiron_manifold-api_cloud.ChangeNetworkPermissionsRequest": { + "github_com_softiron_manifold-api_cloud.ZonesRaftStatusResponse": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "status": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RaftStatus" } } }, - "github_com_softiron_manifold-api_cloud.ChangeNetworkPermissionsResponse": { + "github_com_softiron_manifold-api_cloud.ZonesResponse": { "type": "object", "properties": { - "network": { - "type": "integer" + "zones": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Zone" + } } } }, - "github_com_softiron_manifold-api_cloud.ChangeNetworkTemplateOwnershipRequest": { + "github_com_softiron_manifold-api_cloud.perms": { "type": "object", "properties": { - "group": { - "type": "integer" + "admin": { + "type": "boolean" }, - "user": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.ChangeNetworkTemplateOwnershipResponse": { - "type": "object", - "properties": { - "template": { - "type": "integer" + "manage": { + "type": "boolean" + }, + "use": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.ChangeNetworkTemplatePermissionsRequest": { + "github_com_softiron_manifold-api_cloud_config.AuthMAD": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "authn": { + "type": "string" + }, + "executable": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeNetworkTemplatePermissionsResponse": { + "github_com_softiron_manifold-api_cloud_config.AuthMADConf": { "type": "object", "properties": { - "template": { + "driver_managed_group_admin": { + "type": "string" + }, + "driver_managed_groups": { + "type": "string" + }, + "max_token_time": { "type": "integer" + }, + "name": { + "type": "string" + }, + "password_change": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeRouterOwnershipRequest": { + "github_com_softiron_manifold-api_cloud_config.DB": { "type": "object", "properties": { - "group": { + "backend": { + "type": "string" + }, + "compare_binary": { + "type": "string" + }, + "connections": { "type": "integer" }, - "user": { + "dbname": { + "type": "string" + }, + "passwd": { + "type": "string" + }, + "port": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.ChangeRouterOwnershipResponse": { - "type": "object", - "properties": { - "router": { + }, + "server": { + "type": "string" + }, + "timeout": { "type": "integer" + }, + "user": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeRouterPermissionsRequest": { + "github_com_softiron_manifold-api_cloud_config.DSMADConf": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "marketplace_actions": { + "type": "string" + }, + "name": { + "type": "string" + }, + "persistent_only": { + "type": "string" + }, + "required_attrs": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeRouterPermissionsResponse": { + "github_com_softiron_manifold-api_cloud_config.DatastoreMAD": { "type": "object", "properties": { - "router": { - "type": "integer" + "arguments": { + "type": "string" + }, + "executable": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeSecurityGroupOwnershipRequest": { + "github_com_softiron_manifold-api_cloud_config.DefaultCost": { "type": "object", "properties": { - "group": { + "cpucost": { "type": "integer" }, - "user": { + "disk_cost": { + "type": "integer" + }, + "memory_cost": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeSecurityGroupOwnershipResponse": { + "github_com_softiron_manifold-api_cloud_config.Federation": { "type": "object", "properties": { - "security_group": { + "master_oned": { + "type": "string" + }, + "mode": { + "type": "string" + }, + "server_id": { + "type": "integer" + }, + "zone_id": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeSecurityGroupPermissionsRequest": { + "github_com_softiron_manifold-api_cloud_config.HookLogConf": { "type": "object", "properties": { - "perms": { - "$ref": "#/definitions/hc.Perms" + "log_retention": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeSecurityGroupPermissionsResponse": { + "github_com_softiron_manifold-api_cloud_config.HookManagerMAD": { "type": "object", "properties": { - "security_group": { - "type": "integer" + "arguments": { + "type": "string" + }, + "executable": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeTemplateOwnershipRequest": { + "github_com_softiron_manifold-api_cloud_config.ImMAD": { "type": "object", "properties": { - "group": { - "type": "integer" + "arguments": { + "type": "string" }, - "user": { + "executable": { + "type": "string" + }, + "name": { + "type": "string" + }, + "threads": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeTemplateOwnershipResponse": { + "github_com_softiron_manifold-api_cloud_config.InstanceMAD": { "type": "object", "properties": { - "template": { - "type": "integer" + "arguments": { + "type": "string" + }, + "cold_nicattach": { + "type": "string" + }, + "default": { + "type": "string" + }, + "dslive_migration": { + "type": "string" + }, + "executable": { + "type": "string" + }, + "imported_instances_actions": { + "type": "string" + }, + "keep_snapshots": { + "type": "string" + }, + "live_resize": { + "type": "string" + }, + "name": { + "type": "string" + }, + "sunstone_name": { + "type": "string" + }, + "type": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeTemplatePermissionsRequest": { + "github_com_softiron_manifold-api_cloud_config.IpamMAD": { "type": "object", "properties": { - "disk": { - "type": "boolean" + "arguments": { + "type": "string" }, - "permissions": { - "$ref": "#/definitions/hc.Perms" + "executable": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeTemplatePermissionsResponse": { + "github_com_softiron_manifold-api_cloud_config.Log": { "type": "object", "properties": { - "template": { + "debug_level": { "type": "integer" + }, + "system": { + "type": "string" + }, + "use_instances_location": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeUserAuthRequest": { + "github_com_softiron_manifold-api_cloud_config.MarketMAD": { "type": "object", "properties": { - "driver": { + "arguments": { "type": "string" }, - "password": { + "executable": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeUserAuthResponse": { + "github_com_softiron_manifold-api_cloud_config.MarketMADConf": { "type": "object", "properties": { - "user": { - "type": "integer" + "app_actions": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "string" + }, + "required_attrs": { + "type": "string" + }, + "sunstone_name": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeUserGroupResponse": { + "github_com_softiron_manifold-api_cloud_config.Raft": { "type": "object", "properties": { - "user": { + "broadcast_timeout_ms": { + "type": "integer" + }, + "election_timeout_ms": { + "type": "integer" + }, + "limit_purge": { + "type": "integer" + }, + "log_purge_timeout": { + "type": "integer" + }, + "log_retention": { + "type": "integer" + }, + "xmlrpc_timeout_ms": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.ChangeUserPasswordRequest": { + "github_com_softiron_manifold-api_cloud_config.TmMAD": { "type": "object", "properties": { - "password": { + "arguments": { + "type": "string" + }, + "executable": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ChangeUserPasswordResponse": { + "github_com_softiron_manifold-api_cloud_config.TmMADConf": { "type": "object", "properties": { - "user": { - "type": "integer" + "allow_orphans": { + "type": "string" + }, + "clone_target": { + "type": "string" + }, + "clone_target_shared": { + "type": "string" + }, + "clone_target_ssh": { + "type": "string" + }, + "disk_type_shared": { + "type": "string" + }, + "disk_type_ssh": { + "type": "string" + }, + "driver": { + "type": "string" + }, + "dsmigrate": { + "type": "string" + }, + "ln_target": { + "type": "string" + }, + "ln_target_shared": { + "type": "string" + }, + "ln_target_ssh": { + "type": "string" + }, + "name": { + "type": "string" + }, + "shared": { + "type": "string" + }, + "tm_madsystem": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CloneDocumentRequest": { + "github_com_softiron_manifold-api_cloud_config.VLANIDs": { "type": "object", "properties": { - "name": { + "reserved": { "type": "string" + }, + "start": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CloneDocumentResponse": { + "github_com_softiron_manifold-api_cloud_config.VNCPorts": { "type": "object", "properties": { - "document": { + "reserved": { + "type": "string" + }, + "start": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CloneImageRequest": { + "github_com_softiron_manifold-api_cloud_config.VNetMADConf": { "type": "object", "properties": { - "datastore": { - "type": "integer" + "bridge_type": { + "type": "string" }, "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CloneImageResponse": { + "github_com_softiron_manifold-api_cloud_config.VxlanIDs": { "type": "object", "properties": { - "image": { + "start": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CloneNetworkTemplateRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.CloneNetworkTemplateResponse": { + "github_com_softiron_manifold-api_cloud_datacenter.Cluster": { "type": "object", "properties": { - "template": { + "cluster": { + "type": "integer" + }, + "zone": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CloneSecurityGroupRequest": { + "github_com_softiron_manifold-api_cloud_datacenter.Datastore": { "type": "object", "properties": { - "name": { - "type": "string" + "datastore": { + "type": "integer" + }, + "zone": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CloneSecurityGroupResponse": { + "github_com_softiron_manifold-api_cloud_datacenter.Host": { "type": "object", "properties": { - "security_group": { + "host": { + "type": "integer" + }, + "zone": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CloneTemplateRequest": { + "github_com_softiron_manifold-api_cloud_datacenter.Network": { "type": "object", "properties": { - "disk": { - "type": "boolean" + "network": { + "type": "integer" }, - "name": { - "type": "string" + "zone": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CloneTemplateResponse": { + "github_com_softiron_manifold-api_cloud_instance.Action": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49 + ], + "x-enum-comments": { + "AliasAttachAction": "alias-attach", + "AliasDetachAction": "alias-detach", + "BootAction": "boot", + "ChmodAction": "chmod", + "ChownAction": "chown", + "DeleteAction": "delete", + "DeleteRecreateAction": "delete-recreate", + "DeployAction": "deploy", + "DiskAttachAction": "disk-attach", + "DiskDetachAction": "disk-detach", + "DiskResizeAction": "disk-resize", + "DiskSaveasAction": "disk-saveas", + "DiskSnapshotCreateAction": "disk-snapshot-create", + "DiskSnapshotDeleteAction": "disk-snapshot-delete", + "DiskSnapshotRenameAction": "disk-snapshot-rename", + "DiskSnapshotRevertAction": "disk-snapshot-revert", + "HoldAction": "hold", + "LiveMigrateAction": "live-migrate", + "MigrateAction": "migrate", + "MonitorAction": "monitor", + "NicAttachAction": "nic-attach", + "NicDetachAction": "nic-detach", + "NoneAction": "none", + "PoffHardMigrateAction": "poff-hard-migrate", + "PoffMigrateAction": "poff-migrate", + "PowerOffAction": "poweroff", + "PowerOffHardAction": "poweroff-hard", + "RebootAction": "reboot", + "RebootHardAction": "reboot-hard", + "RecoverAction": "recover", + "ReleaseAction": "release", + "RenameAction": "rename", + "RescheduleAction": "resched", + "ResizeAction": "resize", + "ResumeAction": "resume", + "RetryAction": "retry", + "ShutdownAction": "shutdown", + "ShutdownHardAction": "shutdown-hard", + "SnapshotCreateAction": "snapshot-create", + "SnapshotDeleteAction": "snapshot-delete", + "SnapshotRevertAction": "snapshot-revert", + "StopAction": "stop", + "SuspendAction": "suspend", + "TerminateAction": "terminate", + "TerminateHardAction": "terminate-hard", + "UndeployAction": "undeploy", + "UndeployHardAction": "undeploy-hard", + "UnrescheduleAction": "unresched", + "UpdateAction": "update", + "UpdateconfAction": "updateconf" + }, + "x-enum-varnames": [ + "NoneAction", + "MigrateAction", + "LiveMigrateAction", + "ShutdownAction", + "ShutdownHardAction", + "UndeployAction", + "UndeployHardAction", + "HoldAction", + "ReleaseAction", + "StopAction", + "SuspendAction", + "ResumeAction", + "BootAction", + "DeleteAction", + "DeleteRecreateAction", + "RebootAction", + "RebootHardAction", + "RescheduleAction", + "UnrescheduleAction", + "PowerOffAction", + "PowerOffHardAction", + "DiskAttachAction", + "DiskDetachAction", + "NicAttachAction", + "NicDetachAction", + "DiskSnapshotCreateAction", + "DiskSnapshotDeleteAction", + "TerminateAction", + "TerminateHardAction", + "DiskResizeAction", + "DeployAction", + "ChownAction", + "ChmodAction", + "UpdateconfAction", + "RenameAction", + "ResizeAction", + "UpdateAction", + "SnapshotCreateAction", + "SnapshotDeleteAction", + "SnapshotRevertAction", + "DiskSaveasAction", + "DiskSnapshotRevertAction", + "RecoverAction", + "RetryAction", + "MonitorAction", + "DiskSnapshotRenameAction", + "AliasAttachAction", + "AliasDetachAction", + "PoffMigrateAction", + "PoffHardMigrateAction" + ] + }, + "github_com_softiron_manifold-api_cloud_instance.DiskSize": { "type": "object", "properties": { - "template": { + "id": { + "type": "integer" + }, + "size": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.Cluster": { + "github_com_softiron_manifold-api_cloud_instance.DiskSnapshots": { "type": "object", "properties": { - "datastores": { - "type": "array", - "items": { - "type": "integer" - } - }, - "hosts": { - "type": "array", - "items": { - "type": "integer" - } + "allow_orphans": { + "type": "string" }, - "id": { + "current_base": { "type": "integer" }, - "name": { - "type": "string" + "disk_id": { + "type": "integer" }, - "networks": { - "type": "array", - "items": { - "type": "integer" - } + "next_snapshot": { + "type": "integer" }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" - } - } - }, - "github_com_softiron_manifold-api_cloud.ClusterResponse": { - "type": "object", - "properties": { - "cluster": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Cluster" - } - } - }, - "github_com_softiron_manifold-api_cloud.ClustersResponse": { - "type": "object", - "properties": { - "cluster": { + "snapshot": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Cluster" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.ImageSnapshot" } } } }, - "github_com_softiron_manifold-api_cloud.CommitSecurityGroupRequest": { - "type": "object", - "properties": { - "all": { - "type": "boolean" - } - } - }, - "github_com_softiron_manifold-api_cloud.CommitSecurityGroupResponse": { + "github_com_softiron_manifold-api_cloud_instance.GroupRole": { "type": "object", "properties": { - "security_group": { + "host_affined": { + "type": "string" + }, + "host_anti_affined": { + "type": "string" + }, + "id": { "type": "integer" + }, + "name": { + "type": "string" + }, + "policy": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.Configuration": { + "github_com_softiron_manifold-api_cloud_instance.History": { "type": "object", "properties": { - "api_list_order": { - "type": "array", - "items": { - "type": "string" - } + "action": { + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Action" }, - "auth_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.AuthMAD" - } + "cluster_id": { + "type": "integer" }, - "auth_madconf": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.AuthMADConf" - } + "datastore_id": { + "type": "integer" }, - "cluster_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "end_time": { + "type": "string" }, - "datastore_capacity_check": { - "type": "array", - "items": { - "type": "string" - } + "epilog_end_time": { + "type": "string" }, - "datastore_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "epilog_start_time": { + "type": "string" }, - "datastore_location": { - "type": "array", - "items": { - "type": "string" - } + "group_id": { + "type": "integer" }, - "datastore_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.DatastoreMAD" - } + "host_id": { + "type": "integer" }, - "db": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.DB" + "hostname": { + "type": "string" }, - "default_auth": { - "type": "array", - "items": { - "type": "string" - } + "id": { + "type": "integer" }, - "default_cdrom_device_prefix": { - "type": "array", - "items": { - "type": "string" - } + "instance_mad": { + "type": "string" }, - "default_cost": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.DefaultCost" - } + "prolog_end_time": { + "type": "string" }, - "default_device_prefix": { - "type": "array", - "items": { - "type": "string" - } + "prolog_start_time": { + "type": "string" }, - "default_image_persistent": { - "type": "array", - "items": { - "type": "string" - } + "request_id": { + "type": "integer" }, - "default_image_persistent_new": { - "type": "array", - "items": { - "type": "string" - } + "running_end_time": { + "type": "string" }, - "default_image_type": { - "type": "array", - "items": { - "type": "string" - } + "running_start_time": { + "type": "string" }, - "default_umask": { - "type": "array", - "items": { - "type": "string" - } + "sequence_number": { + "type": "integer" }, - "default_vdccluster_datastore_acl": { - "type": "array", - "items": { - "type": "string" - } + "start_time": { + "type": "string" }, - "default_vdccluster_host_acl": { - "type": "array", - "items": { - "type": "string" - } + "transfer_manager_mad": { + "type": "string" }, - "default_vdccluster_net_acl": { - "type": "array", - "items": { - "type": "string" - } + "user_id": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud_instance.ImageSnapshot": { + "type": "object", + "properties": { + "active": { + "type": "string" }, - "default_vdcdatastore_acl": { - "type": "array", - "items": { - "type": "string" - } + "children": { + "type": "string" }, - "default_vdchost_acl": { - "type": "array", - "items": { - "type": "string" - } + "date": { + "type": "integer" }, - "default_vdcvnet_acl": { - "type": "array", - "items": { - "type": "string" - } + "id": { + "type": "integer" }, - "document_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "name": { + "type": "string" }, - "dsmadconf": { + "parent": { + "type": "integer" + }, + "size": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_cloud_instance.Monitoring": { + "type": "object", + "properties": { + "cpu": { + "type": "number" + }, + "disk_read_bytes": { + "type": "integer" + }, + "disk_read_iops": { + "type": "integer" + }, + "disk_size": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.DSMADConf" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.DiskSize" } }, - "dsmonitor_instance_disk": { + "disk_write_bytes": { "type": "integer" }, - "enable_other_permissions": { + "disk_write_iops": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "memory": { + "type": "integer" + }, + "netrx": { + "type": "integer" + }, + "nettx": { + "type": "integer" + }, + "timestamp": { "type": "string" }, - "federation": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.Federation" + "vcenter_esxhost": { + "type": "string" }, - "group_restricted_attr": { - "type": "array", - "items": { - "type": "string" - } + "vcenter_guest_state": { + "type": "string" }, - "hook_log_conf": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.HookLogConf" + "vcenter_rpname": { + "type": "string" }, - "hook_manager_mad": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.HookManagerMAD" + "vcenter_vmname": { + "type": "string" }, - "host_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "vcenter_vmware_tools_running_status": { + "type": "string" }, - "im_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.ImMAD" - } + "vcenter_vmware_tools_version": { + "type": "string" }, - "image_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "vcenter_vmware_tools_version_status": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud_instance.Snapshots": { + "type": "object", + "properties": { + "allow_orphans": { + "type": "string" }, - "image_restricted_attr": { - "type": "array", - "items": { - "type": "string" - } + "current_base": { + "type": "integer" }, - "inherit_datastore_attr": { - "type": "array", - "items": { - "type": "string" - } + "next_snapshot": { + "type": "integer" }, - "inherit_image_attr": { + "snapshot": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.ImageSnapshot" } + } + } + }, + "github_com_softiron_manifold-api_cloud_instance.State": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + -2, + -1 + ], + "x-enum-comments": { + "ActiveState": "active", + "AnyState": "all", + "CloningFailedState": "cloning_failed", + "CloningState": "cloning", + "DoneState": "done", + "HoldState": "hold", + "InitState": "init", + "NotDoneState": "not_done", + "OffState": "off", + "PendingState": "pending", + "StoppedState": "stopped", + "SuspendedState": "suspended", + "UndeployedState": "undeployed" + }, + "x-enum-varnames": [ + "InitState", + "PendingState", + "HoldState", + "ActiveState", + "StoppedState", + "SuspendedState", + "DoneState", + "_", + "OffState", + "UndeployedState", + "CloningState", + "CloningFailedState", + "AnyState", + "NotDoneState" + ] + }, + "github_com_softiron_manifold-api_cloud_network.AddressRange": { + "type": "object", + "properties": { + "arid": { + "type": "string" }, - "inherit_vnet_attr": { - "type": "array", - "items": { - "type": "string" - } + "global_prefix": { + "type": "string" }, - "instance_admin_operations": { + "ip": { "type": "string" }, - "instance_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "ip6": { + "type": "string" }, - "instance_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.InstanceMAD" - } + "ip6_end": { + "type": "string" }, - "instance_manage_operations": { + "ip6_global": { "type": "string" }, - "instance_monitoring_expiration_time": { - "type": "array", - "items": { - "type": "string" - } + "ip6_global_end": { + "type": "string" }, - "instance_restricted_attr": { - "type": "array", - "items": { - "type": "string" - } + "ip6_ula": { + "type": "string" }, - "instance_snapshot_factor": { + "ip6_ula_end": { "type": "string" }, - "instance_submit_on_hold": { + "ipend": { "type": "string" }, - "instance_use_operations": { + "leases": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_network.Lease" } }, - "ipam_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.IpamMAD" - } + "mac": { + "type": "string" }, - "keepalive_max_conn": { - "type": "array", - "items": { - "type": "integer" - } + "macend": { + "type": "string" }, - "keepalive_timeout": { - "type": "array", - "items": { - "type": "integer" - } + "parent_network_arid": { + "type": "string" }, - "listen_address": { - "type": "array", - "items": { - "type": "string" - } + "port_size": { + "type": "string" }, - "log": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.Log" - } + "port_start": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "type": { + "type": "string" + }, + "ula_prefix": { + "type": "string" }, - "log_call_format": { - "type": "array", - "items": { - "type": "string" - } + "used_leases": { + "type": "string" }, - "macprefix": { - "type": "array", - "items": { - "type": "string" - } + "vnmad": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_cloud_network.Lease": { + "type": "object", + "properties": { + "instance": { + "type": "integer" }, - "manager_timer": { - "type": "array", - "items": { - "type": "integer" - } + "ip": { + "type": "string" }, - "market_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.MarketMAD" - } + "ip6": { + "type": "string" }, - "market_madconf": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.MarketMADConf" - } + "ip6_global": { + "type": "string" }, - "max_conn": { - "type": "integer" + "ip6_link": { + "type": "string" }, - "max_conn_backlog": { - "type": "integer" + "ip6_ula": { + "type": "string" }, - "message_size": { - "type": "integer" + "mac": { + "type": "string" }, - "monitoring_interval_datastore": { + "vnet": { "type": "integer" }, - "monitoring_interval_dbupdate": { + "vrouter": { "type": "integer" - }, - "monitoring_interval_host": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ACL": { + "type": "object", + "properties": { + "id": { "type": "integer" }, - "monitoring_interval_instance": { + "resource": { + "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (VM, Host...) | resource ID |\n +-----------------------+-----------------------+", "type": "integer" }, - "monitoring_interval_market": { + "rights": { + "description": "64 bits\n +-----------------------------------------------+\n | Actions (MANAGE, CREATE, USE... |\n +-----------------------------------------------+", "type": "integer" }, - "network_size": { + "string": { + "type": "string" + }, + "user": { + "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (user,group,all) | user/group ID |\n +-----------------------+-----------------------+", "type": "integer" }, - "one_key": { + "zone": { + "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (individual,all) | zone ID |\n +-----------------------+-----------------------+", + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ACLsResponse": { + "type": "object", + "properties": { + "acls": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ACL" } + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.AcctHistory": { + "type": "object", + "properties": { + "action": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Action" }, - "pcipassthrough_bus": { - "type": "string" + "cluster_id": { + "type": "integer" }, - "port": { + "datastore_id": { "type": "integer" }, - "raft": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.Raft" + "end_time": { + "type": "string" }, - "rpclog": { + "epilog_end_time": { "type": "string" }, - "scripts_remote_dir": { + "epilog_start_time": { "type": "string" }, - "session_expiration_time": { + "group_id": { "type": "integer" }, - "showback_only_running": { + "host_id": { + "type": "integer" + }, + "hostname": { "type": "string" }, - "timeout": { + "id": { "type": "integer" }, - "tm_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.TmMAD" - } + "instance": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Instance" }, - "tm_madconf": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.TmMADConf" - } + "instance_mad": { + "type": "string" }, - "user_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "prolog_end_time": { + "type": "string" }, - "user_restricted_attr": { - "type": "array", - "items": { - "type": "string" - } + "prolog_start_time": { + "type": "string" }, - "vlanids": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.VLANIDs" + "request_id": { + "type": "integer" }, - "vncports": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.VNCPorts" + "running_end_time": { + "type": "string" }, - "vnet_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "running_start_time": { + "type": "string" }, - "vnet_restricted_attr": { - "type": "array", - "items": { - "type": "string" - } + "sequence_number": { + "type": "integer" }, - "vnmadconf": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.VNetMADConf" - } + "start_time": { + "type": "string" }, - "vxlan_ids": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_config.VxlanIDs" + "transfer_manager_mad": { + "type": "string" + }, + "user_id": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.Core": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.AddGroupAdminRequest": { "type": "object", "properties": { - "cpus": { + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.AddGroupAdminResponse": { + "type": "object", + "properties": { + "group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceScheduleRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceScheduleResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceSecurityGroupResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.AddNetworkAddressRangeRequest": { + "type": "object", + "properties": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.AddNetworkAddressRangeResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.AddUserGroupResponse": { + "type": "object", + "properties": { + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.AllocateDocumentRequest": { + "type": "object", + "properties": { + "template": { "type": "string" }, - "dedicated": { - "type": "boolean" + "type": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.AllocateDocumentResponse": { + "type": "object", + "properties": { + "document": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.CalculateInstancesShowbackRequest": { + "type": "object", + "properties": { + "month": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Period" }, - "free": { + "year": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Period" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.Capacity": { + "type": "object", + "properties": { + "free_cpu": { "type": "integer" }, - "id": { + "free_memory": { + "type": "integer" + }, + "used_cpu": { + "type": "integer" + }, + "used_memory": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateACLRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentOwnershipRequest": { "type": "object", "properties": { - "resource": { + "group": { "type": "integer" }, - "rights": { + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentOwnershipResponse": { + "type": "object", + "properties": { + "document": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentPermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentPermissionsResponse": { + "type": "object", + "properties": { + "document": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageOwnershipRequest": { + "type": "object", + "properties": { + "group": { "type": "integer" }, "user": { "type": "integer" - }, - "zone": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageOwnershipResponse": { + "type": "object", + "properties": { + "image": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateACLResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImagePermissionsRequest": { "type": "object", "properties": { - "acl": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImagePermissionsResponse": { + "type": "object", + "properties": { + "image": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateClusterRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageTypeRequest": { "type": "object", "properties": { - "name": { + "type": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateClusterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageTypeResponse": { "type": "object", "properties": { - "cluster": { + "image": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateDataCenterRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupOwnershipRequest": { "type": "object", "properties": { - "template": { - "type": "string" + "group": { + "type": "integer" + }, + "user": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateDataCenterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupOwnershipResponse": { "type": "object", "properties": { - "datacenter": { + "group": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateDatastoreRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupPermissionsRequest": { "type": "object", "properties": { - "cluster": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupPermissionsResponse": { + "type": "object", + "properties": { + "group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceOwnershipRequest": { + "type": "object", + "properties": { + "group": { "type": "integer" }, - "template": { - "type": "string" + "user": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateDatastoreResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceOwnershipResponse": { "type": "object", "properties": { - "datastore": { + "instance": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateGroupRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstancePermissionsRequest": { "type": "object", "properties": { - "name": { - "type": "string" + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstancePermissionsResponse": { + "type": "object", + "properties": { + "instance": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppOwnershipResponse": { + "type": "object", + "properties": { + "market_app": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppPermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppPermissionsResponse": { + "type": "object", + "properties": { + "market_app": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketOwnershipResponse": { + "type": "object", + "properties": { + "market": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketPermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketPermissionsResponse": { + "type": "object", + "properties": { + "market": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkOwnershipRequest": { + "type": "object", + "properties": { + "group": { + "type": "integer" + }, + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkOwnershipResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkPermissionsRequest": { + "type": "object", + "properties": { + "permissions": { + "$ref": "#/definitions/hc.Perms" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkPermissionsResponse": { + "type": "object", + "properties": { + "network": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplateOwnershipRequest": { "type": "object", "properties": { "group": { "type": "integer" + }, + "user": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateHookRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplateOwnershipResponse": { "type": "object", "properties": { "template": { - "type": "string" + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateHookResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplatePermissionsRequest": { "type": "object", "properties": { - "hook": { - "type": "integer" + "permissions": { + "$ref": "#/definitions/hc.Perms" } } }, - "github_com_softiron_manifold-api_cloud.CreateHostRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplatePermissionsResponse": { "type": "object", "properties": { - "cluster": { + "template": { "type": "integer" - }, - "hostname": { - "type": "string" - }, - "info_manager": { - "type": "string" - }, - "vm_manager": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateHostResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterOwnershipRequest": { "type": "object", "properties": { - "host": { + "group": { + "type": "integer" + }, + "user": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateImageRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterOwnershipResponse": { "type": "object", "properties": { - "datastore": { + "router": { "type": "integer" - }, - "enforce_capacity": { - "type": "boolean" - }, - "template": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateImageResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterPermissionsRequest": { "type": "object", "properties": { - "image": { - "type": "integer" + "permissions": { + "$ref": "#/definitions/hc.Perms" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceDiskImageRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterPermissionsResponse": { "type": "object", "properties": { - "image_type": { - "type": "string" - }, - "name": { - "type": "string" - }, - "snapshot": { + "router": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceDiskImageResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupOwnershipRequest": { "type": "object", "properties": { - "image": { + "group": { + "type": "integer" + }, + "user": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceDiskRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupOwnershipResponse": { "type": "object", "properties": { - "disk": { - "type": "string" + "security_group": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceDiskResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupPermissionsRequest": { "type": "object", "properties": { - "instance": { - "type": "integer" + "perms": { + "$ref": "#/definitions/hc.Perms" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceDiskSnapshotRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupPermissionsResponse": { "type": "object", "properties": { - "description": { - "type": "string" + "security_group": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceDiskSnapshotResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplateOwnershipRequest": { "type": "object", "properties": { - "instance": { + "group": { + "type": "integer" + }, + "user": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceGroupRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplateOwnershipResponse": { "type": "object", "properties": { "template": { - "type": "string" + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceNICRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplatePermissionsRequest": { "type": "object", "properties": { - "nic": { - "type": "string" + "disk": { + "type": "boolean" + }, + "permissions": { + "$ref": "#/definitions/hc.Perms" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceNICResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplatePermissionsResponse": { "type": "object", "properties": { - "instance": { - "description": "TODO: would make more sense as NIC ID, maybe docs are wrong", + "template": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserAuthRequest": { "type": "object", "properties": { - "pending": { - "type": "boolean" + "driver": { + "type": "string" }, - "template": { + "password": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserAuthResponse": { "type": "object", "properties": { - "instance": { + "user": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateInstanceSnapshotRequest": { - "type": "object", - "properties": { - "snapshot": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.CreateInstanceSnapshotResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserGroupResponse": { "type": "object", "properties": { - "snapshot": { + "user": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateMarketAppRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserPasswordRequest": { "type": "object", "properties": { - "template": { + "password": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateMarketAppResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserPasswordResponse": { "type": "object", "properties": { - "market_app": { + "user": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateMarketRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneDocumentRequest": { "type": "object", "properties": { - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateMarketResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneDocumentResponse": { "type": "object", "properties": { - "market": { + "document": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateNetworkRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneImageRequest": { "type": "object", "properties": { - "cluster": { + "datastore": { "type": "integer" }, - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateNetworkResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneImageResponse": { "type": "object", "properties": { - "network": { + "image": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateNetworkTemplateRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneNetworkTemplateRequest": { "type": "object", "properties": { - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateNetworkTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneNetworkTemplateResponse": { "type": "object", "properties": { "template": { @@ -43015,581 +42737,815 @@ } } }, - "github_com_softiron_manifold-api_cloud.CreateRouterNICRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneSecurityGroupRequest": { "type": "object", "properties": { - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateRouterNICResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneSecurityGroupResponse": { "type": "object", "properties": { - "router": { + "security_group": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateRouterRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneTemplateRequest": { "type": "object", "properties": { - "template": { + "disk": { + "type": "boolean" + }, + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateRouterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneTemplateResponse": { "type": "object", "properties": { - "router": { + "template": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateSecurityGroupRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Cluster": { "type": "object", "properties": { + "datastores": { + "type": "array", + "items": { + "type": "integer" + } + }, + "hosts": { + "type": "array", + "items": { + "type": "integer" + } + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "networks": { + "type": "array", + "items": { + "type": "integer" + } + }, "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ClusterTemplate" + }, + "template_text": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateSecurityGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ClusterResponse": { "type": "object", "properties": { - "security_group": { - "type": "integer" + "cluster": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Cluster" } } }, - "github_com_softiron_manifold-api_cloud.CreateTemplateRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ClusterTemplate": { "type": "object", "properties": { - "data": { + "reserved_cpu": { "type": "string" + }, + "reserved_mem": { + "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_cloud.CreateTemplateResponse": { - "type": "object", - "properties": { - "template": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.CreateUserRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ClustersResponse": { "type": "object", "properties": { - "auth": { - "type": "string" - }, - "gids": { + "cluster": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Cluster" } - }, - "password": { - "type": "string" - }, - "username": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.CreateUserResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CommitSecurityGroupRequest": { "type": "object", "properties": { - "user": { - "type": "integer" + "all": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.CreateVNCProxyRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CommitSecurityGroupResponse": { "type": "object", "properties": { - "zone": { + "security_group": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.CreateVNCProxyResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Configuration": { "type": "object", "properties": { - "name": { + "api_list_order": { + "type": "array", + "items": { + "type": "string" + } + }, + "auth_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.AuthMAD" + } + }, + "auth_madconf": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.AuthMADConf" + } + }, + "cluster_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "datastore_capacity_check": { + "type": "array", + "items": { + "type": "string" + } + }, + "datastore_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "datastore_location": { + "type": "array", + "items": { + "type": "string" + } + }, + "datastore_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.DatastoreMAD" + } + }, + "db": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.DB" + }, + "default_auth": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_cdrom_device_prefix": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_cost": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.DefaultCost" + } + }, + "default_device_prefix": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_image_persistent": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_image_persistent_new": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_image_type": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_umask": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdccluster_datastore_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdccluster_host_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdccluster_net_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdcdatastore_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdchost_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "default_vdcvnet_acl": { + "type": "array", + "items": { + "type": "string" + } + }, + "document_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "dsmadconf": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.DSMADConf" + } + }, + "dsmonitor_instance_disk": { + "type": "integer" + }, + "enable_other_permissions": { "type": "string" }, - "password": { + "federation": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.Federation" + }, + "group_restricted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "hook_log_conf": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.HookLogConf" + }, + "hook_manager_mad": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.HookManagerMAD" + }, + "host_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "im_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.ImMAD" + } + }, + "image_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "image_restricted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "inherit_datastore_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "inherit_image_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "inherit_vnet_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance_admin_operations": { "type": "string" }, - "token": { + "instance_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.InstanceMAD" + } + }, + "instance_manage_operations": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.CreateZoneRequest": { - "type": "object", - "properties": { - "template": { + }, + "instance_monitoring_expiration_time": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance_restricted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "instance_snapshot_factor": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.CreateZoneResponse": { - "type": "object", - "properties": { - "zone": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.DataCenter": { - "type": "object", - "properties": { - "clusters": { + }, + "instance_submit_on_hold": { + "type": "string" + }, + "instance_use_operations": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_datacenter.Cluster" + "type": "string" } }, - "datastores": { + "ipam_mad": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_datacenter.Datastore" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.IpamMAD" } }, - "groups": { + "keepalive_max_conn": { "type": "array", "items": { "type": "integer" } }, - "hosts": { + "keepalive_timeout": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_datacenter.Host" + "type": "integer" } }, - "id": { - "type": "integer" + "listen_address": { + "type": "array", + "items": { + "type": "string" + } }, - "name": { - "type": "string" + "log": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.Log" + } }, - "networks": { + "log_call_format": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_datacenter.Network" + "type": "string" } }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" - } - } - }, - "github_com_softiron_manifold-api_cloud.DataCenterResponse": { - "type": "object", - "properties": { - "datacenter": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DataCenter" - } - } - }, - "github_com_softiron_manifold-api_cloud.DataCentersResponse": { - "type": "object", - "properties": { - "datacenters": { + "macprefix": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.DataCenter" + "type": "string" } - } - } - }, - "github_com_softiron_manifold-api_cloud.Datastore": { - "type": "object", - "properties": { - "base_path": { - "type": "string" }, - "clusters": { + "manager_timer": { "type": "array", "items": { "type": "integer" } }, - "datastore_mad": { - "type": "string" + "market_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.MarketMAD" + } }, - "disk_type": { + "market_madconf": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.MarketMADConf" + } + }, + "max_conn": { "type": "integer" }, - "free_mb": { + "max_conn_backlog": { "type": "integer" }, - "group_id": { + "message_size": { "type": "integer" }, - "group_name": { - "type": "string" + "monitoring_interval_datastore": { + "type": "integer" }, - "id": { + "monitoring_interval_dbupdate": { "type": "integer" }, - "images": { + "monitoring_interval_host": { + "type": "integer" + }, + "monitoring_interval_instance": { + "type": "integer" + }, + "monitoring_interval_market": { + "type": "integer" + }, + "network_size": { + "type": "integer" + }, + "one_key": { "type": "array", "items": { - "type": "integer" + "type": "string" } }, - "name": { + "pcipassthrough_bus": { "type": "string" }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + "port": { + "type": "integer" }, - "state": { - "type": "string", - "enum": [ - "ready", - "disabled" - ] + "raft": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.Raft" }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "rpclog": { + "type": "string" }, - "total_mb": { + "scripts_remote_dir": { + "type": "string" + }, + "session_expiration_time": { "type": "integer" }, - "transfer_manager_mad": { + "showback_only_running": { "type": "string" }, - "type": { - "type": "string", - "enum": [ - "image", - "system", - "file" - ] - }, - "used_mb": { + "timeout": { "type": "integer" }, - "user_id": { - "type": "integer" + "tm_mad": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.TmMAD" + } }, - "user_name": { - "type": "string" + "tm_madconf": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.TmMADConf" + } + }, + "user_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "user_restricted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "vlanids": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.VLANIDs" + }, + "vncports": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.VNCPorts" + }, + "vnet_encrypted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "vnet_restricted_attr": { + "type": "array", + "items": { + "type": "string" + } + }, + "vnmadconf": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.VNetMADConf" + } + }, + "vxlan_ids": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.VxlanIDs" } } }, - "github_com_softiron_manifold-api_cloud.DatastoreResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Core": { "type": "object", "properties": { - "datastore": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Datastore" + "cpus": { + "type": "string" + }, + "dedicated": { + "type": "boolean" + }, + "free": { + "type": "integer" + }, + "id": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.Datastores": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateACLRequest": { "type": "object", "properties": { - "disk_usage": { + "resource": { "type": "integer" }, - "free_disk": { + "rights": { "type": "integer" }, - "max_disk": { + "user": { "type": "integer" }, - "used_disk": { + "zone": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.DatastoresResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateACLResponse": { "type": "object", "properties": { - "datastore": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Datastore" - } + "acl": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.DeleteTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateGroupRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateGroupResponse": { + "type": "object", + "properties": { + "group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHookRequest": { "type": "object", "properties": { "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHookResponse": { + "type": "object", + "properties": { + "hook": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.DeployInstanceRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateImageRequest": { "type": "object", "properties": { "datastore": { "type": "integer" }, - "enforce": { + "enforce_capacity": { "type": "boolean" }, - "host": { - "type": "integer" - }, "template": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.DeployInstanceResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateImageResponse": { "type": "object", "properties": { - "instance": { + "image": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.Document": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskImageRequest": { "type": "object", "properties": { - "group_id": { - "type": "integer" - }, - "group_name": { + "image_type": { "type": "string" }, - "id": { - "type": "integer" - }, - "lock": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" - }, "name": { "type": "string" }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" - }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" - }, - "type": { - "type": "string" - }, - "user_id": { + "snapshot": { "type": "integer" - }, - "user_name": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.DocumentResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskImageResponse": { "type": "object", "properties": { - "document": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Document" + "image": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.DocumentsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskRequest": { "type": "object", "properties": { - "document": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Document" - } + "disk": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.EnableDatastoreRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskResponse": { "type": "object", "properties": { - "enable": { - "type": "boolean" + "instance": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.EnableDatastoreResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskSnapshotRequest": { "type": "object", "properties": { - "datastore": { - "type": "integer" + "description": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.EnableImageRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskSnapshotResponse": { "type": "object", "properties": { - "enable": { - "type": "boolean" + "instance": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.EnableImageResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceGroupRequest": { "type": "object", "properties": { - "image": { - "type": "integer" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.EnableMarketAppRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceNICRequest": { "type": "object", "properties": { - "enable": { - "type": "boolean" + "nic": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.EnableMarketAppResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceNICResponse": { "type": "object", "properties": { - "market": { + "instance": { + "description": "TODO: would make more sense as NIC ID, maybe docs are wrong", "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.EnableMarketRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceRequest": { "type": "object", "properties": { - "enable": { + "pending": { "type": "boolean" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.EnableMarketResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceResponse": { "type": "object", "properties": { - "market": { + "instance": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.EnableUserRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceSnapshotRequest": { "type": "object", "properties": { - "enable": { - "type": "boolean" + "snapshot": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.EnableUserResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceSnapshotResponse": { "type": "object", "properties": { - "user": { + "snapshot": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.EnableZoneRequest": { - "type": "object", - "properties": { - "enable": { - "type": "boolean" - } - } - }, - "github_com_softiron_manifold-api_cloud.EnableZoneResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketAppRequest": { "type": "object", "properties": { - "zone": { - "type": "integer" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.FlattenImageSnapshotResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketAppResponse": { "type": "object", "properties": { - "image": { + "market_app": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.Group": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketRequest": { "type": "object", "properties": { - "admins": { - "type": "array", - "items": { - "type": "integer" - } - }, - "datastore_quota": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDatastore" - } - }, - "default_group_quotas": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" - }, - "id": { - "type": "integer" - }, - "image_quota": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserImage" - } - }, - "instance_quota": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserInstance" - }, - "name": { - "type": "string" - }, - "network_quota": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserNetwork" - } - }, "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" - }, - "users": { - "type": "array", - "items": { - "type": "integer" - } + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.GroupQuotaResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketResponse": { "type": "object", "properties": { - "quota": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" + "market": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.GroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkRequest": { "type": "object", "properties": { - "group": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Group" + "cluster": { + "type": "integer" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.GroupsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkResponse": { "type": "object", "properties": { - "groups": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Group" - } + "network": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.HoldNetworkRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkTemplateRequest": { "type": "object", "properties": { "template": { @@ -43597,322 +43553,244 @@ } } }, - "github_com_softiron_manifold-api_cloud.HoldNetworkResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkTemplateResponse": { "type": "object", "properties": { - "network": { + "template": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.Hook": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterNICRequest": { "type": "object", "properties": { - "hook_log": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookLog" - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" - }, - "type": { "type": "string" } - } - }, - "github_com_softiron_manifold-api_cloud.HookExecutionRecord": { - "type": "object", - "properties": { - "arguments": { - "type": "string" - }, - "execution_id": { - "type": "integer" - }, - "execution_result": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookExecutionResult" - }, - "hook_id": { - "type": "integer" - }, - "remote_host": { - "type": "string" - }, - "retry": { - "type": "string" - }, - "timestamp": { + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterNICResponse": { + "type": "object", + "properties": { + "router": { "type": "integer" - }, - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } } } }, - "github_com_softiron_manifold-api_cloud.HookExecutionResult": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterRequest": { "type": "object", "properties": { - "code": { - "type": "string" - }, - "command": { - "type": "string" - }, - "stderr": { - "type": "string" - }, - "stdout": { + "template": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.HookLog": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterResponse": { "type": "object", "properties": { - "execution_record": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookExecutionRecord" - } + "router": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.HookLogResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateSecurityGroupRequest": { "type": "object", "properties": { - "hook_log": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HookLog" - } + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.HookResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateSecurityGroupResponse": { "type": "object", "properties": { - "hook": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Hook" + "security_group": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.HooksResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateTemplateRequest": { "type": "object", "properties": { - "hook": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Hook" - } + "data": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.Host": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateTemplateResponse": { "type": "object", "properties": { - "cluster": { - "type": "string" - }, - "cluster_id": { - "type": "integer" - }, - "host_share": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostShare" - }, - "id": { + "template": { "type": "integer" - }, - "information_manager_mad": { - "type": "string" - }, - "instance_mad": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateUserRequest": { + "type": "object", + "properties": { + "auth": { "type": "string" }, - "instances": { + "gids": { "type": "array", "items": { "type": "integer" } }, - "monitoring": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostMonitoring" - }, - "name": { + "password": { "type": "string" }, - "prev_state": { - "type": "integer" - }, - "state": { + "username": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateUserResponse": { + "type": "object", + "properties": { + "user": { "type": "integer" - }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" } } }, - "github_com_softiron_manifold-api_cloud.HostMonitoring": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateVNCProxyRequest": { "type": "object", "properties": { - "capacity": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Capacity" - }, - "id": { + "zone": { "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateVNCProxyResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "system": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.System" + "password": { + "type": "string" }, - "timestamp": { - "type": "integer" + "token": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.HostMonitoringResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateZoneRequest": { "type": "object", "properties": { - "monitoring": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostMonitoring" - } + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.HostResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateZoneResponse": { "type": "object", "properties": { - "host": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Host" + "zone": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.HostShare": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenter": { "type": "object", "properties": { - "cpuusage": { - "type": "integer" + "clusters": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Cluster" + } }, "datastores": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Datastores" - }, - "instances_thread": { - "type": "integer" - }, - "max_cpu": { - "type": "integer" - }, - "max_mem": { - "type": "integer" - }, - "mem_usage": { - "type": "integer" + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Datastore" + } }, - "numa_nodes": { + "groups": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Node" + "type": "integer" } }, - "pcidevices": { + "hosts": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.PCI" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Host" } }, - "running_instances": { + "id": { "type": "integer" }, - "total_cpu": { - "type": "integer" + "name": { + "type": "string" }, - "total_mem": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.HostsMonitoringResponse": { - "type": "object", - "properties": { - "monitoring": { + "networks": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HostMonitoring" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Network" } + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenterTemplate" + }, + "template_text": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.HostsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenterResponse": { "type": "object", "properties": { - "hosts": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Host" - } + "datacenter": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenter" } } }, - "github_com_softiron_manifold-api_cloud.HugePage": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenterTemplate": { "type": "object", "properties": { - "free": { - "type": "integer" - }, - "pages": { - "type": "integer" - }, - "size": { - "type": "integer" + "description": { + "type": "string" }, - "usage": { - "type": "integer" + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_cloud.Image": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DataCentersResponse": { "type": "object", "properties": { - "app_clones": { + "datacenters": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenter" } + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.Datastore": { + "type": "object", + "properties": { + "base_path": { + "type": "string" }, - "clones": { + "clusters": { "type": "array", "items": { "type": "integer" } }, - "cloning_id": { - "type": "integer" - }, - "cloning_ops": { - "type": "integer" - }, - "datastore": { + "datastore_mad": { "type": "string" }, - "datastore_id": { - "type": "integer" - }, "disk_type": { "type": "integer" }, - "filesystem": { - "type": "string" - }, - "format": { - "type": "string" + "free_mb": { + "type": "integer" }, "group_id": { "type": "integer" @@ -43923,55 +43801,46 @@ "id": { "type": "integer" }, - "instances": { + "images": { "type": "array", "items": { "type": "integer" } }, - "lock": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" - }, "name": { "type": "string" }, - "path": { - "type": "string" - }, "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" }, - "persistent": { - "type": "integer" + "state": { + "type": "string", + "enum": [ + "ready", + "disabled" + ] }, - "prev_state": { - "type": "integer" + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoreTemplate" }, - "registration_time": { + "template_text": { "type": "string" }, - "running_instances": { - "type": "integer" - }, - "size": { + "total_mb": { "type": "integer" }, - "snapshots": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Snapshots" - }, - "source": { + "transfer_manager_mad": { "type": "string" }, - "state": { - "type": "integer" - }, - "target_snapshot": { - "type": "integer" - }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" - }, "type": { + "type": "string", + "enum": [ + "image", + "system", + "file" + ] + }, + "used_mb": { "type": "integer" }, "user_id": { @@ -43982,942 +43851,919 @@ } } }, - "github_com_softiron_manifold-api_cloud.ImageResponse": { - "type": "object", - "properties": { - "image": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Image" - } - } - }, - "github_com_softiron_manifold-api_cloud.ImagesResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoreResponse": { "type": "object", "properties": { - "images": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Image" - } + "datastore": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Datastore" } } }, - "github_com_softiron_manifold-api_cloud.Instance": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoreTemplate": { "type": "object", "properties": { - "deploy_id": { + "allow_orphans": { "type": "string" }, - "end_time": { + "bridge_list": { "type": "string" }, - "group_id": { - "type": "integer" + "clone_target": { + "type": "string" }, - "group_name": { + "clone_target_shared": { "type": "string" }, - "history_records": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.History" - } + "clone_target_ssh": { + "type": "string" }, - "id": { - "type": "integer" + "disk_type": { + "type": "string" }, - "last_poll": { + "disk_type_shared": { "type": "string" }, - "lcm_state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LCMState" + "disk_type_ssh": { + "type": "string" }, - "monitoring": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Monitoring" + "driver": { + "type": "string" }, - "name": { + "ds_mad": { "type": "string" }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + "ds_migrate": { + "type": "boolean" }, - "prev_lcm_state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LCMState" + "ln_target": { + "type": "string" }, - "prev_state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.State" + "ln_target_shared": { + "type": "string" }, - "reschedule": { + "ln_target_ssh": { + "type": "string" + }, + "pool_name": { + "type": "string" + }, + "restricted_dirs": { + "type": "string" + }, + "safe_dirs": { + "type": "string" + }, + "shared": { "type": "boolean" }, - "snapshots": { + "staging_dir": { + "type": "string" + }, + "tm_mad": { + "type": "string" + }, + "tm_mad_system": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.DiskSnapshots" + "type": "string" } }, - "start_time": { + "type": { "type": "string" }, - "state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.State" + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "vcenter_dc_name": { + "type": "string" }, - "user_id": { - "type": "integer" + "vcenter_dc_ref": { + "type": "string" }, - "user_name": { + "vcenter_ds_name": { "type": "string" }, - "user_template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "vcenter_ds_ref": { + "type": "string" + }, + "vcenter_host": { + "type": "string" + }, + "vcenter_instance_id": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.InstanceGroup": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Datastores": { "type": "object", "properties": { - "gid": { + "disk_usage": { "type": "integer" }, - "group_name": { - "type": "string" - }, - "id": { + "free_disk": { "type": "integer" }, - "lock": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" - }, - "name": { - "type": "string" - }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.GroupRole" - } - }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" - }, - "uid": { + "max_disk": { "type": "integer" }, - "user_name": { - "type": "string" + "used_disk": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.InstanceGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoresResponse": { "type": "object", "properties": { - "instance_group": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceGroup" + "datastore": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Datastore" + } } } }, - "github_com_softiron_manifold-api_cloud.InstanceGroupsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DeleteTemplateResponse": { "type": "object", "properties": { - "instance_groups": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceGroup" - } + "template": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.InstanceMonitoringResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DeployInstanceRequest": { "type": "object", "properties": { - "monitoring": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Monitoring" - } + "datastore": { + "type": "integer" + }, + "enforce": { + "type": "boolean" + }, + "host": { + "type": "integer" + }, + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.InstanceResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DeployInstanceResponse": { "type": "object", "properties": { "instance": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockedInstance" + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.InstanceTemplate": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Document": { "type": "object", "properties": { - "gid": { + "group_id": { "type": "integer" }, - "gname": { + "group_name": { "type": "string" }, "id": { "type": "integer" }, "lock": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Lock" }, "name": { "type": "string" }, "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" - }, - "regtime": { - "type": "integer" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" }, "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "$ref": "#/definitions/cloud.DocumentTemplate" }, - "uid": { + "template_text": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user_id": { "type": "integer" }, - "uname": { + "user_name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.InstancesAccountingResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DocumentResponse": { "type": "object", "properties": { - "accounting": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.AcctHistory" - } + "document": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Document" } } }, - "github_com_softiron_manifold-api_cloud.InstancesMonitoringResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.DocumentsResponse": { "type": "object", "properties": { - "monitoring": { + "document": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Monitoring" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Document" } } } }, - "github_com_softiron_manifold-api_cloud.InstancesResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableDatastoreRequest": { "type": "object", "properties": { - "instances": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockedInstance" - } + "enable": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.InstancesShowbackResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableDatastoreResponse": { "type": "object", "properties": { - "showback": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Showback" - } + "datastore": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.InstantiateNetworkTemplateRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableImageRequest": { "type": "object", "properties": { - "extra": { - "type": "string" - }, - "name": { - "type": "string" + "enable": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.InstantiateNetworkTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableImageResponse": { "type": "object", "properties": { - "network": { + "image": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.InstantiateRouterRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketAppRequest": { "type": "object", "properties": { - "extra": { - "type": "string" - }, - "instance_template": { - "type": "integer" - }, - "instances": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "pending": { + "enable": { "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.InstantiateRouterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketAppResponse": { "type": "object", "properties": { - "router": { + "market": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.InstantiateTemplateRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketRequest": { "type": "object", "properties": { - "data": { - "type": "string" - }, - "disk_copy": { - "type": "boolean" - }, - "hold": { + "enable": { "type": "boolean" - }, - "name": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.InstantiateTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketResponse": { "type": "object", "properties": { - "template": { + "market": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.LCMState": { - "type": "integer", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50, - 51, - 52, - 53, - 54, - 55, - 56, - 57, - 58, - 59, - 60, - 61 - ], - "x-enum-comments": { - "BootFailureLCMState": "boot_failure", - "BootLCMState": "boot", - "BootMigrateFailureLCMState": "boot_migrate_failure", - "BootMigrateLCMState": "boot_migrate", - "BootPowerOffLCMState": "boot_poweroff", - "BootStoppedFailureLCMState": "boot_stopped_failure", - "BootStoppedLCMState": "boot_stopped", - "BootSuspendedLCMState": "boot_suspended", - "BootUndeployFailureLCMState": "boot_undeploy_failure", - "BootUndeployLCMState": "boot_undeploy", - "BootUnknownLCMState": "boot_unknown", - "CleanupDeleteLCMState": "cleanup_delete", - "CleanupResubmitLCMState": "cleanup_resubmit", - "DiskSnapshotDeleteLCMState": "disk_snapshot_delete", - "DiskSnapshotDeletePowerOffLCMState": "disk_snapshot_delete_poweroff", - "DiskSnapshotDeleteSuspendedLCMState": "disk_snapshot_delete_suspended", - "DiskSnapshotLCMState": "disk_snapshot", - "DiskSnapshotPowerOffLCMState": "disk_snapshot_poweroff", - "DiskSnapshotRevertPowerOffLCMState": "disk_snapshot_revert_poweroff", - "DiskSnapshotRevertSuspendedLCMState": "disk_snapshot_revert_suspended", - "DiskSnapshotSuspendLCMState": "disk_snapshot_suspend", - "EpilogFailureLCMState": "epilog_failure", - "EpilogLCMState": "epilog", - "EpilogStopFailureLCMState": "epilog_stop_failure", - "EpilogStopLCMState": "epilog_stop", - "EpilogUndeployFailureLCMState": "epilog_undeploy_failure", - "EpilogUndeployLCMState": "epilog_undeploy", - "HotplugEpilogPowerOffLCMState": "hotplug_epilog_poweroff", - "HotplugLCMState": "hotplug", - "HotplugNICLCMState": "hotplug_nic", - "HotplugPrologPowerOffLCMState": "hotplug_prolog_poweroff", - "HotplugSaveAsLCMState": "hotplug_saveas", - "HotplugSaveAsPowerOffLCMState": "hotplug_saveas_poweroff", - "HotplugSnapshotLCMState": "hotplug_snapshot", - "HotplutSaveAsSuspendedLCMState": "hotplug_saveas_suspended", - "InitLCMState": "init", - "MigrateLCMState": "migrate", - "PrologFailureLCMState": "prolog_failure", - "PrologLCMState": "prolog", - "PrologMigrageSuspendFailureLCMState": "prolog_migrate_suspend_failure", - "PrologMigrageSuspendLCMState": "prolog_migrate_suspend", - "PrologMigrateFailureLCMState": "prolog_migrate_failure", - "PrologMigrateLCMState": "prolog_migrate", - "PrologMigratePowerOffFailureLCMState": "prolog_migrate_poweroff_failure", - "PrologMigratePowerOffLCMState": "prolog_migrate_poweroff", - "PrologMigrateUnknownFailureLCMState": "prolog_migrate_unknown_failure", - "PrologMigrateUnknownLCMState": "prolog_migrate_unknown", - "PrologResumeFailureLCMState": "prolog_resume_failure", - "PrologResumeLCMState": "prolog_resume", - "PrologUndeployFailureLCMState": "prolog_undeploy_failure", - "PrologUndeployLCMState": "prolog_undeploy", - "RunningLCMState": "running", - "SaveMigrateLCMState": "save_migrate", - "SaveStopLCMState": "save_stop", - "SaveSuspendLCMState": "save_suspend", - "ShutdownLCMState": "shutdown", - "ShutdownPowerOffLCMState": "shutdown_poweroff", - "ShutdownUndeployLCMState": "shutdown_undeploy", - "UnknownLCMState": "unknown" - }, - "x-enum-varnames": [ - "InitLCMState", - "PrologLCMState", - "BootLCMState", - "RunningLCMState", - "MigrateLCMState", - "SaveStopLCMState", - "SaveSuspendLCMState", - "SaveMigrateLCMState", - "PrologMigrateLCMState", - "PrologResumeLCMState", - "EpilogStopLCMState", - "EpilogLCMState", - "ShutdownLCMState", - "_", - "_", - "CleanupResubmitLCMState", - "UnknownLCMState", - "HotplugLCMState", - "ShutdownPowerOffLCMState", - "BootUnknownLCMState", - "BootPowerOffLCMState", - "BootSuspendedLCMState", - "BootStoppedLCMState", - "CleanupDeleteLCMState", - "HotplugSnapshotLCMState", - "HotplugNICLCMState", - "HotplugSaveAsLCMState", - "HotplugSaveAsPowerOffLCMState", - "HotplutSaveAsSuspendedLCMState", - "ShutdownUndeployLCMState", - "EpilogUndeployLCMState", - "PrologUndeployLCMState", - "BootUndeployLCMState", - "HotplugPrologPowerOffLCMState", - "HotplugEpilogPowerOffLCMState", - "BootMigrateLCMState", - "BootFailureLCMState", - "BootMigrateFailureLCMState", - "PrologMigrateFailureLCMState", - "PrologFailureLCMState", - "EpilogFailureLCMState", - "EpilogStopFailureLCMState", - "EpilogUndeployFailureLCMState", - "PrologMigratePowerOffLCMState", - "PrologMigratePowerOffFailureLCMState", - "PrologMigrageSuspendLCMState", - "PrologMigrageSuspendFailureLCMState", - "BootUndeployFailureLCMState", - "BootStoppedFailureLCMState", - "PrologResumeFailureLCMState", - "PrologUndeployFailureLCMState", - "DiskSnapshotPowerOffLCMState", - "DiskSnapshotRevertPowerOffLCMState", - "DiskSnapshotDeletePowerOffLCMState", - "DiskSnapshotSuspendLCMState", - "DiskSnapshotRevertSuspendedLCMState", - "DiskSnapshotDeleteSuspendedLCMState", - "DiskSnapshotLCMState", - "_", - "DiskSnapshotDeleteLCMState", - "PrologMigrateUnknownLCMState", - "PrologMigrateUnknownFailureLCMState" - ] - }, - "github_com_softiron_manifold-api_cloud.Lock": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableUserRequest": { "type": "object", "properties": { - "locked": { + "enable": { "type": "boolean" - }, - "owner": { - "type": "integer" - }, - "req_id": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableUserResponse": { + "type": "object", + "properties": { + "user": { "type": "integer" - }, - "time": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.LockDocumentRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableZoneRequest": { "type": "object", "properties": { - "level": { - "type": "string" - }, - "test": { + "enable": { "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.LockDocumentResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableZoneResponse": { "type": "object", "properties": { - "document": { + "zone": { "type": "integer" - }, - "time": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.LockHookRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.FlattenImageSnapshotResponse": { "type": "object", "properties": { - "level": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockLevel" - }, - "test": { - "type": "boolean" + "image": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.LockHookResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Group": { "type": "object", "properties": { - "hook": { + "admins": { + "type": "array", + "items": { + "type": "integer" + } + }, + "datastore_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDatastore" + } + }, + "default_group_quotas": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDefaultQuotas" + }, + "id": { "type": "integer" }, - "time": { + "image_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserImage" + } + }, + "instance_quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserInstance" + }, + "name": { + "type": "string" + }, + "network_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserNetwork" + } + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.GroupTemplate" + }, + "template_text": { "type": "string" + }, + "users": { + "type": "array", + "items": { + "type": "integer" + } } } }, - "github_com_softiron_manifold-api_cloud.LockImageRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.GroupQuotaResponse": { "type": "object", "properties": { - "level": { - "type": "string" - }, - "test": { - "type": "boolean" + "quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDefaultQuotas" } } }, - "github_com_softiron_manifold-api_cloud.LockImageResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.GroupResponse": { "type": "object", "properties": { - "image": { - "type": "integer" + "group": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Group" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.GroupTemplate": { + "type": "object", + "properties": { + "sunstone": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SunstoneTemplate" }, - "time": { - "type": "string" + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_cloud.LockInstanceGroupRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.GroupsResponse": { "type": "object", "properties": { - "level": { + "groups": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Group" + } + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.HoldNetworkRequest": { + "type": "object", + "properties": { + "template": { "type": "string" - }, - "test": { - "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.LockInstanceGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HoldNetworkResponse": { "type": "object", "properties": { - "group": { + "network": { "type": "integer" - }, - "time": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.LockInstanceRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Hook": { "type": "object", "properties": { - "level": { + "hook_log": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookLog" + }, + "id": { + "type": "integer" + }, + "name": { "type": "string" }, - "test": { - "type": "boolean" + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookTemplate" + }, + "template_text": { + "type": "string" + }, + "type": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.LockInstanceResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HookExecutionRecord": { "type": "object", "properties": { - "instance": { + "arguments": { + "type": "string" + }, + "execution_id": { "type": "integer" }, - "time": { + "execution_result": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookExecutionResult" + }, + "hook_id": { + "type": "integer" + }, + "remote_host": { + "type": "string" + }, + "retry": { "type": "string" + }, + "timestamp": { + "type": "integer" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_cloud.LockLevel": { - "type": "integer", - "enum": [ - 0, - 1, - 2, - 3, - 4 - ], - "x-enum-comments": { - "AdminLockLevel": "admin", - "AllLockLevel": "all", - "ManageLockLevel": "manage", - "UseLockLevel": "use" - }, - "x-enum-varnames": [ - "_", - "UseLockLevel", - "ManageLockLevel", - "AdminLockLevel", - "AllLockLevel" - ] + "github_com_softiron_manifold-api_deprecated_v2_cloud.HookExecutionResult": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "command": { + "type": "string" + }, + "stderr": { + "type": "string" + }, + "stdout": { + "type": "string" + } + } }, - "github_com_softiron_manifold-api_cloud.LockMarketAppRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HookLog": { "type": "object", "properties": { - "level": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockLevel" - }, - "test": { - "type": "boolean" + "execution_record": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookExecutionRecord" + } } } }, - "github_com_softiron_manifold-api_cloud.LockMarketAppResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HookLogResponse": { "type": "object", "properties": { - "market_app": { - "type": "integer" + "hook_log": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookLog" + } } } }, - "github_com_softiron_manifold-api_cloud.LockNetworkRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HookResponse": { "type": "object", "properties": { - "level": { - "type": "string" - }, - "test": { - "type": "boolean" + "hook": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Hook" } } }, - "github_com_softiron_manifold-api_cloud.LockNetworkResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HookTemplate": { "type": "object", "properties": { - "network": { - "type": "integer" + "arguments": { + "type": "string" }, - "time": { + "arguments_stdin": { + "type": "string" + }, + "call": { + "type": "string" + }, + "command": { + "type": "string" + }, + "lcm_state": { + "type": "string" + }, + "remote": { + "type": "string" + }, + "resource": { "type": "string" + }, + "state": { + "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_cloud.LockNetworkTemplateRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HooksResponse": { "type": "object", "properties": { - "level": { - "type": "string" - }, - "test": { - "type": "boolean" + "hook": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Hook" + } } } }, - "github_com_softiron_manifold-api_cloud.LockNetworkTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Host": { "type": "object", "properties": { - "template": { + "cluster": { + "type": "string" + }, + "cluster_id": { "type": "integer" }, - "time": { + "host_share": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostShare" + }, + "id": { + "type": "integer" + }, + "information_manager_mad": { + "type": "string" + }, + "instance_mad": { + "type": "string" + }, + "instances": { + "type": "array", + "items": { + "type": "integer" + } + }, + "monitoring": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoring" + }, + "name": { + "type": "string" + }, + "prev_state": { + "type": "integer" + }, + "state": { + "type": "integer" + }, + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostTemplate" + }, + "template_text": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.LockRouterRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoring": { "type": "object", "properties": { - "level": { - "type": "string" + "capacity": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Capacity" }, - "test": { - "type": "boolean" + "id": { + "type": "integer" + }, + "system": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.System" + }, + "timestamp": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.LockRouterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoringResponse": { "type": "object", "properties": { - "router": { - "type": "integer" - }, - "time": { - "type": "string" + "monitoring": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoring" + } } } }, - "github_com_softiron_manifold-api_cloud.LockTemplateRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HostResponse": { "type": "object", "properties": { - "level": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LockLevel" - }, - "test": { - "type": "boolean" + "host": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Host" } } }, - "github_com_softiron_manifold-api_cloud.LockTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HostShare": { "type": "object", "properties": { - "template": { + "cpuusage": { + "type": "integer" + }, + "datastores": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Datastores" + }, + "instances_thread": { + "type": "integer" + }, + "max_cpu": { + "type": "integer" + }, + "max_mem": { + "type": "integer" + }, + "mem_usage": { + "type": "integer" + }, + "numa_nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Node" + } + }, + "pcidevices": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.PCI" + } + }, + "running_instances": { + "type": "integer" + }, + "total_cpu": { + "type": "integer" + }, + "total_mem": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.LockedInstance": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HostTemplate": { "type": "object", "properties": { - "deploy_id": { + "arch": { "type": "string" }, - "end_time": { + "cgroups_version": { "type": "string" }, - "group_id": { + "cpuspeed": { "type": "integer" }, - "group_name": { + "hostname": { "type": "string" }, - "history_records": { + "hypervisor": { + "type": "string" + }, + "im_mad": { + "type": "string" + }, + "instance": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.History" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostTemplateInstance" } }, - "id": { - "type": "integer" + "instance_mad": { + "type": "string" }, - "last_poll": { + "kvm_cpumodel": { "type": "string" }, - "lcm_state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LCMState" + "kvm_cpumodels": { + "type": "array", + "items": { + "type": "string" + } }, - "lock": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + "kvm_machines": { + "type": "array", + "items": { + "type": "string" + } }, - "monitoring": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Monitoring" + "modelname": { + "type": "string" }, - "name": { + "reserved_cpu": { "type": "string" }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + "reserved_mem": { + "type": "string" }, - "prev_lcm_state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.LCMState" + "total_wilds": { + "type": "integer" }, - "prev_state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.State" + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "reschedule": { - "type": "boolean" + "vcenter_ccrref": { + "type": "string" }, - "snapshots": { + "vcenter_dsref": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.DiskSnapshots" + "type": "string" } }, - "start_time": { + "vcenter_host": { "type": "string" }, - "state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.State" + "vcenter_instance_id": { + "type": "string" }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "vcenter_name": { + "type": "string" }, - "user_id": { - "type": "integer" + "vcenter_password": { + "type": "string" }, - "user_name": { + "vcenter_resource_pool_info": { + "type": "array", + "items": { + "type": "string" + } + }, + "vcenter_user": { "type": "string" }, - "user_template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "vcenter_version": { + "type": "string" + }, + "version": { + "type": "string" + }, + "wilds": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.MarketAppResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HostTemplateInstance": { "type": "object", "properties": { - "application": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketplaceApp" + "deploy_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "monitor": { + "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_cloud.MarketAppsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HostsMonitoringResponse": { "type": "object", "properties": { - "applications": { + "monitoring": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.MarketplaceApp" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoring" } } } }, - "github_com_softiron_manifold-api_cloud.MarketResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HostsResponse": { "type": "object", "properties": { - "market": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Marketplace" + "hosts": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Host" + } } } }, - "github_com_softiron_manifold-api_cloud.Marketplace": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.HugePage": { "type": "object", "properties": { - "free_mb": { + "free": { "type": "integer" }, - "gid": { + "pages": { "type": "integer" }, - "group_name": { - "type": "string" - }, - "id": { + "size": { "type": "integer" }, - "market_mad": { - "type": "string" - }, - "marketplace_apps": { + "usage": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.Image": { + "type": "object", + "properties": { + "app_clones": { "type": "array", "items": { "type": "integer" } }, - "name": { - "type": "string" - }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + "clones": { + "type": "array", + "items": { + "type": "integer" + } }, - "state": { + "cloning_id": { "type": "integer" }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" - }, - "total_mb": { + "cloning_ops": { "type": "integer" }, - "uid": { - "type": "integer" + "datastore": { + "type": "string" }, - "used_mb": { + "datastore_id": { "type": "integer" }, - "user_name": { - "type": "string" - }, - "zone_id": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.MarketplaceApp": { - "type": "object", - "properties": { - "apptemplate64": { - "type": "string" + "disk_type": { + "type": "integer" }, - "description": { + "filesystem": { "type": "string" }, "format": { "type": "string" }, - "gid": { + "group_id": { "type": "integer" }, "group_name": { @@ -44926,381 +44772,372 @@ "id": { "type": "integer" }, - "lock": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" - }, - "marketplace": { - "type": "string" - }, - "marketplace_id": { - "type": "integer" + "instances": { + "type": "array", + "items": { + "type": "integer" + } }, - "md5": { - "type": "string" + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Lock" }, "name": { "type": "string" }, - "origin_id": { + "path": { "type": "string" }, "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" }, - "regtime": { + "persistent": { + "type": "integer" + }, + "prev_state": { + "type": "integer" + }, + "registration_time": { + "type": "string" + }, + "running_instances": { "type": "integer" }, "size": { "type": "integer" }, + "snapshots": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Snapshots" + }, "source": { "type": "string" }, "state": { "type": "integer" }, + "target_snapshot": { + "type": "integer" + }, "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ImageTemplate" + }, + "template_text": { + "type": "string" }, "type": { "type": "integer" }, - "uid": { + "user_id": { "type": "integer" }, "user_name": { "type": "string" - }, - "version": { - "type": "string" - }, - "zone_id": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.MarketsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ImageResponse": { "type": "object", "properties": { - "market": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Marketplace" - } + "image": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Image" } } }, - "github_com_softiron_manifold-api_cloud.Memory": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ImageTemplate": { "type": "object", "properties": { - "distance": { + "dev_prefix": { "type": "string" }, - "free": { - "type": "integer" + "driver": { + "type": "string" }, - "total": { - "type": "integer" + "from_app": { + "type": "string" }, - "usage": { - "type": "integer" + "from_app_md5": { + "type": "string" }, - "used": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.MoveInstanceRequest": { - "type": "object", - "properties": { - "enforce_capacity": { - "description": "TODO: probably should reverse this logic", - "type": "boolean" + "from_app_name": { + "type": "string" }, - "host": { + "size": { "type": "integer" }, - "live_migrate": { - "type": "boolean" + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "migration_type": { + "vcenter_imported": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.MoveInstanceResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ImagesResponse": { "type": "object", "properties": { - "instance": { - "type": "integer" + "images": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Image" + } } } }, - "github_com_softiron_manifold-api_cloud.Network": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Instance": { "type": "object", "properties": { - "arpool": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_network.AddressRange" - } + "deploy_id": { + "type": "string" }, - "bridge": { + "end_time": { "type": "string" }, - "bridge_type": { + "group_id": { + "type": "integer" + }, + "group_name": { "type": "string" }, - "clusters": { + "history_records": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.History" } }, - "gid": { + "id": { "type": "integer" }, - "group_name": { + "last_poll": { "type": "string" }, - "id": { - "type": "integer" + "lcm_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LCMState" }, - "lock": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + "monitoring": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Monitoring" }, "name": { "type": "string" }, - "outer_vlanid": { - "type": "string" + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" }, - "outer_vlanidautomatic": { - "type": "string" + "prev_lcm_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LCMState" }, - "parent_network_id": { - "type": "string" + "prev_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.State" }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + "reschedule": { + "type": "boolean" }, - "phydev": { - "type": "string" + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.DiskSnapshots" + } }, - "prev_state": { - "type": "integer" + "start_time": { + "type": "string" }, "state": { - "type": "integer" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.State" }, "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Template" }, - "uid": { - "type": "integer" + "template_text": { + "type": "string" }, - "used_leases": { + "user_id": { "type": "integer" }, "user_name": { "type": "string" }, - "vlanid": { + "user_template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.UserTemplate" + }, + "user_template_text": { "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroup": { + "type": "object", + "properties": { + "gid": { + "type": "integer" }, - "vlanidautomatic": { + "group_name": { "type": "string" }, - "vnmad": { + "id": { + "type": "integer" + }, + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Lock" + }, + "name": { "type": "string" }, - "vrouters": { + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" + }, + "roles": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.GroupRole" } + }, + "template": { + "$ref": "#/definitions/cloud.InstanceGroupTemplate" + }, + "template_text": { + "type": "string" + }, + "uid": { + "type": "integer" + }, + "user_name": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.NetworkResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroupResponse": { "type": "object", "properties": { - "network": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Network" + "instance_group": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroup" } } }, - "github_com_softiron_manifold-api_cloud.NetworkTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroupsResponse": { "type": "object", "properties": { - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "instance_groups": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroup" + } } } }, - "github_com_softiron_manifold-api_cloud.NetworksResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceMonitoringResponse": { "type": "object", "properties": { - "networks": { + "monitoring": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Network" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Monitoring" } } } }, - "github_com_softiron_manifold-api_cloud.Node": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceResponse": { "type": "object", "properties": { - "core": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Core" - } - }, - "hugepage": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.HugePage" - } - }, - "memory": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Memory" - }, - "node_id": { - "type": "integer" + "instance": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockedInstance" } } }, - "github_com_softiron_manifold-api_cloud.PCI": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceTemplate": { "type": "object", "properties": { - "address": { - "type": "string" - }, - "bus": { - "type": "string" - }, - "class": { - "type": "string" + "gid": { + "type": "integer" }, - "class_name": { + "gname": { "type": "string" }, - "device": { - "type": "string" + "id": { + "type": "integer" }, - "device_name": { - "type": "string" + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Lock" }, - "domain": { + "name": { "type": "string" }, - "function": { - "type": "string" + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" }, - "instance_id": { + "regtime": { "type": "integer" }, - "numa_node": { - "type": "string" - }, - "short_address": { - "type": "string" - }, - "slot": { - "type": "string" - }, - "type": { - "type": "string" + "template": { + "$ref": "#/definitions/insttmpl.Template" }, - "vendor": { + "template_text": { "type": "string" }, - "vendor_name": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.Period": { - "type": "object", - "properties": { - "end": { + "uid": { "type": "integer" }, - "start": { - "type": "integer" + "uname": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.Permissions": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesAccountingResponse": { "type": "object", "properties": { - "group": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.perms" - }, - "other": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.perms" - }, - "owner": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.perms" + "accounting": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.AcctHistory" + } } } }, - "github_com_softiron_manifold-api_cloud.RaftStatus": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesMonitoringResponse": { "type": "object", "properties": { - "commit": { - "type": "integer" - }, - "fed_log_index": { - "type": "integer" - }, - "log_index": { - "type": "integer" - }, - "log_term": { - "type": "integer" - }, - "server_id": { - "type": "integer" - }, - "state": { - "type": "integer" - }, - "term": { - "type": "integer" - }, - "voted_for": { - "type": "integer" + "monitoring": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Monitoring" + } } } }, - "github_com_softiron_manifold-api_cloud.RecoverInstanceRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesResponse": { "type": "object", "properties": { - "operation": { - "type": "string" + "instances": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockedInstance" + } } } }, - "github_com_softiron_manifold-api_cloud.RecoverInstanceResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstancesShowbackResponse": { "type": "object", "properties": { - "instance": { - "type": "integer" + "showback": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Showback" + } } } }, - "github_com_softiron_manifold-api_cloud.RecoverNetworkRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateNetworkTemplateRequest": { "type": "object", "properties": { - "recovery": { + "extra": { + "type": "string" + }, + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RecoverNetworkResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateNetworkTemplateResponse": { "type": "object", "properties": { "network": { @@ -45308,287 +45145,498 @@ } } }, - "github_com_softiron_manifold-api_cloud.ReleaseNetworkRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateRouterRequest": { "type": "object", "properties": { - "template": { + "extra": { "type": "string" + }, + "instance_template": { + "type": "integer" + }, + "instances": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "pending": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.ReleaseNetworkResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateRouterResponse": { "type": "object", "properties": { - "network": { + "router": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.RenameClusterRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateTemplateRequest": { "type": "object", "properties": { + "data": { + "type": "string" + }, + "disk_copy": { + "type": "boolean" + }, + "hold": { + "type": "boolean" + }, "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RenameClusterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.InstantiateTemplateResponse": { "type": "object", "properties": { - "cluster": { + "template": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.RenameDataCenterRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } + "github_com_softiron_manifold-api_deprecated_v2_cloud.LCMState": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61 + ], + "x-enum-comments": { + "BootFailureLCMState": "boot_failure", + "BootLCMState": "boot", + "BootMigrateFailureLCMState": "boot_migrate_failure", + "BootMigrateLCMState": "boot_migrate", + "BootPowerOffLCMState": "boot_poweroff", + "BootStoppedFailureLCMState": "boot_stopped_failure", + "BootStoppedLCMState": "boot_stopped", + "BootSuspendedLCMState": "boot_suspended", + "BootUndeployFailureLCMState": "boot_undeploy_failure", + "BootUndeployLCMState": "boot_undeploy", + "BootUnknownLCMState": "boot_unknown", + "CleanupDeleteLCMState": "cleanup_delete", + "CleanupResubmitLCMState": "cleanup_resubmit", + "DiskSnapshotDeleteLCMState": "disk_snapshot_delete", + "DiskSnapshotDeletePowerOffLCMState": "disk_snapshot_delete_poweroff", + "DiskSnapshotDeleteSuspendedLCMState": "disk_snapshot_delete_suspended", + "DiskSnapshotLCMState": "disk_snapshot", + "DiskSnapshotPowerOffLCMState": "disk_snapshot_poweroff", + "DiskSnapshotRevertPowerOffLCMState": "disk_snapshot_revert_poweroff", + "DiskSnapshotRevertSuspendedLCMState": "disk_snapshot_revert_suspended", + "DiskSnapshotSuspendLCMState": "disk_snapshot_suspend", + "EpilogFailureLCMState": "epilog_failure", + "EpilogLCMState": "epilog", + "EpilogStopFailureLCMState": "epilog_stop_failure", + "EpilogStopLCMState": "epilog_stop", + "EpilogUndeployFailureLCMState": "epilog_undeploy_failure", + "EpilogUndeployLCMState": "epilog_undeploy", + "HotplugEpilogPowerOffLCMState": "hotplug_epilog_poweroff", + "HotplugLCMState": "hotplug", + "HotplugNICLCMState": "hotplug_nic", + "HotplugPrologPowerOffLCMState": "hotplug_prolog_poweroff", + "HotplugSaveAsLCMState": "hotplug_saveas", + "HotplugSaveAsPowerOffLCMState": "hotplug_saveas_poweroff", + "HotplugSnapshotLCMState": "hotplug_snapshot", + "HotplutSaveAsSuspendedLCMState": "hotplug_saveas_suspended", + "InitLCMState": "init", + "MigrateLCMState": "migrate", + "PrologFailureLCMState": "prolog_failure", + "PrologLCMState": "prolog", + "PrologMigrageSuspendFailureLCMState": "prolog_migrate_suspend_failure", + "PrologMigrageSuspendLCMState": "prolog_migrate_suspend", + "PrologMigrateFailureLCMState": "prolog_migrate_failure", + "PrologMigrateLCMState": "prolog_migrate", + "PrologMigratePowerOffFailureLCMState": "prolog_migrate_poweroff_failure", + "PrologMigratePowerOffLCMState": "prolog_migrate_poweroff", + "PrologMigrateUnknownFailureLCMState": "prolog_migrate_unknown_failure", + "PrologMigrateUnknownLCMState": "prolog_migrate_unknown", + "PrologResumeFailureLCMState": "prolog_resume_failure", + "PrologResumeLCMState": "prolog_resume", + "PrologUndeployFailureLCMState": "prolog_undeploy_failure", + "PrologUndeployLCMState": "prolog_undeploy", + "RunningLCMState": "running", + "SaveMigrateLCMState": "save_migrate", + "SaveStopLCMState": "save_stop", + "SaveSuspendLCMState": "save_suspend", + "ShutdownLCMState": "shutdown", + "ShutdownPowerOffLCMState": "shutdown_poweroff", + "ShutdownUndeployLCMState": "shutdown_undeploy", + "UnknownLCMState": "unknown" + }, + "x-enum-varnames": [ + "InitLCMState", + "PrologLCMState", + "BootLCMState", + "RunningLCMState", + "MigrateLCMState", + "SaveStopLCMState", + "SaveSuspendLCMState", + "SaveMigrateLCMState", + "PrologMigrateLCMState", + "PrologResumeLCMState", + "EpilogStopLCMState", + "EpilogLCMState", + "ShutdownLCMState", + "_", + "_", + "CleanupResubmitLCMState", + "UnknownLCMState", + "HotplugLCMState", + "ShutdownPowerOffLCMState", + "BootUnknownLCMState", + "BootPowerOffLCMState", + "BootSuspendedLCMState", + "BootStoppedLCMState", + "CleanupDeleteLCMState", + "HotplugSnapshotLCMState", + "HotplugNICLCMState", + "HotplugSaveAsLCMState", + "HotplugSaveAsPowerOffLCMState", + "HotplutSaveAsSuspendedLCMState", + "ShutdownUndeployLCMState", + "EpilogUndeployLCMState", + "PrologUndeployLCMState", + "BootUndeployLCMState", + "HotplugPrologPowerOffLCMState", + "HotplugEpilogPowerOffLCMState", + "BootMigrateLCMState", + "BootFailureLCMState", + "BootMigrateFailureLCMState", + "PrologMigrateFailureLCMState", + "PrologFailureLCMState", + "EpilogFailureLCMState", + "EpilogStopFailureLCMState", + "EpilogUndeployFailureLCMState", + "PrologMigratePowerOffLCMState", + "PrologMigratePowerOffFailureLCMState", + "PrologMigrageSuspendLCMState", + "PrologMigrageSuspendFailureLCMState", + "BootUndeployFailureLCMState", + "BootStoppedFailureLCMState", + "PrologResumeFailureLCMState", + "PrologUndeployFailureLCMState", + "DiskSnapshotPowerOffLCMState", + "DiskSnapshotRevertPowerOffLCMState", + "DiskSnapshotDeletePowerOffLCMState", + "DiskSnapshotSuspendLCMState", + "DiskSnapshotRevertSuspendedLCMState", + "DiskSnapshotDeleteSuspendedLCMState", + "DiskSnapshotLCMState", + "_", + "DiskSnapshotDeleteLCMState", + "PrologMigrateUnknownLCMState", + "PrologMigrateUnknownFailureLCMState" + ] }, - "github_com_softiron_manifold-api_cloud.RenameDataCenterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Lock": { "type": "object", "properties": { - "datacenter": { + "locked": { + "type": "boolean" + }, + "owner": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RenameDatastoreRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.RenameDatastoreResponse": { - "type": "object", - "properties": { - "datastore": { + }, + "req_id": { "type": "integer" + }, + "time": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RenameDocumentRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockDocumentRequest": { "type": "object", "properties": { - "name": { + "level": { "type": "string" + }, + "test": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.RenameDocumentResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockDocumentResponse": { "type": "object", "properties": { "document": { "type": "integer" + }, + "time": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RenameHookRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockHookRequest": { "type": "object", "properties": { - "name": { - "type": "string" + "level": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockLevel" + }, + "test": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.RenameHookResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockHookResponse": { "type": "object", "properties": { "hook": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RenameHostRequest": { - "type": "object", - "properties": { - "hostname": { + }, + "time": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RenameHostResponse": { - "type": "object", - "properties": { - "host": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RenameImageRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockImageRequest": { "type": "object", "properties": { - "name": { + "level": { "type": "string" + }, + "test": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.RenameImageResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockImageResponse": { "type": "object", "properties": { "image": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RenameInstanceDiskSnapshotRequest": { - "type": "object", - "properties": { - "name": { + }, + "time": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RenameInstanceDiskSnapshotResponse": { - "type": "object", - "properties": { - "instance": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RenameInstanceGroupRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceGroupRequest": { "type": "object", "properties": { - "name": { + "level": { "type": "string" + }, + "test": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.RenameInstanceGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceGroupResponse": { "type": "object", "properties": { "group": { "type": "integer" + }, + "time": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RenameInstanceRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceRequest": { "type": "object", "properties": { - "name": { + "level": { "type": "string" + }, + "test": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.RenameInstanceResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockInstanceResponse": { "type": "object", "properties": { "instance": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RenameMarketAppRequest": { - "type": "object", - "properties": { - "name": { + }, + "time": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RenameMarketAppResponse": { - "type": "object", - "properties": { - "market_app": { - "type": "integer" - } - } + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockLevel": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3, + 4 + ], + "x-enum-comments": { + "AdminLockLevel": "admin", + "AllLockLevel": "all", + "ManageLockLevel": "manage", + "UseLockLevel": "use" + }, + "x-enum-varnames": [ + "_", + "UseLockLevel", + "ManageLockLevel", + "AdminLockLevel", + "AllLockLevel" + ] }, - "github_com_softiron_manifold-api_cloud.RenameMarketRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockMarketAppRequest": { "type": "object", "properties": { - "name": { - "type": "string" + "level": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockLevel" + }, + "test": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.RenameMarketResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockMarketAppResponse": { "type": "object", "properties": { - "market": { + "market_app": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.RenameNetworkRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkRequest": { "type": "object", "properties": { - "name": { + "level": { "type": "string" + }, + "test": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.RenameNetworkResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkResponse": { "type": "object", "properties": { "network": { "type": "integer" + }, + "time": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RenameNetworkTemplateRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkTemplateRequest": { "type": "object", "properties": { - "name": { + "level": { "type": "string" + }, + "test": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.RenameNetworkTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockNetworkTemplateResponse": { "type": "object", "properties": { "template": { "type": "integer" + }, + "time": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RenameRouterRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockRouterRequest": { "type": "object", "properties": { - "name": { + "level": { "type": "string" + }, + "test": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.RenameRouterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockRouterResponse": { "type": "object", "properties": { "router": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RenameSecurityGroupRequest": { - "type": "object", - "properties": { - "name": { + }, + "time": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RenameSecurityGroupResponse": { - "type": "object", - "properties": { - "security_group": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RenameTemplateRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockTemplateRequest": { "type": "object", "properties": { - "name": { - "type": "string" + "level": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockLevel" + }, + "test": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.RenameTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockTemplateResponse": { "type": "object", "properties": { "template": { @@ -45596,181 +45644,123 @@ } } }, - "github_com_softiron_manifold-api_cloud.RenameZoneRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.RenameZoneResponse": { - "type": "object", - "properties": { - "zone": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.ReserveNetworkRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.LockedInstance": { "type": "object", "properties": { - "template": { + "deploy_id": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.ReserveNetworkResponse": { - "type": "object", - "properties": { - "network": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.ResizeInstanceDiskRequest": { - "type": "object", - "properties": { - "size": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.ResizeInstanceDiskResponse": { - "type": "object", - "properties": { - "instance": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.ResizeInstanceRequest": { - "type": "object", - "properties": { - "enforce_capacity": { - "description": "TODO: probably should reverse this logic", - "type": "boolean" }, - "template": { + "end_time": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.ResizeInstanceResponse": { - "type": "object", - "properties": { - "instance": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RetryHookRequest": { - "type": "object", - "properties": { - "execution": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RetryHookResponse": { - "type": "object", - "properties": { - "hook": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RevertImageSnapshotResponse": { - "type": "object", - "properties": { - "image": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RevertInstanceDiskSnapshotResponse": { - "type": "object", - "properties": { - "snapshot": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.RevertInstanceSnapshotResponse": { - "type": "object", - "properties": { - "instance": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.Router": { - "type": "object", - "properties": { - "gid": { + }, + "group_id": { "type": "integer" }, "group_name": { "type": "string" }, - "id": { - "type": "integer" - }, - "instances": { + "history_records": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.History" } }, + "id": { + "type": "integer" + }, + "last_poll": { + "type": "string" + }, + "lcm_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LCMState" + }, "lock": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Lock" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Lock" + }, + "monitoring": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Monitoring" }, "name": { "type": "string" }, "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" + }, + "prev_lcm_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LCMState" + }, + "prev_state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.State" + }, + "reschedule": { + "type": "boolean" + }, + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.DiskSnapshots" + } + }, + "start_time": { + "type": "string" + }, + "state": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.State" }, "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Template" }, - "uid": { + "template_text": { + "type": "string" + }, + "user_id": { "type": "integer" }, "user_name": { "type": "string" + }, + "user_template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.UserTemplate" + }, + "user_template_text": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.RouterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.MarketAppResponse": { "type": "object", "properties": { - "router": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Router" + "application": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MarketplaceApp" } } }, - "github_com_softiron_manifold-api_cloud.RoutersResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.MarketAppsResponse": { "type": "object", "properties": { - "routers": { + "applications": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Router" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.MarketplaceApp" } } } }, - "github_com_softiron_manifold-api_cloud.SecurityGroup": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.MarketResponse": { "type": "object", "properties": { - "error_instances": { - "type": "array", - "items": { - "type": "integer" - } + "market": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Marketplace" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.Marketplace": { + "type": "object", + "properties": { + "free_mb": { + "type": "integer" }, - "group_id": { + "gid": { "type": "integer" }, "group_name": { @@ -45779,166 +45769,171 @@ "id": { "type": "integer" }, - "name": { + "market_mad": { "type": "string" }, - "outdated_instances": { + "marketplace_apps": { "type": "array", "items": { "type": "integer" } }, + "name": { + "type": "string" + }, "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Permissions" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "state": { + "type": "integer" }, - "updated_instances": { - "type": "array", - "items": { - "type": "integer" - } + "template_text": { + "type": "string" }, - "updating_instances": { - "type": "array", - "items": { - "type": "integer" - } + "total_mb": { + "type": "integer" }, - "user_id": { + "uid": { + "type": "integer" + }, + "used_mb": { "type": "integer" }, "user_name": { "type": "string" + }, + "zone_id": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.SecurityGroupResponse": { - "type": "object", - "properties": { - "security_group": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SecurityGroup" - } - } - }, - "github_com_softiron_manifold-api_cloud.SecurityGroupsResponse": { - "type": "object", - "properties": { - "security_group": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.SecurityGroup" - } - } - } - }, - "github_com_softiron_manifold-api_cloud.Server": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.MarketplaceApp": { "type": "object", "properties": { - "commit": { + "apptemplate64": { + "type": "string" + }, + "description": { + "type": "string" + }, + "format": { + "type": "string" + }, + "gid": { "type": "integer" }, - "endpoint": { + "group_name": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Lock" + }, + "marketplace": { + "type": "string" + }, + "marketplace_id": { + "type": "integer" + }, + "md5": { + "type": "string" + }, + "name": { + "type": "string" + }, + "origin_id": { "type": "string" }, - "fed_log_index": { - "type": "integer" + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" }, - "id": { + "regtime": { "type": "integer" }, - "log_index": { + "size": { "type": "integer" }, - "name": { + "source": { "type": "string" }, "state": { "type": "integer" }, - "term": { + "template": { + "$ref": "#/definitions/cloud.MarketplaceAppTemplate" + }, + "template_text": { + "type": "string" + }, + "type": { "type": "integer" }, - "voted_for": { + "uid": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.SetGroupQuotaRequest": { - "type": "object", - "properties": { - "template": { + }, + "user_name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "zone_id": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.SetGroupQuotaResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.MarketsResponse": { "type": "object", "properties": { - "group": { - "type": "integer" + "market": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Marketplace" + } } } }, - "github_com_softiron_manifold-api_cloud.SetHostStatusRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Memory": { "type": "object", "properties": { - "status": { + "distance": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.SetHostStatusResponse": { - "type": "object", - "properties": { - "host": { + }, + "free": { + "type": "integer" + }, + "total": { + "type": "integer" + }, + "usage": { + "type": "integer" + }, + "used": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.SetImagePersistentRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.MoveInstanceRequest": { "type": "object", "properties": { - "persistent": { + "enforce_capacity": { + "description": "TODO: probably should reverse this logic", "type": "boolean" - } - } - }, - "github_com_softiron_manifold-api_cloud.SetImagePersistentResponse": { - "type": "object", - "properties": { - "image": { + }, + "host": { "type": "integer" + }, + "live_migrate": { + "type": "boolean" + }, + "migration_type": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.SetInstanceActionRequest": { - "type": "object", - "properties": { - "action": { - "description": "Action to perform", - "type": "string", - "enum": [ - "hold", - "poweroff", - "poweroff-hard", - "reboot", - "reboot-hard", - "release", - "resched", - "resume", - "stop", - "suspend", - "terminate", - "terminate-hard", - "undeploy", - "undeploy-hard" - ] - } - } - }, - "github_com_softiron_manifold-api_cloud.SetInstanceActionResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.MoveInstanceResponse": { "type": "object", "properties": { "instance": { @@ -45946,30 +45941,26 @@ } } }, - "github_com_softiron_manifold-api_cloud.SetUserQuotaRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Network": { "type": "object", "properties": { - "template": { + "arpool": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_network.AddressRange" + } + }, + "bridge": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.SetUserQuotaResponse": { - "type": "object", - "properties": { - "user": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.Showback": { - "type": "object", - "properties": { - "cpucost": { - "type": "number" }, - "disk_cost": { - "type": "number" + "bridge_type": { + "type": "string" + }, + "clusters": { + "type": "array", + "items": { + "type": "integer" + } }, "gid": { "type": "integer" @@ -45977,502 +45968,503 @@ "group_name": { "type": "string" }, - "hours": { - "type": "number" - }, - "instance": { + "id": { "type": "integer" }, - "instance_name": { + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Lock" + }, + "name": { "type": "string" }, - "memory_cost": { - "type": "number" + "outer_vlanid": { + "type": "string" }, - "month": { + "outer_vlanidautomatic": { + "type": "string" + }, + "parent_network_id": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" + }, + "phydev": { + "type": "string" + }, + "prev_state": { "type": "integer" }, - "rhours": { - "type": "number" + "state": { + "type": "integer" }, - "total_cost": { - "type": "number" + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_network.Template" + }, + "template_text": { + "type": "string" }, "uid": { "type": "integer" }, + "used_leases": { + "type": "integer" + }, "user_name": { "type": "string" }, - "year": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.System": { - "type": "object", - "properties": { - "netrx": { - "type": "integer" + "vlanid": { + "type": "string" }, - "nettx": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.SystemConfigResponse": { - "type": "object", - "properties": { - "config": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Configuration" + "vlanidautomatic": { + "type": "string" + }, + "vnmad": { + "type": "string" + }, + "vrouters": { + "type": "array", + "items": { + "type": "integer" + } } } }, - "github_com_softiron_manifold-api_cloud.SystemVersionResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.NetworkResponse": { "type": "object", "properties": { - "version": { - "type": "string" + "network": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Network" } } }, - "github_com_softiron_manifold-api_cloud.Template": { - "type": "object", - "additionalProperties": {} - }, - "github_com_softiron_manifold-api_cloud.TemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.NetworkTemplateResponse": { "type": "object", "properties": { "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceTemplate" + "$ref": "#/definitions/nettmpl.Template" } } }, - "github_com_softiron_manifold-api_cloud.TemplatesResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.NetworksResponse": { "type": "object", "properties": { - "template": { + "networks": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.InstanceTemplate" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Network" } } } }, - "github_com_softiron_manifold-api_cloud.UnlockDocumentResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Node": { "type": "object", "properties": { - "document": { + "core": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Core" + } + }, + "hugepage": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HugePage" + } + }, + "memory": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Memory" + }, + "node_id": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UnlockHookRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.PCI": { "type": "object", "properties": { - "lock": { + "address": { + "type": "string" + }, + "bus": { + "type": "string" + }, + "class": { + "type": "string" + }, + "class_name": { + "type": "string" + }, + "device": { + "type": "string" + }, + "device_name": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "function": { + "type": "string" + }, + "instance_id": { "type": "integer" + }, + "numa_node": { + "type": "string" + }, + "short_address": { + "type": "string" + }, + "slot": { + "type": "string" + }, + "type": { + "type": "string" + }, + "vendor": { + "type": "string" + }, + "vendor_name": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UnlockHookResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Period": { "type": "object", "properties": { - "hook": { + "end": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.UnlockImageResponse": { - "type": "object", - "properties": { - "image": { + }, + "start": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UnlockInstanceGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions": { "type": "object", "properties": { "group": { - "type": "integer" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.perms" + }, + "other": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.perms" + }, + "owner": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.perms" } } }, - "github_com_softiron_manifold-api_cloud.UnlockInstanceResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RaftStatus": { "type": "object", "properties": { - "instance": { + "commit": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.UnlockMarketAppResponse": { - "type": "object", - "properties": { - "market_app": { + }, + "fed_log_index": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.UnlockNetworkResponse": { - "type": "object", - "properties": { - "network": { + }, + "log_index": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.UnlockNetworkTemplateResponse": { - "type": "object", - "properties": { - "template": { + }, + "log_term": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.UnlockRouterResponse": { - "type": "object", - "properties": { - "router": { + }, + "server_id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.UnlockTemplateResponse": { - "type": "object", - "properties": { - "template": { + }, + "state": { + "type": "integer" + }, + "term": { + "type": "integer" + }, + "voted_for": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateClusterRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverInstanceRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "operation": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateClusterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverInstanceResponse": { "type": "object", "properties": { - "cluster": { + "instance": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateDataCenterRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverNetworkRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "recovery": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateDataCenterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RecoverNetworkResponse": { "type": "object", "properties": { - "datacenter": { + "network": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateDatastoreRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ReleaseNetworkRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, "template": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateDatastoreResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ReleaseNetworkResponse": { "type": "object", "properties": { - "datastore": { + "network": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateDefaultUserQuotaRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameDocumentRequest": { "type": "object", "properties": { - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateDefaultUserQuotaResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameDocumentResponse": { "type": "object", "properties": { - "quota": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" + "document": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateDocumentRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameHookRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateDocumentResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameHookResponse": { "type": "object", "properties": { - "document": { + "hook": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateGroupQuotaRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameImageRequest": { "type": "object", "properties": { - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateGroupQuotaResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameImageResponse": { "type": "object", "properties": { - "quotas": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" + "image": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateGroupRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceDiskSnapshotRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceDiskSnapshotResponse": { "type": "object", "properties": { - "group": { + "instance": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateHookRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceGroupRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateHookResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceGroupResponse": { "type": "object", "properties": { - "hook": { + "group": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateHostRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateHostResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameInstanceResponse": { "type": "object", "properties": { - "host": { + "instance": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateImageRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketAppRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateImageResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketAppResponse": { "type": "object", "properties": { - "image": { + "market_app": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateInstanceConfigRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateInstanceConfigResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameMarketResponse": { "type": "object", "properties": { - "instance": { + "market": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateInstanceGroupRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateInstanceGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkResponse": { "type": "object", "properties": { - "group": { + "network": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateInstanceScheduleRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkTemplateRequest": { "type": "object", - "properties": { - "action": { - "type": "integer" - }, - "template": { + "properties": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateInstanceScheduleResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameNetworkTemplateResponse": { "type": "object", "properties": { - "instance": { + "template": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateInstanceTemplateRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameRouterRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateInstanceTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameRouterResponse": { "type": "object", "properties": { - "instance": { + "router": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateMarketAppRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameSecurityGroupRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateMarketAppResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameSecurityGroupResponse": { "type": "object", "properties": { - "market_app": { + "security_group": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateMarketRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameTemplateRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateMarketResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameTemplateResponse": { "type": "object", "properties": { - "market": { + "template": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateNetworkAddressRangeRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameZoneRequest": { "type": "object", "properties": { - "template": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateNetworkAddressRangeResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RenameZoneResponse": { "type": "object", "properties": { - "network": { + "zone": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateNetworkRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ReserveNetworkRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, "template": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateNetworkResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ReserveNetworkResponse": { "type": "object", "properties": { "network": { @@ -46480,29 +46472,27 @@ } } }, - "github_com_softiron_manifold-api_cloud.UpdateNetworkTemplateRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceDiskRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { - "type": "string" + "size": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateNetworkTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceDiskResponse": { "type": "object", "properties": { - "template": { + "instance": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateRouterRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceRequest": { "type": "object", "properties": { - "merge": { + "enforce_capacity": { + "description": "TODO: probably should reverse this logic", "type": "boolean" }, "template": { @@ -46510,4569 +46500,4899 @@ } } }, - "github_com_softiron_manifold-api_cloud.UpdateRouterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ResizeInstanceResponse": { "type": "object", "properties": { - "router": { + "instance": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateSecurityGroupRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RetryHookRequest": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { - "type": "string" + "execution": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateSecurityGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RetryHookResponse": { "type": "object", "properties": { - "security_group": { + "hook": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateTemplateRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RevertImageSnapshotResponse": { "type": "object", "properties": { - "data": { - "type": "string" - }, - "merge": { - "type": "boolean" + "image": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RevertInstanceDiskSnapshotResponse": { "type": "object", "properties": { - "template": { + "snapshot": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateUserRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RevertInstanceSnapshotResponse": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { - "type": "string" + "instance": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UpdateUserResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Router": { "type": "object", "properties": { - "user": { + "gid": { + "type": "integer" + }, + "group_name": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "instances": { + "type": "array", + "items": { + "type": "integer" + } + }, + "lock": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Lock" + }, + "name": { + "type": "string" + }, + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" + }, + "template": { + "$ref": "#/definitions/cloud.RouterTemplate" + }, + "template_text": { + "type": "string" + }, + "uid": { "type": "integer" + }, + "user_name": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UpdateZoneRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RouterResponse": { "type": "object", "properties": { - "merge": { - "type": "boolean" - }, - "template": { - "type": "string" + "router": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Router" } } }, - "github_com_softiron_manifold-api_cloud.UpdateZoneResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.RoutersResponse": { "type": "object", "properties": { - "zone": { - "type": "integer" + "routers": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Router" + } } } }, - "github_com_softiron_manifold-api_cloud.User": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroup": { "type": "object", "properties": { - "auth_driver": { - "type": "string" - }, - "datastore_quota": { + "error_instances": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDatastore" + "type": "integer" } }, - "default_user_quotas": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" - }, - "enabled": { - "type": "boolean" - }, "group_id": { "type": "integer" }, "group_name": { "type": "string" }, - "groups": { - "type": "array", - "items": { - "type": "integer" - } - }, "id": { "type": "integer" }, - "image_quota": { + "name": { + "type": "string" + }, + "outdated_instances": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserImage" + "type": "integer" } }, - "instance_quota": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserInstance" + "permissions": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" }, - "login_token": { + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroupTemplate" + }, + "template_text": { + "type": "string" + }, + "updated_instances": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserLoginToken" + "type": "integer" } }, - "name": { - "type": "string" - }, - "network_quota": { + "updating_instances": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserNetwork" + "type": "integer" } }, - "password": { - "type": "string" + "user_id": { + "type": "integer" }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" + "user_name": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UserDatastore": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroupResponse": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "images": { - "type": "string" - }, - "images_used": { - "type": "string" - }, - "size": { + "security_group": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroup" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroupRule": { + "type": "object", + "properties": { + "protocol": { "type": "string" }, - "size_used": { + "rule_type": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UserDefaultQuotas": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroupTemplate": { "type": "object", "properties": { - "datastore_quota": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDatastore" - } + "description": { + "type": "string" }, - "image_quota": { + "rule": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserImage" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroupRule" } }, - "instance_quota": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserInstance" - }, - "network_quota": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserNetwork" + "values": { + "type": "object", + "additionalProperties": { + "type": "string" } } } }, - "github_com_softiron_manifold-api_cloud.UserImage": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroupsResponse": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "running_instances": { - "type": "string" - }, - "running_instances_used": { - "type": "string" + "security_group": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SecurityGroup" + } } } }, - "github_com_softiron_manifold-api_cloud.UserInstance": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Server": { "type": "object", "properties": { - "cpu": { - "type": "number" - }, - "cpu_used": { - "type": "number" - }, - "instances": { - "type": "integer" - }, - "instances_used": { - "type": "integer" - }, - "memory": { - "type": "integer" - }, - "memory_used": { + "commit": { "type": "integer" }, - "running_cpu": { - "type": "number" - }, - "running_cpu_used": { - "type": "number" + "endpoint": { + "type": "string" }, - "running_instances": { + "fed_log_index": { "type": "integer" }, - "running_instances_used": { + "id": { "type": "integer" }, - "running_memory": { + "log_index": { "type": "integer" }, - "running_memory_used": { - "type": "integer" + "name": { + "type": "string" }, - "system_disk_size": { + "state": { "type": "integer" }, - "system_disk_size_used": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_cloud.UserLoginRequest": { - "type": "object", - "properties": { - "duration": { + "term": { "type": "integer" }, - "group": { + "voted_for": { "type": "integer" - }, - "token": { - "type": "string" - }, - "username": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UserLoginResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SetGroupQuotaRequest": { "type": "object", "properties": { - "token": { + "template": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UserLoginToken": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SetGroupQuotaResponse": { "type": "object", "properties": { - "effective_group_id": { + "group": { "type": "integer" - }, - "expiration_time": { - "type": "string" - }, - "token": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud.UserNetwork": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "leases": { - "type": "string" - }, - "leases_used": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.UserQuotaResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SetImagePersistentRequest": { "type": "object", "properties": { - "quota": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.UserDefaultQuotas" + "persistent": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_cloud.UserResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SetImagePersistentResponse": { "type": "object", "properties": { - "user": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.User" + "image": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.UsersResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SetInstanceActionRequest": { "type": "object", "properties": { - "users": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.User" - } + "action": { + "description": "Action to perform", + "type": "string", + "enum": [ + "hold", + "poweroff", + "poweroff-hard", + "reboot", + "reboot-hard", + "release", + "resched", + "resume", + "stop", + "suspend", + "terminate", + "terminate-hard", + "undeploy", + "undeploy-hard" + ] } } }, - "github_com_softiron_manifold-api_cloud.Zone": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SetInstanceActionResponse": { "type": "object", "properties": { - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "servers": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Server" - } - }, - "state": { + "instance": { "type": "integer" - }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Template" - } - } - }, - "github_com_softiron_manifold-api_cloud.ZoneResponse": { - "type": "object", - "properties": { - "zone": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Zone" } } }, - "github_com_softiron_manifold-api_cloud.ZonesRaftStatusResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SetUserQuotaRequest": { "type": "object", "properties": { - "status": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.RaftStatus" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud.ZonesResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SetUserQuotaResponse": { "type": "object", "properties": { - "zones": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud.Zone" - } + "user": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud.perms": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Showback": { "type": "object", "properties": { - "admin": { - "type": "boolean" + "cpucost": { + "type": "number" }, - "manage": { - "type": "boolean" + "disk_cost": { + "type": "number" }, - "use": { - "type": "boolean" - } - } - }, - "github_com_softiron_manifold-api_cloud_config.AuthMAD": { - "type": "object", - "properties": { - "authn": { - "type": "string" + "gid": { + "type": "integer" }, - "executable": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud_config.AuthMADConf": { - "type": "object", - "properties": { - "driver_managed_group_admin": { + "group_name": { "type": "string" }, - "driver_managed_groups": { - "type": "string" + "hours": { + "type": "number" }, - "max_token_time": { + "instance": { "type": "integer" }, - "name": { - "type": "string" - }, - "password_change": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud_config.DB": { - "type": "object", - "properties": { - "backend": { + "instance_name": { "type": "string" }, - "compare_binary": { - "type": "string" + "memory_cost": { + "type": "number" }, - "connections": { + "month": { "type": "integer" }, - "dbname": { - "type": "string" + "rhours": { + "type": "number" }, - "passwd": { - "type": "string" + "total_cost": { + "type": "number" }, - "port": { + "uid": { "type": "integer" }, - "server": { + "user_name": { "type": "string" }, - "timeout": { + "year": { "type": "integer" - }, - "user": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud_config.DSMADConf": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SunstoneTemplate": { "type": "object", "properties": { - "marketplace_actions": { + "default_view": { "type": "string" }, - "name": { + "group_admin_default_view": { "type": "string" }, - "persistent_only": { - "type": "string" + "group_admin_views": { + "type": "array", + "items": { + "type": "string" + } }, - "required_attrs": { - "type": "string" + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "views": { + "type": "array", + "items": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_cloud_config.DatastoreMAD": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.System": { "type": "object", "properties": { - "arguments": { - "type": "string" + "netrx": { + "type": "integer" }, - "executable": { - "type": "string" + "nettx": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_config.DefaultCost": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SystemConfigResponse": { "type": "object", "properties": { - "cpucost": { - "type": "integer" - }, - "disk_cost": { - "type": "integer" - }, - "memory_cost": { - "type": "integer" + "config": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Configuration" } } }, - "github_com_softiron_manifold-api_cloud_config.Federation": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.SystemVersionResponse": { "type": "object", "properties": { - "master_oned": { - "type": "string" - }, - "mode": { + "version": { "type": "string" - }, - "server_id": { - "type": "integer" - }, - "zone_id": { - "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_config.HookLogConf": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.TemplateResponse": { "type": "object", "properties": { - "log_retention": { - "type": "integer" + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceTemplate" } } }, - "github_com_softiron_manifold-api_cloud_config.HookManagerMAD": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.TemplatesResponse": { "type": "object", "properties": { - "arguments": { - "type": "string" - }, - "executable": { - "type": "string" + "template": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceTemplate" + } } } }, - "github_com_softiron_manifold-api_cloud_config.ImMAD": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockDocumentResponse": { "type": "object", "properties": { - "arguments": { - "type": "string" - }, - "executable": { - "type": "string" - }, - "name": { - "type": "string" - }, - "threads": { + "document": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_config.InstanceMAD": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockHookRequest": { "type": "object", "properties": { - "arguments": { - "type": "string" - }, - "cold_nicattach": { - "type": "string" - }, - "default": { - "type": "string" - }, - "dslive_migration": { - "type": "string" - }, - "executable": { - "type": "string" - }, - "imported_instances_actions": { - "type": "string" - }, - "keep_snapshots": { - "type": "string" - }, - "live_resize": { - "type": "string" - }, - "name": { - "type": "string" - }, - "sunstone_name": { - "type": "string" - }, - "type": { - "type": "string" + "lock": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_config.IpamMAD": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockHookResponse": { "type": "object", "properties": { - "arguments": { - "type": "string" - }, - "executable": { - "type": "string" + "hook": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_config.Log": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockImageResponse": { "type": "object", "properties": { - "debug_level": { + "image": { "type": "integer" - }, - "system": { - "type": "string" - }, - "use_instances_location": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud_config.MarketMAD": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockInstanceGroupResponse": { "type": "object", "properties": { - "arguments": { - "type": "string" - }, - "executable": { - "type": "string" + "group": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_config.MarketMADConf": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockInstanceResponse": { "type": "object", "properties": { - "app_actions": { - "type": "string" - }, - "name": { - "type": "string" - }, - "public": { - "type": "string" - }, - "required_attrs": { - "type": "string" - }, - "sunstone_name": { - "type": "string" + "instance": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_config.Raft": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockMarketAppResponse": { "type": "object", "properties": { - "broadcast_timeout_ms": { - "type": "integer" - }, - "election_timeout_ms": { + "market_app": { "type": "integer" - }, - "limit_purge": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockNetworkResponse": { + "type": "object", + "properties": { + "network": { "type": "integer" - }, - "log_purge_timeout": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockNetworkTemplateResponse": { + "type": "object", + "properties": { + "template": { "type": "integer" - }, - "log_retention": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockRouterResponse": { + "type": "object", + "properties": { + "router": { "type": "integer" - }, - "xmlrpc_timeout_ms": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UnlockTemplateResponse": { + "type": "object", + "properties": { + "template": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_config.TmMAD": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDefaultUserQuotaRequest": { "type": "object", "properties": { - "arguments": { - "type": "string" - }, - "executable": { + "template": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud_config.TmMADConf": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDefaultUserQuotaResponse": { "type": "object", "properties": { - "allow_orphans": { - "type": "string" - }, - "clone_target": { - "type": "string" - }, - "clone_target_shared": { - "type": "string" - }, - "clone_target_ssh": { - "type": "string" - }, - "disk_type_shared": { - "type": "string" - }, - "disk_type_ssh": { - "type": "string" - }, - "driver": { - "type": "string" - }, - "dsmigrate": { - "type": "string" - }, - "ln_target": { - "type": "string" - }, - "ln_target_shared": { - "type": "string" - }, - "ln_target_ssh": { - "type": "string" - }, - "name": { - "type": "string" - }, - "shared": { - "type": "string" - }, - "tm_madsystem": { - "type": "string" + "quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDefaultQuotas" } } }, - "github_com_softiron_manifold-api_cloud_config.VLANIDs": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDocumentRequest": { "type": "object", "properties": { - "reserved": { - "type": "string" + "merge": { + "type": "boolean" }, - "start": { - "type": "integer" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud_config.VNCPorts": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateDocumentResponse": { "type": "object", "properties": { - "reserved": { - "type": "string" - }, - "start": { + "document": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_config.VNetMADConf": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupQuotaRequest": { "type": "object", "properties": { - "bridge_type": { - "type": "string" - }, - "name": { + "template": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud_config.VxlanIDs": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupQuotaResponse": { "type": "object", "properties": { - "start": { - "type": "integer" + "quotas": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDefaultQuotas" } } }, - "github_com_softiron_manifold-api_cloud_datacenter.Cluster": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupRequest": { "type": "object", "properties": { - "cluster": { - "type": "integer" + "merge": { + "type": "boolean" }, - "zone": { - "type": "integer" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud_datacenter.Datastore": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateGroupResponse": { "type": "object", "properties": { - "datastore": { - "type": "integer" - }, - "zone": { + "group": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_datacenter.Host": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateHookRequest": { "type": "object", "properties": { - "host": { - "type": "integer" + "merge": { + "type": "boolean" }, - "zone": { - "type": "integer" + "template": { + "type": "string" } } }, - "github_com_softiron_manifold-api_cloud_datacenter.Network": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateHookResponse": { "type": "object", "properties": { - "network": { - "type": "integer" - }, - "zone": { + "hook": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_instance.Action": { - "type": "integer", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49 - ], - "x-enum-comments": { - "AliasAttachAction": "alias-attach", - "AliasDetachAction": "alias-detach", - "BootAction": "boot", - "ChmodAction": "chmod", - "ChownAction": "chown", - "DeleteAction": "delete", - "DeleteRecreateAction": "delete-recreate", - "DeployAction": "deploy", - "DiskAttachAction": "disk-attach", - "DiskDetachAction": "disk-detach", - "DiskResizeAction": "disk-resize", - "DiskSaveasAction": "disk-saveas", - "DiskSnapshotCreateAction": "disk-snapshot-create", - "DiskSnapshotDeleteAction": "disk-snapshot-delete", - "DiskSnapshotRenameAction": "disk-snapshot-rename", - "DiskSnapshotRevertAction": "disk-snapshot-revert", - "HoldAction": "hold", - "LiveMigrateAction": "live-migrate", - "MigrateAction": "migrate", - "MonitorAction": "monitor", - "NicAttachAction": "nic-attach", - "NicDetachAction": "nic-detach", - "NoneAction": "none", - "PoffHardMigrateAction": "poff-hard-migrate", - "PoffMigrateAction": "poff-migrate", - "PowerOffAction": "poweroff", - "PowerOffHardAction": "poweroff-hard", - "RebootAction": "reboot", - "RebootHardAction": "reboot-hard", - "RecoverAction": "recover", - "ReleaseAction": "release", - "RenameAction": "rename", - "RescheduleAction": "resched", - "ResizeAction": "resize", - "ResumeAction": "resume", - "RetryAction": "retry", - "ShutdownAction": "shutdown", - "ShutdownHardAction": "shutdown-hard", - "SnapshotCreateAction": "snapshot-create", - "SnapshotDeleteAction": "snapshot-delete", - "SnapshotRevertAction": "snapshot-revert", - "StopAction": "stop", - "SuspendAction": "suspend", - "TerminateAction": "terminate", - "TerminateHardAction": "terminate-hard", - "UndeployAction": "undeploy", - "UndeployHardAction": "undeploy-hard", - "UnrescheduleAction": "unresched", - "UpdateAction": "update", - "UpdateconfAction": "updateconf" - }, - "x-enum-varnames": [ - "NoneAction", - "MigrateAction", - "LiveMigrateAction", - "ShutdownAction", - "ShutdownHardAction", - "UndeployAction", - "UndeployHardAction", - "HoldAction", - "ReleaseAction", - "StopAction", - "SuspendAction", - "ResumeAction", - "BootAction", - "DeleteAction", - "DeleteRecreateAction", - "RebootAction", - "RebootHardAction", - "RescheduleAction", - "UnrescheduleAction", - "PowerOffAction", - "PowerOffHardAction", - "DiskAttachAction", - "DiskDetachAction", - "NicAttachAction", - "NicDetachAction", - "DiskSnapshotCreateAction", - "DiskSnapshotDeleteAction", - "TerminateAction", - "TerminateHardAction", - "DiskResizeAction", - "DeployAction", - "ChownAction", - "ChmodAction", - "UpdateconfAction", - "RenameAction", - "ResizeAction", - "UpdateAction", - "SnapshotCreateAction", - "SnapshotDeleteAction", - "SnapshotRevertAction", - "DiskSaveasAction", - "DiskSnapshotRevertAction", - "RecoverAction", - "RetryAction", - "MonitorAction", - "DiskSnapshotRenameAction", - "AliasAttachAction", - "AliasDetachAction", - "PoffMigrateAction", - "PoffHardMigrateAction" - ] + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateImageRequest": { + "type": "object", + "properties": { + "merge": { + "type": "boolean" + }, + "template": { + "type": "string" + } + } }, - "github_com_softiron_manifold-api_cloud_instance.DiskSize": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateImageResponse": { "type": "object", "properties": { - "id": { - "type": "integer" - }, - "size": { + "image": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_instance.DiskSnapshots": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceConfigRequest": { "type": "object", "properties": { - "allow_orphans": { - "type": "string" - }, - "current_base": { - "type": "integer" - }, - "disk_id": { - "type": "integer" + "merge": { + "type": "boolean" }, - "next_snapshot": { + "template": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceConfigResponse": { + "type": "object", + "properties": { + "instance": { "type": "integer" - }, - "snapshot": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.ImageSnapshot" - } } } }, - "github_com_softiron_manifold-api_cloud_instance.GroupRole": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceGroupRequest": { "type": "object", "properties": { - "host_affined": { - "type": "string" + "merge": { + "type": "boolean" }, - "host_anti_affined": { + "template": { "type": "string" - }, - "id": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceGroupResponse": { + "type": "object", + "properties": { + "group": { "type": "integer" - }, - "name": { - "type": "string" - }, - "policy": { - "type": "string" } } }, - "github_com_softiron_manifold-api_cloud_instance.History": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceScheduleRequest": { "type": "object", "properties": { "action": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.Action" - }, - "cluster_id": { - "type": "integer" - }, - "datastore_id": { "type": "integer" }, - "end_time": { - "type": "string" - }, - "epilog_end_time": { - "type": "string" - }, - "epilog_start_time": { + "template": { "type": "string" - }, - "group_id": { - "type": "integer" - }, - "host_id": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceScheduleResponse": { + "type": "object", + "properties": { + "instance": { "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceTemplateRequest": { + "type": "object", + "properties": { + "merge": { + "type": "boolean" }, - "hostname": { + "template": { "type": "string" - }, - "id": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateInstanceTemplateResponse": { + "type": "object", + "properties": { + "instance": { "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketAppRequest": { + "type": "object", + "properties": { + "merge": { + "type": "boolean" }, - "instance_mad": { - "type": "string" - }, - "prolog_end_time": { - "type": "string" - }, - "prolog_start_time": { + "template": { "type": "string" - }, - "request_id": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketAppResponse": { + "type": "object", + "properties": { + "market_app": { "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketRequest": { + "type": "object", + "properties": { + "merge": { + "type": "boolean" }, - "running_end_time": { - "type": "string" - }, - "running_start_time": { + "template": { "type": "string" - }, - "sequence_number": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateMarketResponse": { + "type": "object", + "properties": { + "market": { "type": "integer" - }, - "start_time": { - "type": "string" - }, - "transfer_manager_mad": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkAddressRangeRequest": { + "type": "object", + "properties": { + "template": { "type": "string" - }, - "user_id": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkAddressRangeResponse": { + "type": "object", + "properties": { + "network": { "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_instance.ImageSnapshot": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkRequest": { "type": "object", "properties": { - "active": { - "type": "string" + "merge": { + "type": "boolean" }, - "children": { + "template": { "type": "string" - }, - "date": { - "type": "integer" - }, - "id": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkResponse": { + "type": "object", + "properties": { + "network": { "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkTemplateRequest": { + "type": "object", + "properties": { + "merge": { + "type": "boolean" }, - "name": { + "template": { "type": "string" - }, - "parent": { - "type": "integer" - }, - "size": { - "type": "integer" } } }, - "github_com_softiron_manifold-api_cloud_instance.Monitoring": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateNetworkTemplateResponse": { "type": "object", "properties": { - "cpu": { - "type": "number" - }, - "disk_read_bytes": { - "type": "integer" - }, - "disk_read_iops": { - "type": "integer" - }, - "disk_size": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.DiskSize" - } - }, - "disk_write_bytes": { - "type": "integer" - }, - "disk_write_iops": { - "type": "integer" - }, - "id": { - "type": "integer" - }, - "memory": { - "type": "integer" - }, - "netrx": { - "type": "integer" - }, - "nettx": { + "template": { "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateRouterRequest": { + "type": "object", + "properties": { + "merge": { + "type": "boolean" }, - "timestamp": { - "type": "string" - }, - "vcenter_esxhost": { - "type": "string" - }, - "vcenter_guest_state": { - "type": "string" - }, - "vcenter_rpname": { - "type": "string" - }, - "vcenter_vmname": { - "type": "string" - }, - "vcenter_vmware_tools_running_status": { - "type": "string" - }, - "vcenter_vmware_tools_version": { - "type": "string" - }, - "vcenter_vmware_tools_version_status": { + "template": { "type": "string" } } }, - "github_com_softiron_manifold-api_cloud_instance.Snapshots": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateRouterResponse": { "type": "object", "properties": { - "allow_orphans": { - "type": "string" - }, - "current_base": { - "type": "integer" - }, - "next_snapshot": { + "router": { "type": "integer" - }, - "snapshot": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_instance.ImageSnapshot" - } } } }, - "github_com_softiron_manifold-api_cloud_instance.State": { - "type": "integer", - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - -2, - -1 - ], - "x-enum-comments": { - "ActiveState": "active", - "AnyState": "all", - "CloningFailedState": "cloning_failed", - "CloningState": "cloning", - "DoneState": "done", - "HoldState": "hold", - "InitState": "init", - "NotDoneState": "not_done", - "OffState": "off", - "PendingState": "pending", - "StoppedState": "stopped", - "SuspendedState": "suspended", - "UndeployedState": "undeployed" - }, - "x-enum-varnames": [ - "InitState", - "PendingState", - "HoldState", - "ActiveState", - "StoppedState", - "SuspendedState", - "DoneState", - "_", - "OffState", - "UndeployedState", - "CloningState", - "CloningFailedState", - "AnyState", - "NotDoneState" - ] - }, - "github_com_softiron_manifold-api_cloud_network.AddressRange": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateSecurityGroupRequest": { "type": "object", "properties": { - "arid": { - "type": "string" - }, - "global_prefix": { - "type": "string" - }, - "ip": { - "type": "string" - }, - "ip6": { - "type": "string" + "merge": { + "type": "boolean" }, - "ip6_end": { + "template": { "type": "string" - }, - "ip6_global": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateSecurityGroupResponse": { + "type": "object", + "properties": { + "security_group": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateTemplateRequest": { + "type": "object", + "properties": { + "data": { "type": "string" }, - "ip6_global_end": { - "type": "string" + "merge": { + "type": "boolean" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateTemplateResponse": { + "type": "object", + "properties": { + "template": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateUserRequest": { + "type": "object", + "properties": { + "merge": { + "type": "boolean" }, - "ip6_ula": { + "template": { "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateUserResponse": { + "type": "object", + "properties": { + "user": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateZoneRequest": { + "type": "object", + "properties": { + "merge": { + "type": "boolean" }, - "ip6_ula_end": { + "template": { "type": "string" - }, - "ipend": { + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UpdateZoneResponse": { + "type": "object", + "properties": { + "zone": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.User": { + "type": "object", + "properties": { + "auth_driver": { "type": "string" }, - "leases": { + "datastore_quota": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_cloud_network.Lease" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDatastore" } }, - "mac": { - "type": "string" - }, - "macend": { - "type": "string" - }, - "parent_network_arid": { - "type": "string" - }, - "port_size": { - "type": "string" + "default_user_quotas": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDefaultQuotas" }, - "port_start": { - "type": "string" + "enabled": { + "type": "boolean" }, - "size": { + "group_id": { "type": "integer" }, - "type": { - "type": "string" - }, - "ula_prefix": { + "group_name": { "type": "string" }, - "used_leases": { - "type": "string" + "groups": { + "type": "array", + "items": { + "type": "integer" + } }, - "vnmad": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_cloud_network.Lease": { - "type": "object", - "properties": { - "instance": { + "id": { "type": "integer" }, - "ip": { - "type": "string" + "image_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserImage" + } }, - "ip6": { - "type": "string" + "instance_quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserInstance" }, - "ip6_global": { - "type": "string" + "login_token": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserLoginToken" + } }, - "ip6_link": { + "name": { "type": "string" }, - "ip6_ula": { - "type": "string" + "network_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserNetwork" + } }, - "mac": { + "password": { "type": "string" }, - "vnet": { - "type": "integer" - }, - "vrouter": { - "type": "integer" + "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserTemplate" + }, + "template_text": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ACL": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UserDatastore": { "type": "object", "properties": { "id": { - "type": "integer" - }, - "resource": { - "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (VM, Host...) | resource ID |\n +-----------------------+-----------------------+", - "type": "integer" + "type": "string" }, - "rights": { - "description": "64 bits\n +-----------------------------------------------+\n | Actions (MANAGE, CREATE, USE... |\n +-----------------------------------------------+", - "type": "integer" + "images": { + "type": "string" }, - "string": { + "images_used": { "type": "string" }, - "user": { - "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (user,group,all) | user/group ID |\n +-----------------------+-----------------------+", - "type": "integer" + "size": { + "type": "string" }, - "zone": { - "description": "32 bits 32 bits\n +-----------------------+-----------------------+\n | Type (individual,all) | zone ID |\n +-----------------------+-----------------------+", - "type": "integer" + "size_used": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ACLsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UserDefaultQuotas": { "type": "object", "properties": { - "acls": { + "datastore_quota": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ACL" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDatastore" + } + }, + "image_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserImage" + } + }, + "instance_quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserInstance" + }, + "network_quota": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserNetwork" } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AcctHistory": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UserImage": { "type": "object", "properties": { - "action": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Action" - }, - "cluster_id": { - "type": "integer" - }, - "datastore_id": { - "type": "integer" - }, - "end_time": { + "id": { "type": "string" }, - "epilog_end_time": { + "running_instances": { "type": "string" }, - "epilog_start_time": { + "running_instances_used": { "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud.UserInstance": { + "type": "object", + "properties": { + "cpu": { + "type": "number" }, - "group_id": { - "type": "integer" + "cpu_used": { + "type": "number" }, - "host_id": { + "instances": { "type": "integer" }, - "hostname": { - "type": "string" - }, - "id": { + "instances_used": { "type": "integer" }, - "instance": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Instance" + "memory": { + "type": "integer" }, - "instance_mad": { - "type": "string" + "memory_used": { + "type": "integer" }, - "prolog_end_time": { - "type": "string" + "running_cpu": { + "type": "number" }, - "prolog_start_time": { - "type": "string" + "running_cpu_used": { + "type": "number" }, - "request_id": { + "running_instances": { "type": "integer" }, - "running_end_time": { - "type": "string" - }, - "running_start_time": { - "type": "string" + "running_instances_used": { + "type": "integer" }, - "sequence_number": { + "running_memory": { "type": "integer" }, - "start_time": { - "type": "string" + "running_memory_used": { + "type": "integer" }, - "transfer_manager_mad": { - "type": "string" + "system_disk_size": { + "type": "integer" }, - "user_id": { + "system_disk_size_used": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddClusterDatastoreResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UserLoginRequest": { "type": "object", "properties": { - "datastore": { + "duration": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddClusterHostResponse": { - "type": "object", - "properties": { - "host": { + }, + "group": { "type": "integer" + }, + "token": { + "type": "string" + }, + "username": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddClusterNetworkResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UserLoginResponse": { "type": "object", "properties": { - "vnet": { - "type": "integer" + "token": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddDataCenterClusterResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UserLoginToken": { "type": "object", "properties": { - "datacenter": { + "effective_group_id": { "type": "integer" + }, + "expiration_time": { + "type": "string" + }, + "token": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddDataCenterDatastoreResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UserNetwork": { "type": "object", "properties": { - "datacenter": { - "type": "integer" + "id": { + "type": "string" + }, + "leases": { + "type": "string" + }, + "leases_used": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddDataCenterGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UserQuotaResponse": { "type": "object", "properties": { - "datacenter": { - "type": "integer" + "quota": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDefaultQuotas" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddDataCenterHostResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UserResponse": { "type": "object", "properties": { - "datacenter": { - "type": "integer" + "user": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.User" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddDataCenterNetworkResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UserTemplate": { "type": "object", "properties": { - "datacenter": { - "type": "integer" + "rados_gw": { + "type": "boolean" + }, + "rados_gw_access_key": { + "type": "string" + }, + "rados_gw_secret_key": { + "type": "string" + }, + "ssh_public_key": { + "type": "string" + }, + "token_password": { + "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddGroupAdminRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.UsersResponse": { "type": "object", "properties": { - "user": { - "type": "integer" + "users": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.User" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddGroupAdminResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.Zone": { "type": "object", "properties": { - "group": { + "id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceScheduleRequest": { - "type": "object", - "properties": { + }, + "name": { + "type": "string" + }, + "servers": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Server" + } + }, + "state": { + "type": "integer" + }, "template": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ZoneTemplate" + }, + "template_text": { "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceScheduleResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ZoneResponse": { "type": "object", "properties": { - "instance": { - "type": "integer" + "zone": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Zone" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddInstanceSecurityGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ZoneTemplate": { "type": "object", "properties": { - "instance": { - "type": "integer" + "endpoint": { + "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddNetworkAddressRangeRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ZonesRaftStatusResponse": { "type": "object", "properties": { - "template": { - "type": "string" + "status": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.RaftStatus" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddNetworkAddressRangeResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.ZonesResponse": { "type": "object", "properties": { - "network": { - "type": "integer" + "zones": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Zone" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AddUserGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud.perms": { "type": "object", "properties": { - "user": { - "type": "integer" + "admin": { + "type": "boolean" + }, + "manage": { + "type": "boolean" + }, + "use": { + "type": "boolean" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AllocateDocumentRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.AuthMAD": { "type": "object", "properties": { - "template": { + "authn": { "type": "string" }, - "type": { - "type": "integer" + "executable": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.AllocateDocumentResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.AuthMADConf": { "type": "object", "properties": { - "document": { + "driver_managed_group_admin": { + "type": "string" + }, + "driver_managed_groups": { + "type": "string" + }, + "max_token_time": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CalculateInstancesShowbackRequest": { - "type": "object", - "properties": { - "month": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Period" }, - "year": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Period" + "name": { + "type": "string" + }, + "password_change": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Capacity": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.DB": { "type": "object", "properties": { - "free_cpu": { - "type": "integer" + "backend": { + "type": "string" }, - "free_memory": { - "type": "integer" + "compare_binary": { + "type": "string" }, - "used_cpu": { + "connections": { "type": "integer" }, - "used_memory": { + "dbname": { + "type": "string" + }, + "passwd": { + "type": "string" + }, + "port": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDatastoreOwnershipRequest": { - "type": "object", - "properties": { - "group": { + }, + "server": { + "type": "string" + }, + "timeout": { "type": "integer" }, "user": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDatastoreOwnershipResponse": { - "type": "object", - "properties": { - "datastore": { - "type": "integer" + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDatastorePermissionsRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.DSMADConf": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "marketplace_actions": { + "type": "string" + }, + "name": { + "type": "string" + }, + "persistent_only": { + "type": "string" + }, + "required_attrs": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDatastorePermissionsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.DatastoreMAD": { "type": "object", "properties": { - "datastore": { - "type": "integer" + "arguments": { + "type": "string" + }, + "executable": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentOwnershipRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.DefaultCost": { "type": "object", "properties": { - "group": { + "cpucost": { "type": "integer" }, - "user": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentOwnershipResponse": { - "type": "object", - "properties": { - "document": { + "disk_cost": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentPermissionsRequest": { - "type": "object", - "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeDocumentPermissionsResponse": { - "type": "object", - "properties": { - "document": { + }, + "memory_cost": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageOwnershipRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.Federation": { "type": "object", "properties": { - "group": { - "type": "integer" + "master_oned": { + "type": "string" }, - "user": { + "mode": { + "type": "string" + }, + "server_id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageOwnershipResponse": { - "type": "object", - "properties": { - "image": { + }, + "zone_id": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImagePermissionsRequest": { - "type": "object", - "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImagePermissionsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.HookLogConf": { "type": "object", "properties": { - "image": { + "log_retention": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageTypeRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.HookManagerMAD": { "type": "object", "properties": { - "type": { + "arguments": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeImageTypeResponse": { - "type": "object", - "properties": { - "image": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupOwnershipRequest": { - "type": "object", - "properties": { - "group": { - "type": "integer" }, - "user": { - "type": "integer" + "executable": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupOwnershipResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.ImMAD": { "type": "object", "properties": { - "group": { + "arguments": { + "type": "string" + }, + "executable": { + "type": "string" + }, + "name": { + "type": "string" + }, + "threads": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupPermissionsRequest": { - "type": "object", - "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceGroupPermissionsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.InstanceMAD": { "type": "object", "properties": { - "group": { - "type": "integer" + "arguments": { + "type": "string" + }, + "cold_nicattach": { + "type": "string" + }, + "default": { + "type": "string" + }, + "dslive_migration": { + "type": "string" + }, + "executable": { + "type": "string" + }, + "imported_instances_actions": { + "type": "string" + }, + "keep_snapshots": { + "type": "string" + }, + "live_resize": { + "type": "string" + }, + "name": { + "type": "string" + }, + "sunstone_name": { + "type": "string" + }, + "type": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceOwnershipRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.IpamMAD": { "type": "object", "properties": { - "group": { - "type": "integer" + "arguments": { + "type": "string" }, - "user": { - "type": "integer" + "executable": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstanceOwnershipResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.Log": { "type": "object", "properties": { - "instance": { + "debug_level": { "type": "integer" + }, + "system": { + "type": "string" + }, + "use_instances_location": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstancePermissionsRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.MarketMAD": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "arguments": { + "type": "string" + }, + "executable": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeInstancePermissionsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.MarketMADConf": { "type": "object", "properties": { - "instance": { - "type": "integer" + "app_actions": { + "type": "string" + }, + "name": { + "type": "string" + }, + "public": { + "type": "string" + }, + "required_attrs": { + "type": "string" + }, + "sunstone_name": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppOwnershipRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.Raft": { "type": "object", "properties": { - "group": { + "broadcast_timeout_ms": { "type": "integer" }, - "user": { + "election_timeout_ms": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppOwnershipResponse": { - "type": "object", - "properties": { - "market_app": { + }, + "limit_purge": { + "type": "integer" + }, + "log_purge_timeout": { + "type": "integer" + }, + "log_retention": { + "type": "integer" + }, + "xmlrpc_timeout_ms": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppPermissionsRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.TmMAD": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "arguments": { + "type": "string" + }, + "executable": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketAppPermissionsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.TmMADConf": { "type": "object", "properties": { - "market_app": { - "type": "integer" + "allow_orphans": { + "type": "string" + }, + "clone_target": { + "type": "string" + }, + "clone_target_shared": { + "type": "string" + }, + "clone_target_ssh": { + "type": "string" + }, + "disk_type_shared": { + "type": "string" + }, + "disk_type_ssh": { + "type": "string" + }, + "driver": { + "type": "string" + }, + "dsmigrate": { + "type": "string" + }, + "ln_target": { + "type": "string" + }, + "ln_target_shared": { + "type": "string" + }, + "ln_target_ssh": { + "type": "string" + }, + "name": { + "type": "string" + }, + "shared": { + "type": "string" + }, + "tm_madsystem": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketOwnershipRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.VLANIDs": { "type": "object", "properties": { - "group": { - "type": "integer" + "reserved": { + "type": "string" }, - "user": { + "start": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketOwnershipResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.VNCPorts": { "type": "object", "properties": { - "market": { + "reserved": { + "type": "string" + }, + "start": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketPermissionsRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.VNetMADConf": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "bridge_type": { + "type": "string" + }, + "name": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeMarketPermissionsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_config.VxlanIDs": { "type": "object", "properties": { - "market": { + "start": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkOwnershipRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Cluster": { "type": "object", "properties": { - "group": { + "cluster": { "type": "integer" }, - "user": { + "zone": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkOwnershipResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Datastore": { "type": "object", "properties": { - "network": { + "datastore": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkPermissionsRequest": { - "type": "object", - "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkPermissionsResponse": { - "type": "object", - "properties": { - "network": { + }, + "zone": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplateOwnershipRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Host": { "type": "object", "properties": { - "group": { + "host": { "type": "integer" }, - "user": { + "zone": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplateOwnershipResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Network": { "type": "object", "properties": { - "template": { + "network": { + "type": "integer" + }, + "zone": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplatePermissionsRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Action": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49 + ], + "x-enum-comments": { + "AliasAttachAction": "alias-attach", + "AliasDetachAction": "alias-detach", + "BootAction": "boot", + "ChmodAction": "chmod", + "ChownAction": "chown", + "DeleteAction": "delete", + "DeleteRecreateAction": "delete-recreate", + "DeployAction": "deploy", + "DiskAttachAction": "disk-attach", + "DiskDetachAction": "disk-detach", + "DiskResizeAction": "disk-resize", + "DiskSaveasAction": "disk-saveas", + "DiskSnapshotCreateAction": "disk-snapshot-create", + "DiskSnapshotDeleteAction": "disk-snapshot-delete", + "DiskSnapshotRenameAction": "disk-snapshot-rename", + "DiskSnapshotRevertAction": "disk-snapshot-revert", + "HoldAction": "hold", + "LiveMigrateAction": "live-migrate", + "MigrateAction": "migrate", + "MonitorAction": "monitor", + "NicAttachAction": "nic-attach", + "NicDetachAction": "nic-detach", + "NoneAction": "none", + "PoffHardMigrateAction": "poff-hard-migrate", + "PoffMigrateAction": "poff-migrate", + "PowerOffAction": "poweroff", + "PowerOffHardAction": "poweroff-hard", + "RebootAction": "reboot", + "RebootHardAction": "reboot-hard", + "RecoverAction": "recover", + "ReleaseAction": "release", + "RenameAction": "rename", + "RescheduleAction": "resched", + "ResizeAction": "resize", + "ResumeAction": "resume", + "RetryAction": "retry", + "ShutdownAction": "shutdown", + "ShutdownHardAction": "shutdown-hard", + "SnapshotCreateAction": "snapshot-create", + "SnapshotDeleteAction": "snapshot-delete", + "SnapshotRevertAction": "snapshot-revert", + "StopAction": "stop", + "SuspendAction": "suspend", + "TerminateAction": "terminate", + "TerminateHardAction": "terminate-hard", + "UndeployAction": "undeploy", + "UndeployHardAction": "undeploy-hard", + "UnrescheduleAction": "unresched", + "UpdateAction": "update", + "UpdateconfAction": "updateconf" + }, + "x-enum-varnames": [ + "NoneAction", + "MigrateAction", + "LiveMigrateAction", + "ShutdownAction", + "ShutdownHardAction", + "UndeployAction", + "UndeployHardAction", + "HoldAction", + "ReleaseAction", + "StopAction", + "SuspendAction", + "ResumeAction", + "BootAction", + "DeleteAction", + "DeleteRecreateAction", + "RebootAction", + "RebootHardAction", + "RescheduleAction", + "UnrescheduleAction", + "PowerOffAction", + "PowerOffHardAction", + "DiskAttachAction", + "DiskDetachAction", + "NicAttachAction", + "NicDetachAction", + "DiskSnapshotCreateAction", + "DiskSnapshotDeleteAction", + "TerminateAction", + "TerminateHardAction", + "DiskResizeAction", + "DeployAction", + "ChownAction", + "ChmodAction", + "UpdateconfAction", + "RenameAction", + "ResizeAction", + "UpdateAction", + "SnapshotCreateAction", + "SnapshotDeleteAction", + "SnapshotRevertAction", + "DiskSaveasAction", + "DiskSnapshotRevertAction", + "RecoverAction", + "RetryAction", + "MonitorAction", + "DiskSnapshotRenameAction", + "AliasAttachAction", + "AliasDetachAction", + "PoffMigrateAction", + "PoffHardMigrateAction" + ] + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.CPUModel": { "type": "object", "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" + "model": { + "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeNetworkTemplatePermissionsResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Context": { "type": "object", "properties": { - "template": { + "disk_id": { "type": "integer" + }, + "firmware": { + "type": "string" + }, + "guest_os": { + "type": "string" + }, + "network": { + "type": "boolean" + }, + "ssh_public_key": { + "type": "string" + }, + "target": { + "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterOwnershipRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Disk": { "type": "object", "properties": { - "group": { + "allow_orphans": { + "type": "string" + }, + "clone": { + "type": "boolean" + }, + "clone_target": { + "type": "string" + }, + "cluster_id": { "type": "integer" }, - "user": { + "datastore": { + "type": "string" + }, + "datastore_id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterOwnershipResponse": { - "type": "object", - "properties": { - "router": { + }, + "dev_prefix": { + "type": "string" + }, + "disk_id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterPermissionsRequest": { - "type": "object", - "properties": { - "permissions": { - "$ref": "#/definitions/hc.Perms" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeRouterPermissionsResponse": { - "type": "object", - "properties": { - "router": { + }, + "disk_snapshot_total_size": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupOwnershipRequest": { - "type": "object", - "properties": { - "group": { + }, + "disk_type": { + "type": "string" + }, + "driver": { + "type": "string" + }, + "format": { + "type": "string" + }, + "image": { + "type": "string" + }, + "image_id": { + "type": "integer" + }, + "image_state": { + "type": "integer" + }, + "image_uname": { + "type": "string" + }, + "ln_target": { + "type": "string" + }, + "original_size": { + "type": "integer" + }, + "persistent": { + "type": "boolean" + }, + "pool_name": { + "type": "string" + }, + "readonly": { + "type": "boolean" + }, + "save": { + "type": "boolean" + }, + "size": { "type": "integer" }, - "user": { - "type": "integer" + "source": { + "type": "string" + }, + "target": { + "type": "string" + }, + "tm_mad": { + "type": "string" + }, + "tm_madsystem": { + "type": "string" + }, + "type": { + "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "vcenter_dsref": { + "type": "string" + }, + "vcenter_instance_id": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupOwnershipResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.DiskSize": { "type": "object", "properties": { - "security_group": { + "id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupPermissionsRequest": { - "type": "object", - "properties": { - "perms": { - "$ref": "#/definitions/hc.Perms" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeSecurityGroupPermissionsResponse": { - "type": "object", - "properties": { - "security_group": { + }, + "size": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplateOwnershipRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.DiskSnapshots": { "type": "object", "properties": { - "group": { - "type": "integer" + "allow_orphans": { + "type": "string" }, - "user": { + "current_base": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplateOwnershipResponse": { - "type": "object", - "properties": { - "template": { + }, + "disk_id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplatePermissionsRequest": { - "type": "object", - "properties": { - "disk": { - "type": "boolean" }, - "permissions": { - "$ref": "#/definitions/hc.Perms" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeTemplatePermissionsResponse": { - "type": "object", - "properties": { - "template": { + "next_snapshot": { "type": "integer" + }, + "snapshot": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.ImageSnapshot" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserAuthRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Graphics": { "type": "object", "properties": { - "driver": { + "keymap": { + "type": "string" + }, + "listen": { "type": "string" }, "password": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserAuthResponse": { - "type": "object", - "properties": { - "user": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserGroupResponse": { - "type": "object", - "properties": { - "user": { + }, + "port": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserPasswordRequest": { - "type": "object", - "properties": { - "password": { + }, + "type": { "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ChangeUserPasswordResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.GroupRole": { "type": "object", "properties": { - "user": { + "host_affined": { + "type": "string" + }, + "host_anti_affined": { + "type": "string" + }, + "id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneDocumentRequest": { - "type": "object", - "properties": { + }, "name": { "type": "string" + }, + "policy": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneDocumentResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.History": { "type": "object", "properties": { - "document": { + "action": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Action" + }, + "cluster_id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneImageRequest": { - "type": "object", - "properties": { - "datastore": { + }, + "datastore_id": { "type": "integer" }, - "name": { + "end_time": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneImageResponse": { - "type": "object", - "properties": { - "image": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneNetworkTemplateRequest": { - "type": "object", - "properties": { - "name": { + }, + "epilog_end_time": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneNetworkTemplateResponse": { - "type": "object", - "properties": { - "template": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneSecurityGroupRequest": { - "type": "object", - "properties": { - "name": { + }, + "epilog_start_time": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneSecurityGroupResponse": { - "type": "object", - "properties": { - "security_group": { + }, + "group_id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneTemplateRequest": { - "type": "object", - "properties": { - "disk": { - "type": "boolean" }, - "name": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CloneTemplateResponse": { - "type": "object", - "properties": { - "template": { + "host_id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Cluster": { - "type": "object", - "properties": { - "datastores": { - "type": "array", - "items": { - "type": "integer" - } }, - "hosts": { - "type": "array", - "items": { - "type": "integer" - } + "hostname": { + "type": "string" }, "id": { "type": "integer" }, - "name": { + "instance_mad": { "type": "string" }, - "networks": { - "type": "array", - "items": { - "type": "integer" - } + "prolog_end_time": { + "type": "string" }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ClusterTemplate" + "prolog_start_time": { + "type": "string" }, - "template_text": { + "request_id": { + "type": "integer" + }, + "running_end_time": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ClusterResponse": { - "type": "object", - "properties": { - "cluster": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Cluster" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ClusterTemplate": { - "type": "object", - "properties": { - "reserved_cpu": { + }, + "running_start_time": { "type": "string" }, - "reserved_mem": { + "sequence_number": { + "type": "integer" + }, + "start_time": { "type": "string" }, - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ClustersResponse": { - "type": "object", - "properties": { - "cluster": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Cluster" - } - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CommitSecurityGroupRequest": { - "type": "object", - "properties": { - "all": { - "type": "boolean" + "transfer_manager_mad": { + "type": "string" + }, + "user_id": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CommitSecurityGroupResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.ImageSnapshot": { "type": "object", "properties": { - "security_group": { + "active": { + "type": "string" + }, + "children": { + "type": "string" + }, + "date": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "parent": { + "type": "integer" + }, + "size": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Configuration": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Monitoring": { "type": "object", "properties": { - "api_list_order": { - "type": "array", - "items": { - "type": "string" - } + "cpu": { + "type": "number" }, - "auth_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.AuthMAD" - } + "disk_read_bytes": { + "type": "integer" }, - "auth_madconf": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.AuthMADConf" - } + "disk_read_iops": { + "type": "integer" }, - "cluster_encrypted_attr": { + "disk_size": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.DiskSize" } }, - "datastore_capacity_check": { - "type": "array", - "items": { - "type": "string" - } + "disk_write_bytes": { + "type": "integer" }, - "datastore_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "disk_write_iops": { + "type": "integer" }, - "datastore_location": { - "type": "array", - "items": { - "type": "string" - } + "id": { + "type": "integer" }, - "datastore_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.DatastoreMAD" - } + "memory": { + "type": "integer" }, - "db": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.DB" + "netrx": { + "type": "integer" }, - "default_auth": { - "type": "array", - "items": { - "type": "string" - } + "nettx": { + "type": "integer" }, - "default_cdrom_device_prefix": { - "type": "array", - "items": { - "type": "string" - } + "timestamp": { + "type": "string" }, - "default_cost": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.DefaultCost" - } + "vcenter_esxhost": { + "type": "string" }, - "default_device_prefix": { - "type": "array", - "items": { - "type": "string" - } + "vcenter_guest_state": { + "type": "string" }, - "default_image_persistent": { - "type": "array", - "items": { - "type": "string" - } + "vcenter_rpname": { + "type": "string" }, - "default_image_persistent_new": { - "type": "array", - "items": { - "type": "string" - } + "vcenter_vmname": { + "type": "string" }, - "default_image_type": { - "type": "array", - "items": { - "type": "string" - } + "vcenter_vmware_tools_running_status": { + "type": "string" }, - "default_umask": { - "type": "array", - "items": { - "type": "string" - } + "vcenter_vmware_tools_version": { + "type": "string" }, - "default_vdccluster_datastore_acl": { - "type": "array", - "items": { - "type": "string" - } + "vcenter_vmware_tools_version_status": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.NIC": { + "type": "object", + "properties": { + "id": { + "type": "integer" }, - "default_vdccluster_host_acl": { - "type": "array", - "items": { - "type": "string" - } + "ip": { + "type": "string" }, - "default_vdccluster_net_acl": { - "type": "array", - "items": { - "type": "string" - } + "mac": { + "type": "string" }, - "default_vdcdatastore_acl": { - "type": "array", - "items": { - "type": "string" - } + "model": { + "type": "string" }, - "default_vdchost_acl": { - "type": "array", - "items": { - "type": "string" - } + "network_id": { + "type": "integer" }, - "default_vdcvnet_acl": { - "type": "array", - "items": { - "type": "string" - } + "phy_dev": { + "type": "string" }, - "document_encrypted_attr": { - "type": "array", - "items": { + "security_groups": { + "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { "type": "string" } }, - "dsmadconf": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.DSMADConf" - } + "vcenter_instance_id": { + "type": "string" }, - "dsmonitor_instance_disk": { - "type": "integer" + "vcenter_net_ref": { + "type": "string" + }, + "vcenter_portgroup_type": { + "type": "string" + }, + "virtio_queues": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.NICAlias": { + "type": "object", + "properties": { + "alias_id": { + "type": "string" }, - "enable_other_permissions": { + "parent": { "type": "string" }, - "federation": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.Federation" + "parent_id": { + "type": "string" }, - "group_restricted_attr": { - "type": "array", - "items": { + "values": { + "type": "object", + "additionalProperties": { "type": "string" } }, - "hook_log_conf": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.HookLogConf" + "vcenter_instance_id": { + "type": "string" }, - "hook_manager_mad": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.HookManagerMAD" + "vcenter_net_ref": { + "type": "string" }, - "host_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "vcenter_portgroup_type": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.OS": { + "type": "object", + "properties": { + "arch": { + "type": "string" }, - "im_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.ImMAD" - } + "boot": { + "type": "string" }, - "image_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "sd_disk_bus": { + "type": "string" }, - "image_restricted_attr": { - "type": "array", - "items": { - "type": "string" - } + "uuid": { + "type": "string" }, - "inherit_datastore_attr": { - "type": "array", - "items": { + "values": { + "type": "object", + "additionalProperties": { "type": "string" } + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.SchedAction": { + "type": "object", + "properties": { + "action": { + "type": "string" }, - "inherit_image_attr": { - "type": "array", - "items": { - "type": "string" - } + "args": { + "type": "string" }, - "inherit_vnet_attr": { - "type": "array", - "items": { - "type": "string" - } + "days": { + "type": "string" }, - "instance_admin_operations": { + "end_type": { "type": "string" }, - "instance_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "end_value": { + "type": "string" }, - "instance_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.InstanceMAD" - } + "id": { + "type": "string" }, - "instance_manage_operations": { + "repeat": { "type": "string" }, - "instance_monitoring_expiration_time": { - "type": "array", - "items": { - "type": "string" - } + "time": { + "type": "string" }, - "instance_restricted_attr": { - "type": "array", - "items": { + "values": { + "type": "object", + "additionalProperties": { "type": "string" } }, - "instance_snapshot_factor": { + "warning": { + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Snapshot": { + "type": "object", + "properties": { + "action": { "type": "string" }, - "instance_submit_on_hold": { + "active": { + "type": "boolean" + }, + "hypervisor_id": { "type": "string" }, - "instance_use_operations": { - "type": "array", - "items": { - "type": "string" - } + "name": { + "type": "string" }, - "ipam_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.IpamMAD" - } + "snapshot_id": { + "type": "integer" }, - "keepalive_max_conn": { - "type": "array", - "items": { - "type": "integer" - } + "system_disk_size": { + "type": "integer" }, - "keepalive_timeout": { - "type": "array", - "items": { - "type": "integer" - } + "time": { + "type": "string" }, - "listen_address": { - "type": "array", - "items": { + "values": { + "type": "object", + "additionalProperties": { "type": "string" } + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Snapshots": { + "type": "object", + "properties": { + "allow_orphans": { + "type": "string" }, - "log": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.Log" - } + "current_base": { + "type": "integer" }, - "log_call_format": { - "type": "array", - "items": { - "type": "string" - } + "next_snapshot": { + "type": "integer" }, - "macprefix": { + "snapshot": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.ImageSnapshot" } + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.State": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + -2, + -1 + ], + "x-enum-comments": { + "ActiveState": "active", + "AnyState": "all", + "CloningFailedState": "cloning_failed", + "CloningState": "cloning", + "DoneState": "done", + "HoldState": "hold", + "InitState": "init", + "NotDoneState": "not_done", + "OffState": "off", + "PendingState": "pending", + "StoppedState": "stopped", + "SuspendedState": "suspended", + "UndeployedState": "undeployed" + }, + "x-enum-varnames": [ + "InitState", + "PendingState", + "HoldState", + "ActiveState", + "StoppedState", + "SuspendedState", + "DoneState", + "_", + "OffState", + "UndeployedState", + "CloningState", + "CloningFailedState", + "AnyState", + "NotDoneState" + ] + }, + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Template": { + "type": "object", + "properties": { + "automatic_dsrequirements": { + "type": "string" }, - "manager_timer": { - "type": "array", - "items": { - "type": "integer" - } + "automatic_nicrequirements": { + "type": "string" }, - "market_mad": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.MarketMAD" - } + "automatic_requirements": { + "type": "string" }, - "market_madconf": { + "cloning_template_id": { + "type": "string" + }, + "context": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Context" + }, + "cpu": { + "type": "number" + }, + "cpu_cost": { + "type": "string" + }, + "cpu_model": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.CPUModel" + }, + "created_by": { + "type": "string" + }, + "disk": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.MarketMADConf" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Disk" } }, - "max_conn": { - "type": "integer" - }, - "max_conn_backlog": { - "type": "integer" - }, - "message_size": { - "type": "integer" + "disk_cost": { + "type": "string" }, - "monitoring_interval_datastore": { - "type": "integer" + "emulator": { + "type": "string" }, - "monitoring_interval_dbupdate": { - "type": "integer" + "features": { + "type": "string" }, - "monitoring_interval_host": { - "type": "integer" + "graphics": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Graphics" }, - "monitoring_interval_instance": { - "type": "integer" + "hyperv_options": { + "type": "string" }, - "monitoring_interval_market": { - "type": "integer" + "imported": { + "type": "string" }, - "network_size": { - "type": "integer" + "input": { + "type": "string" }, - "one_key": { + "instance_group": { "type": "array", "items": { "type": "string" } }, - "pcipassthrough_bus": { - "type": "string" - }, - "port": { + "instance_id": { "type": "integer" }, - "raft": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.Raft" + "memory": { + "type": "integer" }, - "rpclog": { + "memory_cost": { "type": "string" }, - "scripts_remote_dir": { + "memory_max": { "type": "string" }, - "session_expiration_time": { - "type": "integer" - }, - "showback_only_running": { + "memory_resize_mode": { "type": "string" }, - "timeout": { - "type": "integer" + "memory_slots": { + "type": "string" }, - "tm_mad": { + "nic": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.TmMAD" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.NIC" } }, - "tm_madconf": { + "nic_alias": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.TmMADConf" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.NICAlias" } }, - "user_encrypted_attr": { - "type": "array", - "items": { - "type": "string" - } + "nic_default": { + "type": "string" }, - "user_restricted_attr": { - "type": "array", - "items": { - "type": "string" - } + "numa_node": { + "type": "string" }, - "vlanids": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.VLANIDs" + "os": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.OS" }, - "vncports": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.VNCPorts" + "pci": { + "type": "string" }, - "vnet_encrypted_attr": { + "raw": { + "type": "string" + }, + "sched_action": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.SchedAction" } }, - "vnet_restricted_attr": { + "security_group_rule": { "type": "array", "items": { "type": "string" } }, - "vnmadconf": { + "snapshot": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.VNetMADConf" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Snapshot" } }, - "vxlan_ids": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_config.VxlanIDs" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Core": { - "type": "object", - "properties": { - "cpus": { + "spice_options": { "type": "string" }, - "dedicated": { - "type": "boolean" - }, - "free": { - "type": "integer" - }, - "id": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateACLRequest": { - "type": "object", - "properties": { - "resource": { - "type": "integer" - }, - "rights": { - "type": "integer" - }, - "user": { - "type": "integer" - }, - "zone": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateACLResponse": { - "type": "object", - "properties": { - "acl": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateClusterRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateClusterResponse": { - "type": "object", - "properties": { - "cluster": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateDataCenterRequest": { - "type": "object", - "properties": { - "template": { + "submit_on_hold": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateDataCenterResponse": { - "type": "object", - "properties": { - "datacenter": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateDatastoreRequest": { - "type": "object", - "properties": { - "cluster": { - "type": "integer" }, - "template": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateDatastoreResponse": { - "type": "object", - "properties": { - "datastore": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateGroupRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateGroupResponse": { - "type": "object", - "properties": { - "group": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHookRequest": { - "type": "object", - "properties": { - "template": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHookResponse": { - "type": "object", - "properties": { - "hook": { + "template_id": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHostRequest": { - "type": "object", - "properties": { - "cluster": { + }, + "tm_madsystem": { + "type": "string" + }, + "topology": { + "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "vcpu": { "type": "integer" }, - "hostname": { + "vcpu_max": { + "type": "string" + }, + "vrouter_id": { "type": "string" }, - "info_manager": { + "vrouter_keepalived_id": { "type": "string" }, - "vm_manager": { + "vrouter_keepalived_password": { "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateHostResponse": { - "type": "object", - "properties": { - "host": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateImageRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_instance.UserTemplate": { "type": "object", "properties": { - "datastore": { - "type": "integer" + "efi": { + "type": "string" }, - "enforce_capacity": { + "error": { + "type": "string" + }, + "hypervisor": { + "type": "string" + }, + "info": { + "type": "string" + }, + "logo": { + "type": "string" + }, + "lxdsecurity_privileged": { "type": "boolean" }, - "template": { + "sched_requirements": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateImageResponse": { - "type": "object", - "properties": { - "image": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskImageRequest": { - "type": "object", - "properties": { - "image_type": { + }, + "snapshot_schedule": { "type": "string" }, - "name": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "vcenter_ccrref": { "type": "string" }, - "snapshot": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskImageResponse": { - "type": "object", - "properties": { - "image": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskRequest": { - "type": "object", - "properties": { - "disk": { + "vcenter_dsref": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskResponse": { - "type": "object", - "properties": { - "instance": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskSnapshotRequest": { - "type": "object", - "properties": { - "description": { + }, + "vcenter_instance_id": { "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceDiskSnapshotResponse": { - "type": "object", - "properties": { - "instance": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceGroupRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_network.AddressRange": { "type": "object", "properties": { - "template": { + "arid": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceNICRequest": { - "type": "object", - "properties": { - "nic": { + }, + "global_prefix": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceNICResponse": { - "type": "object", - "properties": { - "instance": { - "description": "TODO: would make more sense as NIC ID, maybe docs are wrong", + }, + "ip": { + "type": "string" + }, + "ip6": { + "type": "string" + }, + "ip6_end": { + "type": "string" + }, + "ip6_global": { + "type": "string" + }, + "ip6_global_end": { + "type": "string" + }, + "ip6_ula": { + "type": "string" + }, + "ip6_ula_end": { + "type": "string" + }, + "ipend": { + "type": "string" + }, + "leases": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_network.Lease" + } + }, + "mac": { + "type": "string" + }, + "macend": { + "type": "string" + }, + "parent_network_arid": { + "type": "string" + }, + "port_size": { + "type": "string" + }, + "port_start": { + "type": "string" + }, + "size": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceRequest": { - "type": "object", - "properties": { - "pending": { - "type": "boolean" }, - "template": { + "type": { + "type": "string" + }, + "ula_prefix": { + "type": "string" + }, + "used_leases": { + "type": "string" + }, + "vnmad": { "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceResponse": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_network.Lease": { "type": "object", "properties": { "instance": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceSnapshotRequest": { - "type": "object", - "properties": { - "snapshot": { + }, + "ip": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateInstanceSnapshotResponse": { - "type": "object", - "properties": { - "snapshot": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketAppRequest": { - "type": "object", - "properties": { - "template": { + }, + "ip6": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketAppResponse": { - "type": "object", - "properties": { - "market_app": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketRequest": { - "type": "object", - "properties": { - "template": { + }, + "ip6_global": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateMarketResponse": { - "type": "object", - "properties": { - "market": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkRequest": { - "type": "object", - "properties": { - "cluster": { - "type": "integer" }, - "template": { + "ip6_link": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkResponse": { - "type": "object", - "properties": { - "network": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkTemplateRequest": { - "type": "object", - "properties": { - "template": { + }, + "ip6_ula": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateNetworkTemplateResponse": { - "type": "object", - "properties": { - "template": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterNICRequest": { - "type": "object", - "properties": { - "template": { + }, + "mac": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterNICResponse": { - "type": "object", - "properties": { - "router": { + }, + "vnet": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterRequest": { - "type": "object", - "properties": { - "template": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateRouterResponse": { - "type": "object", - "properties": { - "router": { + }, + "vrouter": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateSecurityGroupRequest": { + "github_com_softiron_manifold-api_deprecated_v2_cloud_network.Template": { "type": "object", "properties": { - "template": { + "bridge": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateSecurityGroupResponse": { - "type": "object", - "properties": { - "security_group": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateTemplateRequest": { - "type": "object", - "properties": { - "data": { + }, + "bridge_type": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateTemplateResponse": { - "type": "object", - "properties": { - "template": { + }, + "description": { + "type": "string" + }, + "dns": { + "type": "string" + }, + "gateway": { + "type": "string" + }, + "gateway6": { + "type": "string" + }, + "guest_mtu": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateUserRequest": { - "type": "object", - "properties": { - "auth": { + }, + "ip6_method": { "type": "string" }, - "gids": { - "type": "array", - "items": { - "type": "integer" + "ip6_metric": { + "type": "string" + }, + "method": { + "type": "string" + }, + "metric": { + "type": "string" + }, + "network_address": { + "type": "string" + }, + "network_mask": { + "type": "string" + }, + "outer_vlan_id": { + "type": "string" + }, + "search_domain": { + "type": "string" + }, + "security_groups": { + "type": "string" + }, + "values": { + "type": "object", + "additionalProperties": { + "type": "string" } }, - "password": { + "vcenter_from_wild": { "type": "string" }, - "username": { + "vcenter_instance_id": { + "type": "string" + }, + "vcenter_net_ref": { + "type": "string" + }, + "vcenter_portgroup_type": { + "type": "string" + }, + "vcenter_template_ref": { + "type": "string" + }, + "vlan": { + "type": "string" + }, + "vlan_id": { + "type": "string" + }, + "vn_mad": { "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateUserResponse": { + "github_com_softiron_manifold-api_deprecated_v2_metal.CephAlert": { "type": "object", "properties": { - "user": { - "type": "integer" + "message": { + "type": "string" + }, + "severity": { + "type": "string", + "enum": [ + "HEALTH_OK", + "HEALTH_WARN", + "HEALTH_ERROR" + ] } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateVNCProxyRequest": { + "github_com_softiron_manifold-api_deprecated_v2_metal.CephFlag": { "type": "object", "properties": { - "zone": { - "type": "integer" + "description": { + "type": "string" + }, + "is_set": { + "description": "True if this flag has been set, false otherwise", + "type": "boolean" + }, + "name": { + "description": "The name of the flag", + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "PRIORITY", + "EXPECTED", + "INFORMATIONAL" + ] } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateVNCProxyResponse": { + "github_com_softiron_manifold-api_deprecated_v2_metal.DiskSummary": { "type": "object", "properties": { + "capacity_MB": { + "description": "The max capacity of the disk, in MB", + "type": "integer" + }, + "id": { + "description": "The disk opaque identifier", + "type": "string" + }, "name": { + "description": "A human-readable nice name for the disk", "type": "string" }, - "password": { + "path": { + "description": "The path to the disk device", "type": "string" }, - "token": { + "smart_passed": { + "type": "boolean" + }, + "type": { "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateZoneRequest": { - "type": "object", - "properties": { - "template": { + }, + "usage": { "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.CreateZoneResponse": { - "type": "object", - "properties": { - "zone": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenter": { + "github_com_softiron_manifold-api_deprecated_v2_metal.OSDInfo": { "type": "object", - "properties": { - "clusters": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Cluster" - } - }, - "datastores": { + "properties": { + "alerts": { + "description": "A list of alerts being fired for this OSD", "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Datastore" + "type": "string" } }, - "groups": { - "type": "array", - "items": { - "type": "integer" - } + "capacity_MB": { + "description": "Amount of storage this OSD has", + "type": "integer" }, - "hosts": { + "class": { + "type": "string", + "enum": [ + "SSD", + "HDD" + ] + }, + "crush_weight": { + "type": "number" + }, + "disks": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Host" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.DiskSummary" } }, "id": { + "description": "A unique ID for the OSD", "type": "integer" }, "name": { + "description": "The OSD's name", "type": "string" }, - "networks": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_datacenter.Network" - } - }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenterTemplate" + "node_id": { + "description": "A unique ID for the node", + "type": "string" }, - "template_text": { + "node_ip": { + "description": "The public IP address of this node", "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenterResponse": { - "type": "object", - "properties": { - "datacenter": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenter" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenterTemplate": { - "type": "object", - "properties": { - "description": { + }, + "node_name": { + "description": "The containing node's name", "type": "string" }, - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "pg_count": { + "type": "integer" + }, + "reweight": { + "type": "number" + }, + "state": { + "type": "string", + "enum": [ + "UP", + "DOWN", + "OUT" + ] + }, + "used_MB": { + "description": "Amount of this OSD's storage that is being used", + "type": "integer" + }, + "utilization_percent": { + "description": "The percentage of this OSD's total storage that is being used", + "type": "integer" + }, + "variance": { + "type": "number" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DataCentersResponse": { + "github_com_softiron_manifold-api_deprecated_v2_metal.PoolInfo": { "type": "object", "properties": { - "datacenters": { + "applications": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DataCenter" + "type": "string" } - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Datastore": { - "type": "object", - "properties": { - "base_path": { - "type": "string" }, - "clusters": { - "type": "array", - "items": { - "type": "integer" - } + "capacity_MB": { + "type": "integer" }, - "datastore_mad": { + "compression": { "type": "string" }, - "disk_type": { - "type": "integer" - }, - "free_mb": { - "type": "integer" + "crush_ruleset": { + "type": "string" }, - "group_id": { + "crush_ruleset_id": { "type": "integer" }, - "group_name": { + "erasure_code_profile": { "type": "string" }, "id": { "type": "integer" }, - "images": { - "type": "array", - "items": { - "type": "integer" - } - }, "name": { "type": "string" }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" - }, - "state": { - "type": "string", - "enum": [ - "ready", - "disabled" - ] + "object_count": { + "type": "integer" }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoreTemplate" + "pg_autoscale": { + "type": "boolean" }, - "template_text": { - "type": "string" + "pg_count": { + "type": "integer" }, - "total_mb": { + "pg_placement_num": { "type": "integer" }, - "transfer_manager_mad": { - "type": "string" + "quota_max_bytes": { + "type": "integer" }, - "type": { - "type": "string", - "enum": [ - "image", - "system", - "file" - ] + "quota_max_objects": { + "type": "integer" }, - "used_mb": { + "replication_count": { "type": "integer" }, - "user_id": { + "services": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.RestServiceInfo" + } + }, + "shares": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.RestShareInfo" + } + }, + "stripe_width": { "type": "integer" }, - "user_name": { + "type": { "type": "string" + }, + "used_MB": { + "type": "integer" + }, + "utilization_percent": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoreResponse": { - "type": "object", - "properties": { - "datastore": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Datastore" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoreTemplate": { + "github_com_softiron_manifold-api_deprecated_v2_metal.RBDInfo": { "type": "object", "properties": { - "allow_orphans": { + "block_name": { "type": "string" }, - "bridge_list": { - "type": "string" + "capacity_MB": { + "type": "integer" }, - "clone_target": { - "type": "string" + "deleting": { + "description": "True if this RBD is being deleted", + "type": "boolean" }, - "clone_target_shared": { - "type": "string" + "features": { + "type": "array", + "items": { + "type": "string" + } }, - "clone_target_ssh": { + "id": { "type": "string" }, - "disk_type": { - "type": "string" + "iscsi_exportable": { + "type": "string", + "enum": [ + "AVAILABLE", + "EXPORTED", + "INVALID_OPTIONS" + ] }, - "disk_type_shared": { + "iscsi_share_id": { "type": "string" }, - "disk_type_ssh": { + "iscsi_share_name": { "type": "string" }, - "driver": { + "name": { "type": "string" }, - "ds_mad": { - "type": "string" + "object_count": { + "type": "integer" }, - "ds_migrate": { - "type": "boolean" + "object_size_B": { + "type": "integer" }, - "ln_target": { + "path": { "type": "string" }, - "ln_target_shared": { - "type": "string" + "pool_capacity_MB": { + "type": "integer" }, - "ln_target_ssh": { + "pool_erasure_code_profile": { "type": "string" }, + "pool_id": { + "type": "integer" + }, "pool_name": { "type": "string" }, - "restricted_dirs": { - "type": "string" + "pool_replication_count": { + "type": "integer" }, - "safe_dirs": { - "type": "string" + "pool_share_count": { + "type": "integer" }, - "shared": { - "type": "boolean" + "pool_type": { + "type": "string" }, - "staging_dir": { + "pool_used_MB": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_metal.RestServiceInfo": { + "type": "object", + "properties": { + "id": { + "description": "A unique ID for the service", "type": "string" }, - "tm_mad": { + "name": { "type": "string" }, - "tm_mad_system": { + "shares": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.RestShareRef" } }, "type": { + "description": "The service's share type", + "allOf": [ + { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.ShareTypeEnum" + } + ] + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_metal.RestShareInfo": { + "type": "object", + "properties": { + "id": { + "description": "A unique ID for the share", "type": "string" }, - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "vcenter_dc_name": { + "name": { + "description": "The share's name", "type": "string" }, - "vcenter_dc_ref": { + "service_id": { "type": "string" }, - "vcenter_ds_name": { + "service_name": { "type": "string" }, - "vcenter_ds_ref": { - "type": "string" + "size_MB": { + "type": "integer" }, - "vcenter_host": { + "type": { + "description": "The share's type", + "allOf": [ + { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.ShareTypeEnum" + } + ] + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_metal.RestShareRef": { + "type": "object", + "properties": { + "id": { "type": "string" }, - "vcenter_instance_id": { + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Datastores": { + "github_com_softiron_manifold-api_deprecated_v2_metal.ShareRBDResponse": { "type": "object", "properties": { - "disk_usage": { - "type": "integer" - }, - "free_disk": { - "type": "integer" - }, - "max_disk": { - "type": "integer" - }, - "used_disk": { - "type": "integer" + "rbd": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.RBDInfo" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DatastoresResponse": { + "github_com_softiron_manifold-api_deprecated_v2_metal.ShareRBDsResponse": { "type": "object", "properties": { - "datastore": { + "rbd": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Datastore" + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.RBDInfo" } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DeleteTemplateResponse": { + "github_com_softiron_manifold-api_deprecated_v2_metal.ShareTypeEnum": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3 + ], + "x-enum-comments": { + "ShareTypeCephFS": "CephFS", + "ShareTypeISCSI": "iSCSI", + "ShareTypeRBD": "RBD", + "ShareTypeSSM": "SMB" + }, + "x-enum-varnames": [ + "ShareTypeSSM", + "ShareTypeCephFS", + "ShareTypeISCSI", + "ShareTypeRBD" + ] + }, + "github_com_softiron_manifold-api_deprecated_v2_metal.StorageOSDResponse": { "type": "object", "properties": { - "template": { - "type": "integer" + "osd": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.OSDInfo" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DeployInstanceRequest": { + "github_com_softiron_manifold-api_deprecated_v2_metal.StorageOSDsResponse": { "type": "object", "properties": { - "datastore": { - "type": "integer" - }, - "enforce": { - "type": "boolean" - }, - "host": { - "type": "integer" - }, - "template": { - "type": "string" + "osds": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.OSDInfo" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DeployInstanceResponse": { + "github_com_softiron_manifold-api_deprecated_v2_metal.StoragePoolResponse": { "type": "object", "properties": { - "instance": { - "type": "integer" + "pool": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.PoolInfo" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Document": { + "github_com_softiron_manifold-api_deprecated_v2_metal.StoragePoolsResponse": { "type": "object", "properties": { - "group_id": { + "pools": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.PoolInfo" + } + } + } + }, + "github_com_softiron_manifold-api_deprecated_v2_metal.SummaryResponse": { + "type": "object", + "properties": { + "alert_count": { "type": "integer" }, - "group_name": { - "type": "string" + "alerts": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.CephAlert" + } }, - "id": { + "average_pgs_per_osd": { "type": "integer" }, - "lock": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Lock" + "flags": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_metal.CephFlag" + } }, - "name": { - "type": "string" + "health": { + "type": "string", + "enum": [ + "HEALTH_OK", + "HEALTH_WARN", + "HEALTH_ERROR" + ] }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" + "monitors_in_quorum": { + "type": "integer" }, - "template": { - "$ref": "#/definitions/cloud.DocumentTemplate" + "object_count": { + "type": "integer" }, - "template_text": { - "type": "string" + "osd_count": { + "description": "The total number of OSDs inthe cluster", + "type": "integer" }, - "type": { - "type": "string" + "osd_down": { + "type": "integer" }, - "user_id": { + "osd_in": { "type": "integer" }, - "user_name": { + "osd_out": { + "type": "integer" + }, + "osd_up": { + "type": "integer" + }, + "pg_count": { + "type": "integer" + }, + "pool_count": { + "type": "integer" + }, + "storage_total_MB": { + "type": "integer" + }, + "storage_used_MB": { + "type": "integer" + }, + "storage_utilization_percent": { + "type": "integer" + }, + "version_name": { + "description": "The name of the Ceph version", + "type": "string" + }, + "version_number": { + "description": "The Ceph version", "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DocumentResponse": { - "type": "object", - "properties": { - "document": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Document" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.DocumentsResponse": { - "type": "object", - "properties": { - "document": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Document" - } - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableDatastoreRequest": { - "type": "object", - "properties": { - "enable": { - "type": "boolean" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableDatastoreResponse": { + "github_com_softiron_manifold-api_deprecated_v2_snapshot.ListArchiveResponse": { "type": "object", "properties": { - "datastore": { - "type": "integer" + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/snapperv1.ListArchiveSnapshotsResponse" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableImageRequest": { + "github_com_softiron_manifold-api_deprecated_v2_snapshot.ListManualResponse": { "type": "object", "properties": { - "enable": { - "type": "boolean" + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/snapperv1.ListManualSnapshotsResponse" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableImageResponse": { + "github_com_softiron_manifold-api_deprecated_v2_snapshot.ListRemoteResponse": { "type": "object", "properties": { - "image": { - "type": "integer" + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/snapperv1.ListRemoteSnapshotsResponse" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketAppRequest": { + "github_com_softiron_manifold-api_deprecated_v2_snapshot.ListStackResponse": { "type": "object", "properties": { - "enable": { - "type": "boolean" + "stack": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketAppResponse": { + "github_com_softiron_manifold-api_deprecated_v2_snapshot.ListStatusResponse": { "type": "object", "properties": { - "market": { - "type": "integer" + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/snapperv1.ListStatusResponse" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketRequest": { + "github_com_softiron_manifold-api_metal.BMCNetworkInfo": { "type": "object", "properties": { - "enable": { - "type": "boolean" + "gateway": { + "description": "This network's gateway", + "type": "string" + }, + "ip_address": { + "description": "This network's IP address", + "type": "string" + }, + "mac": { + "description": "The network's MAC address", + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableMarketResponse": { + "github_com_softiron_manifold-api_metal.BcacheInfo": { "type": "object", "properties": { - "market": { + "caches": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.DiskOrPartitionRef" + } + }, + "capacity_MB": { "type": "integer" + }, + "mountpoint": { + "type": "string" + }, + "path": { + "type": "string" + }, + "stores": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.DiskOrPartitionRef" + } + }, + "usage": { + "type": "string" + }, + "used_by": { + "type": "array", + "items": { + "type": "integer" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableUserRequest": { + "github_com_softiron_manifold-api_metal.CephAlert": { "type": "object", "properties": { - "enable": { - "type": "boolean" + "message": { + "type": "string" + }, + "severity": { + "type": "string", + "enum": [ + "HEALTH_OK", + "HEALTH_WARN", + "HEALTH_ERROR" + ] } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableUserResponse": { + "github_com_softiron_manifold-api_metal.CephFlag": { "type": "object", "properties": { - "user": { - "type": "integer" + "description": { + "type": "string" + }, + "is_set": { + "description": "True if this flag has been set, false otherwise", + "type": "boolean" + }, + "name": { + "description": "The name of the flag", + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "PRIORITY", + "EXPECTED", + "INFORMATIONAL" + ] } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableZoneRequest": { + "github_com_softiron_manifold-api_metal.CephVersion": { "type": "object", "properties": { - "enable": { + "build": { + "type": "string" + }, + "is_fips": { "type": "boolean" + }, + "major": { + "type": "string" + }, + "version": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.EnableZoneResponse": { + "github_com_softiron_manifold-api_metal.CreateDatastoreRequest": { "type": "object", "properties": { - "zone": { - "type": "integer" + "name": { + "type": "string" + }, + "scheme": { + "type": "string", + "enum": [ + "triple_replication", + "ec4+2", + "ec8+3", + "ec8+4" + ] } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.FlattenImageSnapshotResponse": { + "github_com_softiron_manifold-api_metal.DiskInfo": { "type": "object", "properties": { - "image": { + "boot": { + "description": "True if this disk is the boot disk for the node", + "type": "boolean" + }, + "caddy_no": { "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Group": { - "type": "object", - "properties": { - "admins": { + }, + "caddy_type": { + "type": "string" + }, + "capacity_MB": { + "description": "The max capacity of the disk, in MB.", + "type": "integer" + }, + "have_smart_info": { + "type": "boolean" + }, + "id": { + "description": "The disk opaque identifier", + "type": "string" + }, + "location_in_caddy": { + "type": "integer" + }, + "name": { + "description": "A human-readable nice name for the disk", + "type": "string" + }, + "node_id": { + "description": "The ID of the node this disk is inside", + "type": "string" + }, + "node_name": { + "description": "The name of the node this disk is inside", + "type": "string" + }, + "number": { + "type": "integer" + }, + "osds": { + "description": "A list of the OSDs associated with this disk", "type": "array", "items": { "type": "integer" } }, - "datastore_quota": { + "partitions": { + "description": "A list of partitions", "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDatastore" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.PartitionInfo" } }, - "default_group_quotas": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDefaultQuotas" - }, - "id": { - "type": "integer" + "path": { + "description": "The path to the disk device", + "type": "string" }, - "image_quota": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserImage" - } + "sata": { + "type": "string" }, - "instance_quota": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserInstance" + "serial_no": { + "description": "This disk's serial number", + "type": "string" }, - "name": { + "smart_message": { "type": "string" }, - "network_quota": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserNetwork" - } + "smart_passed": { + "type": "boolean" }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.GroupTemplate" + "smart_status": { + "type": "integer" }, - "template_text": { + "temperature_C": { + "type": "integer" + }, + "type": { "type": "string" }, - "users": { - "type": "array", - "items": { - "type": "integer" - } + "usage": { + "type": "string" + }, + "wwn": { + "description": "A unique ID for this disk", + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.GroupQuotaResponse": { + "github_com_softiron_manifold-api_metal.DiskOrPartitionRef": { "type": "object", "properties": { - "quota": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.UserDefaultQuotas" + "disk_id": { + "type": "string" + }, + "partition_index": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.GroupResponse": { + "github_com_softiron_manifold-api_metal.DiskSummary": { "type": "object", "properties": { - "group": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Group" + "capacity_MB": { + "description": "The max capacity of the disk, in MB", + "type": "integer" + }, + "id": { + "description": "The disk opaque identifier", + "type": "string" + }, + "name": { + "description": "A human-readable nice name for the disk", + "type": "string" + }, + "path": { + "description": "The path to the disk device", + "type": "string" + }, + "smart_passed": { + "type": "boolean" + }, + "type": { + "type": "string" + }, + "usage": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.GroupTemplate": { + "github_com_softiron_manifold-api_metal.FanInfo": { "type": "object", "properties": { - "sunstone": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.SunstoneTemplate" + "id": { + "type": "integer" }, - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "reserved": { + "description": "True if this fan is in reserved mode", + "type": "boolean" + }, + "speed": { + "description": "Current speed fan is running at, in RPM.", + "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.GroupsResponse": { + "github_com_softiron_manifold-api_metal.HardwareInfo": { "type": "object", "properties": { - "groups": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Group" - } + "id": { + "type": "integer" + }, + "revision": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HoldNetworkRequest": { + "github_com_softiron_manifold-api_metal.HostDiskResponse": { "type": "object", "properties": { - "template": { - "type": "string" + "disk": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.DiskInfo" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HoldNetworkResponse": { + "github_com_softiron_manifold-api_metal.HostDisksResponse": { "type": "object", "properties": { - "network": { - "type": "integer" + "disks": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.DiskInfo" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Hook": { + "github_com_softiron_manifold-api_metal.HostResponse": { "type": "object", "properties": { - "hook_log": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookLog" - }, - "id": { - "type": "integer" + "alerts": { + "description": "A list of alerts firing for this node", + "type": "array", + "items": { + "type": "string" + } }, - "name": { + "asset": { + "description": "User defined asset tag for the node", "type": "string" }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookTemplate" + "baseboard": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HardwareInfo" }, - "template_text": { - "type": "string" + "bcaches": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.BcacheInfo" + } }, - "type": { - "type": "string" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HookExecutionRecord": { - "type": "object", - "properties": { - "arguments": { + "bmc_network": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.BMCNetworkInfo" + }, + "caddy_ids": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HardwareInfo" + } + }, + "caddy_info": { + "type": "boolean" + }, + "ceph_version": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.CephVersion" + }, + "chassis_type": { + "description": "This node's chassis type", "type": "string" }, - "execution_id": { + "cluster": { + "$ref": "#/definitions/metal.ClusterInfo" + }, + "cpu_MHz": { "type": "integer" }, - "execution_result": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookExecutionResult" + "cpu_count_logical": { + "type": "integer" }, - "hook_id": { + "cpu_count_physical": { "type": "integer" }, - "remote_host": { + "disks": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.DiskInfo" + } + }, + "fans": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.FanInfo" + } + }, + "firmware_bmc": { + "description": "The version of the firmware this node's BMC is running", "type": "string" }, - "retry": { + "firmware_uboot": { "type": "string" }, - "timestamp": { + "firmware_uefi": { + "description": "The version of the firmware this node's SoC is running", + "type": "string" + }, + "id": { + "description": "A unique ID for the node", + "type": "string" + }, + "identify_led": { + "description": "True if this node's identify LED is on", + "type": "boolean" + }, + "in_cluster": { + "description": "True if this node is in a Ceph cluster", + "type": "boolean" + }, + "is_softiron": { + "description": "True if SoftIron hardware", + "type": "boolean" + }, + "mainboard": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HardwareInfo" + }, + "memory_GB": { + "description": "The amount of RAM this node has, in GB", "type": "integer" }, - "values": { + "model": { + "description": "This node's model", + "type": "string" + }, + "name": { + "description": "The node's name", + "type": "string" + }, + "nics": { "type": "object", "additionalProperties": { - "type": "string" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HardwareInfo" } - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HookExecutionResult": { - "type": "object", - "properties": { - "code": { + }, + "os": { "type": "string" }, - "command": { + "os_version": { "type": "string" }, - "stderr": { + "osd_count": { + "type": "integer" + }, + "power_w": { + "description": "The average power draw of this node, in watts", + "type": "integer" + }, + "roles": { + "description": "The roles this node has been given", + "type": "array", + "items": { + "type": "string" + } + }, + "serial_no": { "type": "string" }, - "stdout": { + "soc_network": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.NetInterfaceInfo" + } + }, + "static_id": { + "description": "This node's serial number", + "type": "integer" + }, + "storage_total_MB": { + "type": "integer" + }, + "storage_used_MB": { + "type": "integer" + }, + "temperature_C": { + "description": "The average temperature of this node in centigrade", + "type": "integer" + }, + "timestamp": { + "type": "string" + }, + "up_since": { "type": "string" + }, + "volume_groups": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.VolumeGroupInfo" + } + } + } + }, + "github_com_softiron_manifold-api_metal.HostVolumeGroupResponse": { + "type": "object", + "properties": { + "volume_group": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.VolumeGroupInfo" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HookLog": { + "github_com_softiron_manifold-api_metal.HostVolumeGroupsResponse": { "type": "object", "properties": { - "execution_record": { + "volume_groups": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookExecutionRecord" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.VolumeGroupInfo" } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HookLogResponse": { + "github_com_softiron_manifold-api_metal.HostWithID": { "type": "object", "properties": { - "hook_log": { + "cloud_id": { + "description": "only set for cloud hosts", + "type": "integer" + }, + "compute": { + "type": "boolean" + }, + "ips": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HookLog" + "type": "string" } + }, + "name": { + "type": "string" + }, + "static": { + "type": "boolean" + }, + "storage": { + "type": "boolean" + }, + "up": { + "description": "True if the host is up", + "type": "boolean" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HookResponse": { + "github_com_softiron_manifold-api_metal.HostsResponse": { "type": "object", "properties": { - "hook": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Hook" + "errors": { + "type": "array", + "items": { + "type": "string" + } + }, + "hosts": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.HostWithID" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HookTemplate": { + "github_com_softiron_manifold-api_metal.LogicalVolumeInfo": { "type": "object", "properties": { - "arguments": { - "type": "string" + "capacity_MB": { + "description": "The max capacity of this logical volume, in MB.", + "type": "integer" }, - "arguments_stdin": { + "mountpoint": { "type": "string" }, - "call": { + "name": { + "description": "The logical volume name", "type": "string" }, - "command": { + "path": { + "description": "The path to the logical volume", "type": "string" }, - "lcm_state": { - "type": "string" + "physical_volume_paths": { + "type": "array", + "items": { + "type": "string" + } }, - "remote": { + "usage": { "type": "string" }, - "resource": { - "type": "string" + "used_by": { + "type": "array", + "items": { + "type": "integer" + } }, - "state": { + "uuid": { + "description": "A unique ID for this partition", "type": "string" - }, - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HooksResponse": { + "github_com_softiron_manifold-api_metal.NetInterfaceInfo": { "type": "object", "properties": { - "hook": { + "ip_address": { + "description": "This network's IP address", "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Hook" + "type": "string" } + }, + "link": { + "type": "boolean" + }, + "link_speed_Mbs": { + "type": "integer" + }, + "mac": { + "description": "The network's MAC address", + "type": "string" + }, + "mtu": { + "description": "The network's maximum transmission unit", + "type": "integer" + }, + "name": { + "description": "This network's name", + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Host": { + "github_com_softiron_manifold-api_metal.OSDInfo": { "type": "object", "properties": { - "cluster": { - "type": "string" + "alerts": { + "description": "A list of alerts being fired for this OSD", + "type": "array", + "items": { + "type": "string" + } }, - "cluster_id": { + "capacity_MB": { + "description": "Amount of storage this OSD has", "type": "integer" }, - "host_share": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostShare" + "class": { + "type": "string", + "enum": [ + "SSD", + "HDD" + ] + }, + "crush_weight": { + "type": "number" + }, + "disks": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.DiskSummary" + } }, "id": { + "description": "A unique ID for the OSD", "type": "integer" }, - "information_manager_mad": { + "name": { + "description": "The OSD's name", "type": "string" }, - "instance_mad": { + "node_id": { + "description": "A unique ID for the node", "type": "string" }, - "instances": { - "type": "array", - "items": { - "type": "integer" - } - }, - "monitoring": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoring" + "node_ip": { + "description": "The public IP address of this node", + "type": "string" }, - "name": { + "node_name": { + "description": "The containing node's name", "type": "string" }, - "prev_state": { + "pg_count": { "type": "integer" }, + "reweight": { + "type": "number" + }, "state": { + "type": "string", + "enum": [ + "UP", + "DOWN", + "OUT" + ] + }, + "used_MB": { + "description": "Amount of this OSD's storage that is being used", "type": "integer" }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostTemplate" + "utilization_percent": { + "description": "The percentage of this OSD's total storage that is being used", + "type": "integer" }, - "template_text": { - "type": "string" + "variance": { + "type": "number" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoring": { + "github_com_softiron_manifold-api_metal.PartitionInfo": { "type": "object", "properties": { - "capacity": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Capacity" + "capacity_MB": { + "description": "The max capacity of the partition, in MB.", + "type": "integer" }, - "id": { + "index": { "type": "integer" }, - "system": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.System" + "mountpoint": { + "type": "string" }, - "timestamp": { - "type": "integer" - } - } - }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoringResponse": { - "type": "object", - "properties": { - "monitoring": { + "path": { + "description": "The path to the partition on the disk", + "type": "string" + }, + "usage": { + "type": "string" + }, + "used_by": { + "description": "The OSDs that use this partition", "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoring" + "type": "integer" } + }, + "uuid": { + "description": "A unique ID for this partition", + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HostResponse": { + "github_com_softiron_manifold-api_metal.PhysicalVolumeInfo": { "type": "object", "properties": { - "host": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Host" + "bcache_path": { + "type": "string" + }, + "capacity_MB": { + "description": "The max capacity of the physical volume, in MB", + "type": "integer" + }, + "disk_id": { + "description": "The disk opaque identifier", + "type": "string" + }, + "partition_index": { + "description": "Index of the partition within the disk, 0 for a whole disk", + "type": "integer" + }, + "path": { + "description": "The path to the physical volume device", + "type": "string" + }, + "usage": { + "type": "string" + }, + "used_by": { + "description": "The OSDs that use this physical volume", + "type": "array", + "items": { + "type": "integer" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HostShare": { + "github_com_softiron_manifold-api_metal.PoolInfo": { "type": "object", "properties": { - "cpuusage": { + "applications": { + "type": "array", + "items": { + "type": "string" + } + }, + "capacity_MB": { "type": "integer" }, - "datastores": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Datastores" + "compression": { + "type": "string" }, - "instances_thread": { + "crush_ruleset": { + "type": "string" + }, + "crush_ruleset_id": { "type": "integer" }, - "max_cpu": { + "erasure_code_profile": { + "type": "string" + }, + "id": { "type": "integer" }, - "max_mem": { + "name": { + "type": "string" + }, + "object_count": { "type": "integer" }, - "mem_usage": { + "pg_autoscale": { + "type": "boolean" + }, + "pg_count": { "type": "integer" }, - "numa_nodes": { + "pg_placement_num": { + "type": "integer" + }, + "quota_max_bytes": { + "type": "integer" + }, + "quota_max_objects": { + "type": "integer" + }, + "replication_count": { + "type": "integer" + }, + "services": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Node" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.RestServiceInfo" } }, - "pcidevices": { + "shares": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.PCI" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.RestShareInfo" } }, - "running_instances": { + "stripe_width": { "type": "integer" }, - "total_cpu": { + "type": { + "type": "string" + }, + "used_MB": { "type": "integer" }, - "total_mem": { + "utilization_percent": { "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HostTemplate": { + "github_com_softiron_manifold-api_metal.RBDInfo": { "type": "object", "properties": { - "arch": { - "type": "string" - }, - "cgroups_version": { + "block_name": { "type": "string" }, - "cpuspeed": { + "capacity_MB": { "type": "integer" }, - "hostname": { - "type": "string" - }, - "hypervisor": { - "type": "string" - }, - "im_mad": { - "type": "string" + "deleting": { + "description": "True if this RBD is being deleted", + "type": "boolean" }, - "instance": { + "features": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostTemplateInstance" + "type": "string" } }, - "instance_mad": { - "type": "string" - }, - "kvm_cpumodel": { + "id": { "type": "string" }, - "kvm_cpumodels": { - "type": "array", - "items": { - "type": "string" - } - }, - "kvm_machines": { - "type": "array", - "items": { - "type": "string" - } + "iscsi_exportable": { + "type": "string", + "enum": [ + "AVAILABLE", + "EXPORTED", + "INVALID_OPTIONS" + ] }, - "modelname": { + "iscsi_share_id": { "type": "string" }, - "reserved_cpu": { + "iscsi_share_name": { "type": "string" }, - "reserved_mem": { + "name": { "type": "string" }, - "total_wilds": { + "object_count": { "type": "integer" }, - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "object_size_B": { + "type": "integer" }, - "vcenter_ccrref": { + "path": { "type": "string" }, - "vcenter_dsref": { - "type": "array", - "items": { - "type": "string" - } + "pool_capacity_MB": { + "type": "integer" }, - "vcenter_host": { + "pool_erasure_code_profile": { "type": "string" }, - "vcenter_instance_id": { + "pool_id": { + "type": "integer" + }, + "pool_name": { "type": "string" }, - "vcenter_name": { + "pool_replication_count": { + "type": "integer" + }, + "pool_share_count": { + "type": "integer" + }, + "pool_type": { "type": "string" }, - "vcenter_password": { + "pool_used_MB": { + "type": "integer" + } + } + }, + "github_com_softiron_manifold-api_metal.RestServiceInfo": { + "type": "object", + "properties": { + "id": { + "description": "A unique ID for the service", "type": "string" }, - "vcenter_resource_pool_info": { + "name": { + "type": "string" + }, + "shares": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.RestShareRef" } }, - "vcenter_user": { + "type": { + "description": "The service's share type", + "allOf": [ + { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.ShareTypeEnum" + } + ] + } + } + }, + "github_com_softiron_manifold-api_metal.RestShareInfo": { + "type": "object", + "properties": { + "id": { + "description": "A unique ID for the share", "type": "string" }, - "vcenter_version": { + "name": { + "description": "The share's name", "type": "string" }, - "version": { + "service_id": { "type": "string" }, - "wilds": { + "service_name": { + "type": "string" + }, + "size_MB": { + "type": "integer" + }, + "type": { + "description": "The share's type", + "allOf": [ + { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.ShareTypeEnum" + } + ] + } + } + }, + "github_com_softiron_manifold-api_metal.RestShareRef": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HostTemplateInstance": { + "github_com_softiron_manifold-api_metal.ShareRBDResponse": { + "type": "object", + "properties": { + "rbd": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.RBDInfo" + } + } + }, + "github_com_softiron_manifold-api_metal.ShareRBDsResponse": { + "type": "object", + "properties": { + "rbd": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.RBDInfo" + } + } + } + }, + "github_com_softiron_manifold-api_metal.ShareTypeEnum": { + "type": "integer", + "enum": [ + 0, + 1, + 2, + 3 + ], + "x-enum-comments": { + "ShareTypeCephFS": "CephFS", + "ShareTypeISCSI": "iSCSI", + "ShareTypeRBD": "RBD", + "ShareTypeSSM": "SMB" + }, + "x-enum-varnames": [ + "ShareTypeSSM", + "ShareTypeCephFS", + "ShareTypeISCSI", + "ShareTypeRBD" + ] + }, + "github_com_softiron_manifold-api_metal.StorageOSDResponse": { "type": "object", "properties": { - "deploy_id": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "monitor": { - "type": "string" - }, - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "osd": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.OSDInfo" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HostsMonitoringResponse": { + "github_com_softiron_manifold-api_metal.StorageOSDsResponse": { "type": "object", "properties": { - "monitoring": { + "osds": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.HostMonitoring" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.OSDInfo" } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HostsResponse": { + "github_com_softiron_manifold-api_metal.StoragePoolResponse": { "type": "object", "properties": { - "hosts": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Host" - } + "pool": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.PoolInfo" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.HugePage": { + "github_com_softiron_manifold-api_metal.StoragePoolsResponse": { "type": "object", "properties": { - "free": { - "type": "integer" - }, - "pages": { - "type": "integer" - }, - "size": { - "type": "integer" - }, - "usage": { - "type": "integer" + "pools": { + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.PoolInfo" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Image": { + "github_com_softiron_manifold-api_metal.SummaryResponse": { "type": "object", "properties": { - "app_clones": { + "alert_count": { + "type": "integer" + }, + "alerts": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.CephAlert" } }, - "clones": { + "average_pgs_per_osd": { + "type": "integer" + }, + "flags": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.CephFlag" } }, - "cloning_id": { - "type": "integer" + "health": { + "type": "string", + "enum": [ + "HEALTH_OK", + "HEALTH_WARN", + "HEALTH_ERROR" + ] }, - "cloning_ops": { + "monitors_in_quorum": { "type": "integer" }, - "datastore": { - "type": "string" - }, - "datastore_id": { + "object_count": { "type": "integer" }, - "disk_type": { + "osd_count": { + "description": "The total number of OSDs inthe cluster", "type": "integer" }, - "filesystem": { - "type": "string" - }, - "format": { - "type": "string" - }, - "group_id": { + "osd_down": { "type": "integer" }, - "group_name": { - "type": "string" - }, - "id": { + "osd_in": { "type": "integer" }, - "instances": { - "type": "array", - "items": { - "type": "integer" - } - }, - "lock": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Lock" - }, - "name": { - "type": "string" - }, - "path": { - "type": "string" - }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" + "osd_out": { + "type": "integer" }, - "persistent": { + "osd_up": { "type": "integer" }, - "prev_state": { + "pg_count": { "type": "integer" }, - "registration_time": { - "type": "string" + "pool_count": { + "type": "integer" }, - "running_instances": { + "storage_total_MB": { "type": "integer" }, - "size": { + "storage_used_MB": { "type": "integer" }, - "snapshots": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Snapshots" + "storage_utilization_percent": { + "type": "integer" }, - "source": { + "version_name": { + "description": "The name of the Ceph version", "type": "string" }, - "state": { + "version_number": { + "description": "The Ceph version", + "type": "string" + } + } + }, + "github_com_softiron_manifold-api_metal.VolumeGroupInfo": { + "type": "object", + "properties": { + "capacity_MB": { + "description": "The max capacity of this volume group, in MB.", "type": "integer" }, - "target_snapshot": { - "type": "integer" + "logical_volumes": { + "description": "A list of logical volumes", + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.LogicalVolumeInfo" + } }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.ImageTemplate" + "name": { + "description": "The volume group name", + "type": "string" }, - "template_text": { + "node_id": { + "description": "The ID of the node this volume groupis in", "type": "string" }, - "type": { - "type": "integer" + "node_name": { + "description": "The name of the node this volume group is inside", + "type": "string" }, - "user_id": { - "type": "integer" + "physical_volumes": { + "description": "The physical volumes in this volume group", + "type": "array", + "items": { + "$ref": "#/definitions/github_com_softiron_manifold-api_metal.PhysicalVolumeInfo" + } }, - "user_name": { + "usage": { "type": "string" + }, + "used_by": { + "description": "The OSDs that use this volume group", + "type": "array", + "items": { + "type": "integer" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ImageResponse": { + "github_com_softiron_manifold-api_snapshot.ListArchiveResponse": { "type": "object", "properties": { - "image": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Image" + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/snapperv1.ListArchiveSnapshotsResponse" + } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ImageTemplate": { + "github_com_softiron_manifold-api_snapshot.ListManualResponse": { "type": "object", "properties": { - "dev_prefix": { - "type": "string" - }, - "driver": { - "type": "string" - }, - "from_app": { - "type": "string" - }, - "from_app_md5": { - "type": "string" - }, - "from_app_name": { - "type": "string" - }, - "size": { - "type": "integer" - }, - "values": { - "type": "object", - "additionalProperties": { - "type": "string" + "snapshots": { + "type": "array", + "items": { + "$ref": "#/definitions/snapperv1.ListManualSnapshotsResponse" } - }, - "vcenter_imported": { - "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.ImagesResponse": { + "github_com_softiron_manifold-api_snapshot.ListRemoteResponse": { "type": "object", "properties": { - "images": { + "snapshots": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Image" + "$ref": "#/definitions/snapperv1.ListRemoteSnapshotsResponse" } } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.Instance": { + "github_com_softiron_manifold-api_snapshot.ListStackResponse": { "type": "object", "properties": { - "deploy_id": { - "type": "string" - }, - "end_time": { - "type": "string" - }, - "group_id": { - "type": "integer" - }, - "group_name": { + "stack": { "type": "string" - }, - "history_records": { + } + } + }, + "github_com_softiron_manifold-api_snapshot.ListStatusResponse": { + "type": "object", + "properties": { + "snapshots": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.History" + "$ref": "#/definitions/snapperv1.ListStatusResponse" } + } + } + }, + "hc.Perms": { + "type": "object", + "properties": { + "group_admin": { + "type": "boolean" }, - "id": { - "type": "integer" - }, - "last_poll": { - "type": "string" - }, - "lcm_state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LCMState" + "group_manage": { + "type": "boolean" }, - "monitoring": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Monitoring" + "group_use": { + "type": "boolean" }, - "name": { - "type": "string" + "other_admin": { + "type": "boolean" }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" + "other_manage": { + "type": "boolean" }, - "prev_lcm_state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LCMState" + "other_use": { + "type": "boolean" }, - "prev_state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.State" + "owner_admin": { + "type": "boolean" }, - "reschedule": { + "owner_manage": { "type": "boolean" }, - "snapshots": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.DiskSnapshots" + "owner_use": { + "type": "boolean" + } + } + }, + "insttmpl.Template": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" } }, - "start_time": { + "vcenter_ccrref": { "type": "string" }, - "state": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.State" - }, - "template": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Template" - }, - "template_text": { + "vcenter_instance_id": { "type": "string" }, - "user_id": { - "type": "integer" + "vcenter_template_ref": { + "type": "string" + } + } + }, + "manifold.InfoResponse": { + "type": "object", + "properties": { + "product_name": { + "type": "string" }, - "user_name": { + "product_release": { "type": "string" + } + } + }, + "manifold.ResponseError": { + "type": "object", + "properties": { + "code": { + "type": "integer" }, - "user_template": { - "$ref": "#/definitions/instance.UserTemplate" + "details": { + "type": "array", + "items": { + "type": "string" + } }, - "user_template_text": { + "error": { "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroup": { + "metal.ClusterInfo": { "type": "object", "properties": { - "gid": { - "type": "integer" + "fsid": { + "type": "string" }, - "group_name": { + "name": { "type": "string" }, - "id": { + "node_count": { + "type": "integer" + } + } + }, + "metal.ResourceCapacity": { + "type": "object", + "properties": { + "allocated": { "type": "integer" - }, - "lock": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Lock" }, "name": { "type": "string" }, - "permissions": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.Permissions" + "total": { + "type": "integer" }, - "roles": { + "units": { + "type": "string" + } + } + }, + "metal.TotalCapacity": { + "type": "object", + "properties": { + "capacity": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.GroupRole" + "$ref": "#/definitions/metal.ResourceCapacity" + } + } + } + }, + "nettmpl.Template": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" } }, - "template": { - "$ref": "#/definitions/cloud.InstanceGroupTemplate" - }, - "template_text": { + "vnmad": { + "type": "string" + } + } + }, + "snapperv1.ListArchiveSnapshotsResponse": { + "type": "object", + "properties": { + "chain": { "type": "string" }, - "uid": { - "type": "integer" + "complete": { + "type": "boolean" }, - "user_name": { + "tag": { "type": "string" + }, + "used_size": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroupResponse": { + "snapperv1.ListManualSnapshotsResponse": { "type": "object", "properties": { - "instance_group": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroup" + "name": { + "type": "string" + }, + "tag": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroupsResponse": { + "snapperv1.ListRemoteSnapshotsResponse": { "type": "object", "properties": { - "instance_groups": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceGroup" - } + "image": { + "type": "string" + }, + "provisioned_size": { + "type": "integer" + }, + "tag": { + "type": "string" + }, + "used_size": { + "type": "integer" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceMonitoringResponse": { + "snapperv1.ListStatusResponse": { "type": "object", "properties": { - "monitoring": { + "finished": { + "$ref": "#/definitions/timestamppb.Timestamp" + }, + "hypervisor": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "instance": { + "type": "integer" + }, + "progress": { "type": "array", "items": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud_instance.Monitoring" + "type": "integer" } + }, + "rbd": { + "type": "string" + }, + "schedule": { + "type": "string" + }, + "scheduled": { + "$ref": "#/definitions/timestamppb.Timestamp" + }, + "started": { + "$ref": "#/definitions/timestamppb.Timestamp" + }, + "type": { + "type": "string" } } }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceResponse": { + "timestamppb.Timestamp": { "type": "object", "properties": { - "instance": { - "$ref": "#/definitions/github_com_softiron_manifold-api_deprecated_v2_cloud.LockedInstance" + "nanos": { + "description": "Non-negative fractions of a second at nanosecond resolution. Negative\nsecond values with fractions must still have non-negative nanos values\nthat count forward in time. Must be from 0 to 999,999,999\ninclusive.", + "type": "integer" + }, + "seconds": { + "description": "Represents seconds of UTC time since Unix epoch\n1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to\n9999-12-31T23:59:59Z inclusive.", + "type": "integer" } } + } + }, + "securityDefinitions": { + "BasicAuth": { + "type": "basic" }, - "github_com_softiron_manifold-api_deprecated_v2_cloud.InstanceTemplate": { - "type": "object", - "properties": { - "gid": { - "type": "integer" - }, - "gname": { - "type": "string" - }, + "Token": { + "type": "apiKey", + "name": "Authorization", + "in": "header" + } + } +} }, "id": { "type": "integer" },