Skip to content

Commit

Permalink
rlp-144557
Browse files Browse the repository at this point in the history
  • Loading branch information
manukumar6 committed Nov 1, 2024
1 parent dc5b2df commit 5edd3c3
Showing 1 changed file with 381 additions and 0 deletions.
381 changes: 381 additions & 0 deletions openapi-specs/cspm/satellite.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,381 @@
{
"openapi" : "3.0.1",
"info" : {
"title" : "Applications APIs",
"version" : "1.0.0"
},
"tags": [
{
"name": "Applications"
}
],

"paths" : {
"/appid/api/v1/satellite" : {
"get" : {
"description" : "List Cluster Details",
"operationId" : "listClusters",
"parameters" : [ {
"description" : "Prisma ID for the request",
"explode" : false,
"in" : "header",
"name" : "x-prisma-tenant-id",
"required" : true,
"schema" : {
"type" : "string"
},
"style" : "simple"
} ],
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : {
"items" : {
"$ref" : "#/components/schemas/ClusterInfoResponse"
},
"type" : "array"
}
}
},
"description" : "Successful operation"
},
"400" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Bad Request"
},
"401" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Unauthorized"
},
"403" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Forbidden"
},
"500" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Internal Server Error"
}
},
"summary" : "List Cluster Details",
"tags" : [ "Applications" ]
},
"post" : {
"description" : "Add Satellite Details",
"operationId" : "addClusterInfo",
"parameters" : [ {
"description" : "Prisma ID for the request",
"explode" : false,
"in" : "header",
"name" : "x-prisma-tenant-id",
"required" : true,
"schema" : {
"type" : "string"
},
"style" : "simple"
} ],
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ClusterInfo"
}
}
},
"required" : true
},
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ClusterMetaDataResponse"
}
}
},
"description" : "Successful operation"
},
"400" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Bad Request"
},
"401" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Unauthorized"
},
"403" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Forbidden"
},
"500" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Internal Server Error"
}
},
"summary" : "Add Satellite Details",
"tags" : [ "Applications" ]
}
},
"/appid/api/v1/satellite/{id}" : {
"delete" : {
"description" : "Delete Satellite Details",
"operationId" : "deleteCluster",
"parameters" : [ {
"description" : "Prisma ID for the request",
"explode" : false,
"in" : "header",
"name" : "x-prisma-tenant-id",
"required" : true,
"schema" : {
"type" : "string"
},
"style" : "simple"
}, {
"explode" : false,
"in" : "path",
"name" : "id",
"required" : true,
"schema" : {
"type" : "string"
},
"style" : "simple"
} ],
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : {
"type" : "object"
}
}
},
"description" : "Successful operation"
},
"400" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Bad Request"
},
"401" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Unauthorized"
},
"403" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Forbidden"
},
"500" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorResponse"
}
}
},
"description" : "Internal Server Error"
}
},
"summary" : "Delete Satellite Details",
"tags" : [ "Applications" ]
}
}
},
"components" : {
"schemas" : {
"ClusterInfo" : {
"properties" : {
"data" : {
"additionalProperties" : {
"type" : "object"
},
"type" : "object"
},
"prismaId" : {
"format" : "int64",
"type" : "integer"
},
"satelliteId" : {
"type" : "string"
},
"clusterAssetId" : {
"type" : "string"
},
"clusterId" : {
"type" : "string"
},
"updatedTs" : {
"format" : "int64",
"type" : "integer"
},
"config" : {
"additionalProperties" : {
"type" : "object"
},
"type" : "object"
},
"heartBeatSyncTs" : {
"format" : "int64",
"type" : "integer"
},
"deletedOn" : {
"format" : "int64",
"type" : "integer"
}
},
"required" : [ "clusterAssetId", "clusterId", "deletedOn", "prismaId", "updatedTs" ],
"type" : "object"
},
"ClusterMetaDataResponse" : {
"properties" : {
"clusterInfo" : {
"$ref" : "#/components/schemas/ClusterInfo"
},
"installScript" : {
"type" : "string"
}
},
"type" : "object"
},
"ClusterInfoResponse" : {
"properties" : {
"heartBeatTs" : {
"type" : "integer"
},
"heartBeatSyncStatus" : {
"type" : "string"
},
"apiVersion" : {
"type" : "string"
},
"satelliteVersion" : {
"type" : "string"
},
"clusterId" : {
"type" : "string"
},
"clusterName" : {
"type" : "string"
},
"clusterAssetId" : {
"type" : "string"
},
"orchestratorPlatform" : {
"type" : "string"
}
},
"type" : "object"
},
"Error" : {
"properties" : {
"code" : {
"type" : "string"
},
"details" : {
"items" : {
"$ref" : "#/components/schemas/Error"
},
"type" : "array"
},
"message" : {
"type" : "string"
},
"target" : {
"type" : "string"
},
"innerError" : {
"$ref" : "#/components/schemas/InnerError"
}
},
"required" : [ "code", "message", "target" ],
"type" : "object"
},
"InnerError" : {
"properties" : {
"code" : {
"type" : "string"
},
"message" : {
"type" : "string"
},
"innerError" : {
"$ref" : "#/components/schemas/InnerError"
}
},
"type" : "object"
},
"ErrorResponse" : {
"properties" : {
"error" : {
"$ref" : "#/components/schemas/Error"
}
},
"type" : "object"
}
}
}
}

0 comments on commit 5edd3c3

Please sign in to comment.