@itentialopensource/adapter-morpheus
Version:
This adapter integrates with system described as: morpheus.
1,509 lines • 37.2 kB
JSON
{
"openapi":"3.0.0",
"servers":[
{
"url":"https://edge.morpheus.com/api",
"description":"",
"variables":{
}
}
],
"info":{
"version":"8f0532e0-b435-4b10-9afd-2e5d5cae4fc5",
"title":"Morpheus",
"description":"",
"termsOfService":"",
"contact":{
},
"license":{
"name":""
}
},
"paths":{
"/clusters": {
"post": {
"tags": [
"cluster"
],
"summary": "create a cluster",
"description": "create a cluster",
"operationId": "createCluster",
"parameters": [],
"requestBody": {
"description": "cluster to create",
"content": {
"application/json": {
"schema": {
"title": "cluster",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
},
"get": {
"tags": [
"cluster"
],
"summary": "get all clusters",
"description": "get all clusters",
"operationId": "getClusters",
"parameters": [
{
"name": "filter",
"in": "query",
"description": "filter for what to get",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/cluster/{clusterId}":{
"get":{
"tags": [
"cluster"
],
"summary": "get cluster by id",
"description": "get cluster by id",
"operationId": "getClusterById",
"parameters":[
{
"name": "clusterId",
"in": "path",
"description": "the id of the cluster to get",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
},
"put": {
"tags": [
"cluster"
],
"summary": "update a cluster",
"description": "update a cluster",
"operationId": "updateCluster",
"parameters": [
{
"name": "clusterId",
"in": "path",
"description": "the id of the cluster to update",
"required": true,
"schema": {
"type": "number"
}
}
],
"requestBody": {
"description": "cluster changes",
"content": {
"application/json": {
"schema": {
"title": "cluster",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
},
"delete":{
"tags": [
"cluster"
],
"summary": "delete cluster",
"description": "delete cluster",
"operationId": "deleteCluster",
"parameters":[
{
"name": "clusterId",
"in": "path",
"description": "the id of the cluster to delete",
"required": true,
"schema": {
"type": "number"
}
},
{
"name": "options",
"in": "query",
"description": "options to take on delete",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/cluster/{clusterId}/permissions":{
"put": {
"tags": [
"cluster"
],
"summary": "update cluster permissions",
"description": "update cluster permissions",
"operationId": "updateClusterPermissions",
"parameters": [
{
"name": "clusterId",
"in": "path",
"description": "the id of the cluster to update",
"required": true,
"schema": {
"type": "number"
}
}
],
"requestBody": {
"description": "cluster permissions",
"content": {
"application/json": {
"schema": {
"title": "clusterPerm",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/cluster/{clusterId}/containers":{
"get":{
"tags": [
"cluster"
],
"summary": "get containters",
"description": "get containters",
"operationId": "getContainers",
"parameters":[
{
"name": "clusterId",
"in": "path",
"description": "the id of the cluster to get containers from",
"required": true,
"schema": {
"type": "number"
}
},
{
"name": "filter",
"in": "query",
"description": "filter for what to get",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances": {
"post": {
"tags": [
"instance"
],
"summary": "create an instance",
"description": "create an instance",
"operationId": "createInstance",
"parameters": [],
"requestBody": {
"description": "instance to create",
"content": {
"application/json": {
"schema": {
"title": "instance",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
},
"get": {
"tags": [
"instance"
],
"summary": "get all instances",
"description": "get all instances",
"operationId": "getInstances",
"parameters": [
{
"name": "filter",
"in": "query",
"description": "filter for what to get",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}":{
"get":{
"tags": [
"instance"
],
"summary": "get instance by id",
"description": "get instance by id",
"operationId": "getInstanceById",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to get",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
},
"put": {
"tags": [
"instance"
],
"summary": "update a instance",
"description": "update a instance",
"operationId": "updateInstance",
"parameters": [
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to update",
"required": true,
"schema": {
"type": "number"
}
}
],
"requestBody": {
"description": "instance changes",
"content": {
"application/json": {
"schema": {
"title": "instance",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
},
"delete":{
"tags": [
"instance"
],
"summary": "delete instance",
"description": "delete instance",
"operationId": "deleteInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to delete",
"required": true,
"schema": {
"type": "number"
}
},
{
"name": "options",
"in": "query",
"description": "options to take on delete",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/envs":{
"get":{
"tags": [
"instance"
],
"summary": "get instance environment variables",
"description": "get instance environment variables",
"operationId": "getInstanceEnvironment",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to get the environment of",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/history":{
"get":{
"tags": [
"instance"
],
"summary": "get instance history",
"description": "get instance history",
"operationId": "getInstanceHistory",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to get the history of",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/containers":{
"get":{
"tags": [
"instance"
],
"summary": "get instance container details",
"description": "get instance container details",
"operationId": "getInstanceContainerDetails",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to get the container details of",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instance-types":{
"get":{
"tags": [
"instance"
],
"summary": "get all instance types",
"description": "get all instance types",
"operationId": "getInstanceTypes",
"parameters":[],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instance-types/{typeId}":{
"get":{
"tags": [
"instance"
],
"summary": "get instance type by id",
"description": "get instance type by id",
"operationId": "getInstanceTypeById",
"parameters":[
{
"name": "typeId",
"in": "path",
"description": "the id of the instance type to get",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/service-plans":{
"get":{
"tags": [
"instance"
],
"summary": "get available service plans",
"description": "get available service plans",
"operationId": "getServicePlans",
"parameters":[
{
"name": "filter",
"in": "query",
"description": "filter for what to get",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/stop":{
"put":{
"tags": [
"instance"
],
"summary": "stop an instance",
"description": "stop an instance",
"operationId": "stopInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to stop",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/start":{
"put":{
"tags": [
"instance"
],
"summary": "start an instance",
"description": "start an instance",
"operationId": "startInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to start",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/restart":{
"put":{
"tags": [
"instance"
],
"summary": "restart an instance",
"description": "restart an instance",
"operationId": "restartInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to restart",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/suspend":{
"put":{
"tags": [
"instance"
],
"summary": "suspend an instance",
"description": "suspend an instance",
"operationId": "suspendInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to suspend",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/reject":{
"put":{
"tags": [
"instance"
],
"summary": "reject an instance",
"description": "reject an instance",
"operationId": "rejectInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to reject",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/resize":{
"put":{
"tags": [
"instance"
],
"summary": "resize an instance",
"description": "resize an instance",
"operationId": "resizeInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to resize",
"required": true,
"schema": {
"type": "number"
}
}
],
"requestBody": {
"description": "resize information",
"content": {
"application/json": {
"schema": {
"title": "resize",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/workflow":{
"put":{
"tags": [
"instance"
],
"summary": "run workflow on an instance",
"description": "run workflow on an instance",
"operationId": "runInstanceWorkflow",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to run workflow on",
"required": true,
"schema": {
"type": "number"
}
},
{
"name": "workflowId",
"in": "query",
"description": "the id of the workflow to run",
"required": false,
"schema": {
"type": "number"
}
},
{
"name": "workflowName",
"in": "query",
"description": "the name of the workflow to run",
"required": false,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"description": "workflow options",
"content": {
"application/json": {
"schema": {
"title": "workflowOptions",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/clone":{
"put":{
"tags": [
"instance"
],
"summary": "clone an instance",
"description": "clone an instance",
"operationId": "cloneInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to clone",
"required": true,
"schema": {
"type": "number"
}
}
],
"requestBody": {
"description": "clone changes",
"content": {
"application/json": {
"schema": {
"title": "clone",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/backup":{
"put":{
"tags": [
"instance"
],
"summary": "backup an instance",
"description": "backup an instance",
"operationId": "backupInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to backup",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/backups":{
"get":{
"tags": [
"instance"
],
"summary": "get list of backups for an instance",
"description": "get list of backups for an instance",
"operationId": "listInstanceBackups",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to get backups for",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/snapshots":{
"get":{
"tags": [
"instance"
],
"summary": "get list of snapshots for an instance",
"description": "get list of snapshots for an instance",
"operationId": "listInstanceSnapshots",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to get snapshots for",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/snapshot":{
"put":{
"tags": [
"instance"
],
"summary": "snapshot an instance",
"description": "snapshot an instance",
"operationId": "snapshotInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to snapshot",
"required": true,
"schema": {
"type": "number"
}
}
],
"requestBody": {
"description": "snapshot information",
"content": {
"application/json": {
"schema": {
"title": "snapshot",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/import-snapshot":{
"put":{
"tags": [
"instance"
],
"summary": "import instance snapshot",
"description": "import instance snapshot",
"operationId": "importInstanceSnapshot",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to import the snapshot",
"required": true,
"schema": {
"type": "number"
}
}
],
"requestBody": {
"description": "storage information",
"content": {
"application/json": {
"schema": {
"title": "storage",
"type": "object"
}
}
},
"required": false
},
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/clone-image":{
"put":{
"tags": [
"instance"
],
"summary": "clone instance to image",
"description": "clone instance to image",
"operationId": "cloneInstanceImage",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to clone to image",
"required": true,
"schema": {
"type": "number"
}
}
],
"requestBody": {
"description": "image information",
"content": {
"application/json": {
"schema": {
"title": "image",
"type": "object"
}
}
},
"required": false
},
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/lock":{
"put":{
"tags": [
"instance"
],
"summary": "lock an instance",
"description": "lock an instance",
"operationId": "lockInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to lock",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/unlock":{
"put":{
"tags": [
"instance"
],
"summary": "unlock an instance",
"description": "unlock an instance",
"operationId": "unlockInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to unlock",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/security-groups":{
"get":{
"tags": [
"instance"
],
"summary": "get security groups for an instance",
"description": "get security groups for an instance",
"operationId": "listInstanceSecurityGroups",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to get security groups for",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
},
"post": {
"tags": [
"instance"
],
"summary": "set security groups for an instance",
"description": "set security groups for an instance",
"operationId": "setInstanceSecurityGroups",
"parameters": [
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to set security groups for",
"required": true,
"schema": {
"type": "number"
}
}
],
"requestBody": {
"description": "security groups",
"content": {
"application/json": {
"schema": {
"title": "securityGroups",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{instanceId}/cancel-removal":{
"put":{
"tags": [
"instance"
],
"summary": "cancel delete of an instance",
"description": "cancel delete of an instance",
"operationId": "cancelDeleteInstance",
"parameters":[
{
"name": "instanceId",
"in": "path",
"description": "the id of the instance to cancel the removal of",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/monitoring/incidents":{
"get":{
"tags": [
"monitoring"
],
"summary": "get all incidents",
"description": "get all incidents",
"operationId": "getIncidents",
"parameters":[
{
"name": "filter",
"in": "query",
"description": "filter for what to get",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/networks": {
"post": {
"tags": [
"network"
],
"summary": "create a network",
"description": "create a network",
"operationId": "createNetwork",
"parameters": [],
"requestBody": {
"description": "network to create",
"content": {
"application/json": {
"schema": {
"title": "network",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
},
"get": {
"tags": [
"network"
],
"summary": "get all networks",
"description": "get all networks",
"operationId": "getNetworks",
"parameters": [
{
"name": "filter",
"in": "query",
"description": "filter for what to get",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/instances/{networkId}":{
"get":{
"tags": [
"network"
],
"summary": "get network by id",
"description": "get network by id",
"operationId": "getNetworkById",
"parameters":[
{
"name": "networkId",
"in": "path",
"description": "the id of the network to get",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
},
"put": {
"tags": [
"network"
],
"summary": "update a network",
"description": "update a network",
"operationId": "updateNetwork",
"parameters": [
{
"name": "networkId",
"in": "path",
"description": "the id of the network to update",
"required": true,
"schema": {
"type": "number"
}
}
],
"requestBody": {
"description": "network changes",
"content": {
"application/json": {
"schema": {
"title": "network",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
},
"delete":{
"tags": [
"network"
],
"summary": "delete network",
"description": "delete network",
"operationId": "deleteNetwork",
"parameters":[
{
"name": "networkId",
"in": "path",
"description": "the id of the network to delete",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/network-types":{
"get":{
"tags": [
"network"
],
"summary": "get all network types",
"description": "get all network types",
"operationId": "getNetworkTypes",
"parameters":[
{
"name": "filter",
"in": "query",
"description": "filter for what to get",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/network-types/{typeId}":{
"get":{
"tags": [
"network"
],
"summary": "get network type by id",
"description": "get network type by id",
"operationId": "getNetworkTypeById",
"parameters":[
{
"name": "typeId",
"in": "path",
"description": "the id of the network type to get",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/networks/groups":{
"post": {
"tags": [
"network"
],
"summary": "create a network grouop",
"description": "create a network grouop",
"operationId": "createNetworkGroup",
"parameters": [],
"requestBody": {
"description": "network group to create",
"content": {
"application/json": {
"schema": {
"title": "networkGroup",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
},
"get":{
"tags": [
"network"
],
"summary": "get all network groups",
"description": "get all network groups",
"operationId": "getNetworkGroups",
"parameters":[
{
"name": "filter",
"in": "query",
"description": "filter for what to get",
"required": false,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
},
"/networks/groups/{groupId}":{
"get":{
"tags": [
"network"
],
"summary": "get network group by id",
"description": "get network group by id",
"operationId": "getNetworkGroupById",
"parameters":[
{
"name": "groupId",
"in": "path",
"description": "the id of the network group to get",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
},
"put": {
"tags": [
"network"
],
"summary": "update a network group",
"description": "update a network group",
"operationId": "updateNetworkGroup",
"parameters": [
{
"name": "groupId",
"in": "path",
"description": "the id of the network group to update",
"required": true,
"schema": {
"type": "number"
}
}
],
"requestBody": {
"description": "network group changes",
"content": {
"application/json": {
"schema": {
"title": "networkGroup",
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "successful response"
}
}
},
"delete":{
"tags": [
"network"
],
"summary": "delete network group",
"description": "delete network group",
"operationId": "deleteNetworkGroup",
"parameters":[
{
"name": "groupId",
"in": "path",
"description": "the id of the network group to delete",
"required": true,
"schema": {
"type": "number"
}
}
],
"responses": {
"200": {
"description": "successful response"
}
}
}
}
},
"components":{
"schemas":{
},
"securitySchemes":{
"bearer":{
"type":"http",
"scheme":"bearer"
}
}
},
"security":[
{
"bearer":[
]
}
],
"tags":[
],
"externalDocs":{
"url":"",
"description":""
},
"warnings":[
]
}