CAUTION: This API Reference Guide is available only to those users who have a technical understanding of how to use the information provided in this document. Our Support team does not provide assistance for any custom development that implements the APIs covered in this guide which is in line with our support policy. For more information, visit: https://support.quest.com/essentials/support-guide. |
Authentication and organization selection are available through the KACE SMA Account Management Service. The authentication route is accessed through a POST request at /ams/shared/api/security/login. So for example, if the appliance name is KACE_SMA_Test, the route to login can be: http://KACE_SMA_Test/ams/shared/api/security/login.
The body for the POST request must contain the user name and password, and optionally an organization name. Here is an example body for that request:
When 2FA (multifactor authentication) is enabled, an additional step is required, to supply the security code after obtaining the KACE_CSRF_TOKEN. Failing to do so causes all future API calls to be invalid with an HTTP status of 401, and the following body:
You can supply the 2FA code through a POST request at /ams/shared/api/security/verify_2factor. For example, if the appliance name is KACE_SMA_Test, the route to supply the code is: http://KACE_SMA_Test/ams/shared/api/security/verify_2factor.
The body for the POST request must contain the current code from 2FA. For example:
If the code supplied Google Authenticator is 123456, you can use the following statement:
The header for this request must contain the x-dell-csrf-token key. The value of that key is obtained using unique user credentials in the steps already listed in the first example.
When a success is received, the custom API call no longer returns the authentication error:
If the security code is valid, the API call returns the HTTP status 200, with the following body:
Once the security code is accepted, all future API calls should function as expected.
• |
Administrator: All API actions are available. In queries, matching data for all users is returned. |
• |
Read-only administrator: All API queries are available. Matching data for all users is returned. |
• |
Standard user: All API queries are available. Matching data is returned only for the current user. |
If the appliance is updated with custom roles and the current user is assigned one of those roles, its permissions are retrieved. These permission values are used to determine the user’s querying capability for this API. For more information about the KACE SMA roles, see the K1000 Systems Management Appliance Administrator Guide.
The API is available at the K1000 address starting with the path /api.
So for example, if the K1000 name in your environment is K1000Test, the route to the machine entities would be http://K1000Test/api/inventory/machines.
© ALL RIGHTS RESERVED. Feedback 이용 약관 개인정보 보호정책 Cookie Preference Center