seconize_de_risk_center_server_api_ v1.0.0
seconizede_risk_center_server_api
SeconizeDeRiskCenterServerApi - JavaScript client for seconize_de_risk_center_server_api This is the core API for Seconize DeRisk Center (DRC) This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install seconize_de_risk_center_server_api_ --save
git
If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Webpack Configuration
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Getting Started
Please follow the installation instruction and execute the following JS code:
var SeconizeDeRiskCenterServerApi_ = require('seconize_de_risk_center_server_api_');
var defaultClient = SeconizeDeRiskCenterServerApi_.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'
var api = new SeconizeDeRiskCenterServerApi_.CompliancesApi()
var body = new SeconizeDeRiskCenterServerApi_.Compliance(); // {Compliance}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.createCompliance(body, callback);
Documentation for API Endpoints
All URIs are relative to https://api.seconize.io/drc/v1
Class | Method | HTTP request | Description |
---|---|---|---|
SeconizeDeRiskCenterServerApi_.CompliancesApi | createCompliance | POST /gcf/compliances | Return the Compliance ID which was created |
SeconizeDeRiskCenterServerApi_.CompliancesApi | deleteCompliance | DELETE /gcf/compliances/{id} | Delete the Compliance with the given id |
SeconizeDeRiskCenterServerApi_.CompliancesApi | getComplianceById | GET /gcf/compliances/{id} | Return the Compliance with the given id |
SeconizeDeRiskCenterServerApi_.CompliancesApi | getCompliances | GET /gcf/compliances | Return Compliances according to the filter, sort and pagination parameters |
SeconizeDeRiskCenterServerApi_.CompliancesApi | updateComplianceMaturityScore | PUT /gcf/compliances/{id} | Return the updated Compliance |
SeconizeDeRiskCenterServerApi_.OrganizationsApi | getOrganization | GET /assets/orgs/{id} | Return the Organization with the given id |
SeconizeDeRiskCenterServerApi_.OrganizationsApi | updateOrganization | PUT /assets/orgs/{id} | Return the updated Org |
SeconizeDeRiskCenterServerApi_.PoliciesApi | createPolicy | POST /gcf/policies | Return the Policy ID which was created |
SeconizeDeRiskCenterServerApi_.PoliciesApi | deletePolicyAssetType | DELETE /gcf/policies/{id}/assettypes/{assettype} | Delete the Policy with the given id |
SeconizeDeRiskCenterServerApi_.PoliciesApi | getPolicies | GET /gcf/policies | Return Policies according to the filter, sort and pagination parameters |
SeconizeDeRiskCenterServerApi_.PoliciesApi | getPolicyAssetTypes | GET /gcf/policies/{id}/assettypes | Return the Asset Types of the Policy with the given id |
SeconizeDeRiskCenterServerApi_.PoliciesApi | updatePolicyAction | PUT /gcf/policies/{id}/action | Return the updated Policy |
SeconizeDeRiskCenterServerApi_.PoliciesApi | updatePolicyAssetType | PUT /gcf/policies/{id}/assettypes | Return the updated Policy |
SeconizeDeRiskCenterServerApi_.PoliciesApi | updatePolicyRASCI | PUT /gcf/policies/{id}/rasci | Return the updated Policy |
SeconizeDeRiskCenterServerApi_.PoliciesApi | updatePolicyScore | PUT /gcf/policies/{id}/score | Return the updated Policy |
SeconizeDeRiskCenterServerApi_.PoliciesApi | updatePolicyStatus | PUT /gcf/policies/{id}/status | Return the updated Policy |
SeconizeDeRiskCenterServerApi_.PolicysApi | deletePolicy | DELETE /gcf/policies/{id} | Delete the Policy with the given id |
SeconizeDeRiskCenterServerApi_.PolicysApi | getPolicyById | GET /gcf/policies/{id} | Return the Policy with the given id |
SeconizeDeRiskCenterServerApi_.ScansApi | createScan | POST /audit/scans | Return the Scan ID which was created |
SeconizeDeRiskCenterServerApi_.ScansApi | deleteScan | DELETE /audit/scans/{id} | Delete the Scan with the given id |
SeconizeDeRiskCenterServerApi_.ScansApi | getScanById | GET /audit/scans/{id} | Return the Scan with the given id |
SeconizeDeRiskCenterServerApi_.ScansApi | getScans | GET /audit/scans | Return Scans according to the filter, sort and pagination parameters |
SeconizeDeRiskCenterServerApi_.ScansApi | updateScan | PUT /audit/scans/{id} | Return the updated Scan |
SeconizeDeRiskCenterServerApi_.UsersApi | createBasicUser | POST /identity/users | Return the user id which was created |
SeconizeDeRiskCenterServerApi_.UsersApi | deleteUser | DELETE /identity/users/{id} | Delete the user with the given id |
SeconizeDeRiskCenterServerApi_.UsersApi | deleteUserRBAC | DELETE /identity/users/{id}/rbac/{roleId} | Delete the User with the given id |
SeconizeDeRiskCenterServerApi_.UsersApi | getUserById | GET /identity/users/{id} | Return the user with the given id |
SeconizeDeRiskCenterServerApi_.UsersApi | getUsers | GET /identity/users | Return users according to the filter, sort and pagination parameters |
SeconizeDeRiskCenterServerApi_.UsersApi | updateUserRBAC | PUT /identity/users/{id}/rbac | Return the updated user |
Documentation for Models
- SeconizeDeRiskCenterServerApi_.Compliance
- SeconizeDeRiskCenterServerApi_.Policy
- SeconizeDeRiskCenterServerApi_.Role
- SeconizeDeRiskCenterServerApi_.Scan
- SeconizeDeRiskCenterServerApi_.User
Documentation for Authorization
basicAuth
- Type: HTTP basic authentication
6 years ago