Access/acls/{userGroup}: DELETE

Deletes all the REST API access control lists (ACL) that is defined for a user group.

Availability

Available on all IBM Storage Scale editions.

Description

The DELETE access/acls/{userGroup} command deletes the ACLs defined for the specified user group.

Request URL

https://<IP address or host name of API server>:<port>/scalemgmt/v2/access/acls/userGroup
where:
acls/userGroup
Specifies the user group from which the ACLs are to be deleted. Required.

Request headers

Accept: application/json

Parameters

The following parameters can be used in the request URL to customize the request:
Table 1. List of parameters
Parameter name Description and applicable keywords Required/optional
userGroup The user group name from which the ACLs are to be deleted. Required.

Response data

{
    "status": {
      "code":ReturnCode",
      "message":"ReturnMessage"
   },
   jobs: [
      {
         "result":"", 
           { 
             "commands":"command names",
             "progress":"progress information,
             "exitCode":"Exit code",
             "stderr":"Error",
             "stdout":"Messages", 
           },
         "request":" ",
           {
             "type":"{GET | POST | PUT | DELETE}",
             "url":"URL",
             "data":""",
           }
         "jobId":"ID",
         "submitted":"Time",
         "completed":Time",
         "runtime":Time",
         "status":"RUNNING | CANCELLING | CANCELLED |COMPLETED | FAILED",
         "pids":"Process IDs
          }   
        ],
   }
"status":
Return status.
"message": "ReturnMessage",
The return message.
"code": ReturnCode
The return code.
"jobs":
An array of elements that describe jobs. Each element describes one job.
"result"
"commands":"command names'
Array of commands that are run in this job.
"progress":"information'
Progress information for the request.
"exitCode":"Exit code"
The Exit code of command. The value zero denotes success and nonzero denotes failure.
"stderr":"Error"
CLI messages from. stderr.
"stdout":"message"
CLI messages from stdout.
"request"
"type":"{GET | POST | PUT | DELETE}"
HTTP request type.
"url":"URL"
The URL through which the job is submitted.
"data":"job data "
The data that was posted when the job was submitted.
"jobId":"ID",
The unique ID of the job.
"submitted":"Time"
The time at which the job was submitted.
"completed":Time"
The time at which the job was completed.
"runtime":Time
The runtime of the job.
"status":"RUNNING | COMPLETED | FAILED| CANCELLED| CANCELLING"
Status of the job.
"pids": "Process IDs"
The process IDs of all the active sub processes that are started to manage the job.

Examples

The following example deletes the ACL entries from the user group Protocol Admin.

Request data:
curl -k -u admin:admin001 -X DELETE --header 'accept:application/json' 
'https:///198.51.100.1:443/scalemgmt/v2/access/acls/ProtocolAdmin' 
Response data:
Note: In the JSON data that is returned, the return code indicates whether the command is successful. The response code 200 indicates that the command successfully retrieved the information. Error code 400 represents an invalid request and 500 represents internal server error.
{
  "jobs" : [ {
    "jobId" : 1000000000010,
    "status" : "COMPLETED",
    "submitted" : "2021-01-30 17:10:31,554",
    "completed" : "2021-01-30 17:10:32,787",
    "runtime" : 1233,
    "request" : {
      "type" : "DELETE",
      "url" : "/scalemgmt/v2/access/acls/ProtocolAdmin"
    },
    "result" : {
      "progress" : [ ],
      "commands" : [ "mv --force '/var/lib/mmfs/gui/settings.json.77cf20b5-b767-4997-ac98-cefe18e2d93c' '/var/lib/mmfs/gui/settings.json' " ],
      "stdout" : [ "info: chrestacl ProtocolAdmin remove --force --verbose " ],
      "stderr" : [ ],
      "exitCode" : 0
    },
    "pids" : [ ]
  } ],
  "status" : {
    "code" : 200,
    "message" : "The request finished successfully."
  }
}