All URIs are relative to http://api.madana.io/rest
Method | HTTP request | Description |
---|---|---|
addHistory | POST /enclaves/{uuid}/history | |
approveEnclave | POST /enclaves/{uuid}/approval | |
assignEnclaveAgent | POST /enclaves/{uuid}/assign | |
attestateEnclave | POST /enclaves/{uuid}/attestation | |
createEnclaveRunRequest | POST /enclaves | |
getEnclave | GET /enclaves/{uuid} | |
getEnclaveTypes | GET /enclaves/types | |
getEnclaves | GET /enclaves | Returns UUIDs of existing analyses. |
getStats | GET /enclaves/stats | |
killEnclave | POST /enclaves/{uuid}/kill |
File addHistory(uuid, opts)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnclaveServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'body': new MadanaApiclient.JsonSignedData() // JsonSignedData |
};
apiInstance.addHistory(uuid, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
uuid | String | ||
body | JsonSignedData | [optional] |
File
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json
File approveEnclave(uuid, opts)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnclaveServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'body': new MadanaApiclient.JsonEnclaveRunningAttestationApproval() // JsonEnclaveRunningAttestationApproval |
};
apiInstance.approveEnclave(uuid, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
uuid | String | ||
body | JsonEnclaveRunningAttestationApproval | [optional] |
File
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json
File assignEnclaveAgent(uuid, opts)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnclaveServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'body': new MadanaApiclient.JsonNodeInfo() // JsonNodeInfo |
};
apiInstance.assignEnclaveAgent(uuid, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
uuid | String | ||
body | JsonNodeInfo | [optional] |
File
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json
File attestateEnclave(uuid, opts)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnclaveServiceApi();
let uuid = "uuid_example"; // String |
let opts = {
'body': new MadanaApiclient.JsonEnclaveRunningAttestation() // JsonEnclaveRunningAttestation |
};
apiInstance.attestateEnclave(uuid, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
uuid | String | ||
body | JsonEnclaveRunningAttestation | [optional] |
File
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json
File createEnclaveRunRequest(opts)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnclaveServiceApi();
let opts = {
'body': new MadanaApiclient.JsonEnclaveRunRequest() // JsonEnclaveRunRequest |
};
apiInstance.createEnclaveRunRequest(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
body | JsonEnclaveRunRequest | [optional] |
File
No authorization required
- Content-Type: application/json
- Accept: application/json, application/xml
File getEnclave(uuid)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnclaveServiceApi();
let uuid = "uuid_example"; // String |
apiInstance.getEnclave(uuid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
uuid | String |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File getEnclaveTypes()
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnclaveServiceApi();
apiInstance.getEnclaveTypes((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File getEnclaves(opts)
Returns UUIDs of existing analyses.
Returns UUIDs of existing analyses.
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnclaveServiceApi();
let opts = {
'authorization': "authorization_example", // String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
'created': "'true'", // String | - if Queryparam \"created=true\" only the UUIDs of own Requests are shown
'limit': "'30'", // String | Used for offset pagination. Limit/Offset Paging would look like GET /request?limit=20&offset=100. This query would return the 20 rows starting with the 100th row
'offset': "'0'", // String | Used for offset pagination. Limit/Offset Paging would look like GET /request?limit=20&offset=100. This query would return the 20 rows starting with the 100th row
'status': "status_example" // String |
};
apiInstance.getEnclaves(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c | [optional] |
created | String | - if Queryparam "created=true" only the UUIDs of own Requests are shown | [optional] [default to 'true'] |
limit | String | Used for offset pagination. Limit/Offset Paging would look like GET /request?limit=20&offset=100. This query would return the 20 rows starting with the 100th row | [optional] [default to '30'] |
offset | String | Used for offset pagination. Limit/Offset Paging would look like GET /request?limit=20&offset=100. This query would return the 20 rows starting with the 100th row | [optional] [default to '0'] |
status | String | [optional] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File getStats(opts)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnclaveServiceApi();
let opts = {
'dayssince': "'30'" // String |
};
apiInstance.getStats(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
dayssince | String | [optional] [default to '30'] |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json
File killEnclave(uuid)
import MadanaApiclient from 'madana-apiclient';
let apiInstance = new MadanaApiclient.EnclaveServiceApi();
let uuid = "uuid_example"; // String |
apiInstance.killEnclave(uuid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
uuid | String |
File
No authorization required
- Content-Type: Not defined
- Accept: application/json