Managerial Approval
3 min
Get All Request
GET
http://{{hostname}}/aioc-rest-web/rest/sc/managerApproval/getAllRequests
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getAllRequests");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Cookie", "642f3e42-ddc1-4981-93cf-935bb1e6b898");
request.AddParameter("application/json", "{\r\n \"requestType\" : \"ALL\",\r\n \"creationDate\" : \"2020-03-01 00:00:00\"\r\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getAllRequests' \
--header 'Content-Type: application/json' \
--header 'Cookie: 642f3e42-ddc1-4981-93cf-935bb1e6b898' \
--data-raw '{
"requestType" : "ALL",
"creationDate" : "2020-03-01 00:00:00"
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getAllRequests",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "642f3e42-ddc1-4981-93cf-935bb1e6b898"
},
"data": JSON.stringify({"requestType":"ALL","creationDate":"2020-03-01 00:00:00"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
Get Connection Approval Requests
GET
http://{{hostname}}/aioc-rest-web/rest/sc/managerApproval/getConnectionRequest
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getConnectionRequest");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Cookie", "642f3e42-ddc1-4981-93cf-935bb1e6b898");
request.AddParameter("application/json", "{\r\n \"requestId\" : \"ed1f7eca-a624-4775-91b6-200ff8f4ebc2\"\r\n}\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getConnectionRequest' \
--header 'Content-Type: application/json' \
--header 'Cookie: 642f3e42-ddc1-4981-93cf-935bb1e6b898' \
--data-raw '{
"requestId" : "ed1f7eca-a624-4775-91b6-200ff8f4ebc2"
}
'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getConnectionRequest",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "642f3e42-ddc1-4981-93cf-935bb1e6b898"
},
"data": JSON.stringify({"requestId":"ed1f7eca-a624-4775-91b6-200ff8f4ebc2"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
Get SAPM Approval Requests
GET
http://{{hostname}}/aioc-rest-web/rest/sc/managerApproval/getSapmRequest
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getSapmRequest");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Cookie", "642f3e42-ddc1-4981-93cf-935bb1e6b898");
request.AddParameter("application/json", "{\r\n \"requestId\" : \"cefa2508-349c-4ed0-a9e0-065569f9d00f\"\r\n}\r\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getSapmRequest' \
--header 'Content-Type: application/json' \
--header 'Cookie: 642f3e42-ddc1-4981-93cf-935bb1e6b898' \
--data-raw '{
"requestId" : "cefa2508-349c-4ed0-a9e0-065569f9d00f"
}
'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getSapmRequest",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "642f3e42-ddc1-4981-93cf-935bb1e6b898"
},
"data": JSON.stringify({"requestId":"cefa2508-349c-4ed0-a9e0-065569f9d00f"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
Get Command Approval Requests
GET
http://{{hostname}}/aioc-rest-web/rest/sc/managerApproval/getCommmandRequest
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getCommmandRequest");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Cookie", "642f3e42-ddc1-4981-93cf-935bb1e6b898");
request.AddParameter("application/json", "{\n \"requestId\" : \"102199be-35d4-4939-867d-4dffe80b6209\"\n}\n", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request GET 'http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getCommmandRequest' \
--header 'Content-Type: application/json' \
--header 'Cookie: 642f3e42-ddc1-4981-93cf-935bb1e6b898' \
--data-raw '{
"requestId" : "102199be-35d4-4939-867d-4dffe80b6209"
}
'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/getCommmandRequest",
"method": "GET",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "642f3e42-ddc1-4981-93cf-935bb1e6b898"
},
"data": JSON.stringify({"requestId":"102199be-35d4-4939-867d-4dffe80b6209"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200
Approval Response
POST
http://{{hostname}}/aioc-rest-web/rest/sc/managerApproval/approvalResponse
csharp
var client = new RestClient("http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/approvalResponse");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Cookie", "642f3e42-ddc1-4981-93cf-935bb1e6b898");
request.AddParameter("application/json", "{\n \"requestType\" : \"COMMAND\",\n \"requestId\" : \"5c0db907-8cb9-4cc1-b99c-e12a77df8749\",\n \"action\" : \"approve\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);curl
curl --location -g --request POST 'http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/approvalResponse' \
--header 'Content-Type: application/json' \
--header 'Cookie: 642f3e42-ddc1-4981-93cf-935bb1e6b898' \
--data-raw '{
"requestType" : "COMMAND",
"requestId" : "5c0db907-8cb9-4cc1-b99c-e12a77df8749",
"action" : "approve"
}'javascript
var settings = {
"url": "http://{{hostname }}/aioc-rest-web/rest/sc/managerApproval/approvalResponse",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "642f3e42-ddc1-4981-93cf-935bb1e6b898"
},
"data": JSON.stringify({"requestType":"COMMAND","requestId":"5c0db907-8cb9-4cc1-b99c-e12a77df8749","action":"approve"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});200