Filesystems/{filesystemPath}/loopbackDevice/detach/{fileName}/nodes/{name}: DELETE
Detaches a loopback file from a specified node.
Availability
Available on all IBM Storage Scale editions.
Description
The DELETE /scalemgmt/v2/filesystems/{fileSystemPath}/loopbackDevice/detach/{fileName}/nodes/{name} command detaches or unmounts the loopback file from the specified node.
Request URL
https://management API host:port/scalemgmt/v2/filesystems/{fileSystemPath}/loopbackDevice/detach/{fileName}/nodes/{name}
where:- {nodeName}
- Specifies the node from which the loopback file is detached. Required.
Request parameters
The following parameters can be used in the request URL to customize the
request:
Parameter name | Description and applicable keywords | Required/optional |
---|---|---|
filesystemPath | The location of the file system. | Required. |
fileName | The name of the loopback file that is detached to the node. | Required. |
name | The name of the node from which the loopback file is detached. | Required. |
Note: Path traversal is restricted in the parameters. Invalid values for
fileName, nodeName, or filesystemPath
results in errors.
Request data
No request data.
Response data
{
"jobs" : [ {
"jobId" : Id of job,
"status" : Job status,
"submitted" : Date and time,
"completed" : Date and time,
"runtime" : Sequence,
"request" : {
"type" : Request type,
"url" : Request URL
},
"result" : {
"progress" : [ ],
"commands" : [ ],
"stdout" : ,
"stderr" : [ ],
"exitCode" : },
"pids" : [ ]
} ],
"status" : {
"code" : Status code,
"message" : Status message
}
}
- "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":"String'
- Array of commands that are run in this job.
- "progress":"String'
- Progress information for the request.
- "exitCode":"Exit code"
- Exit code of command. Zero is success and nonzero denotes failure.
- "stderr":"Error"
- CLI messages from stderr.
- "stdout":"String"
- CLI messages from stdout.
- "request"
-
- "type":"{GET | POST | PUT | DELETE}"
- HTTP request type.
- "url":"URL"
- The URL through which the job is 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.
- "status":"RUNNING | COMPLETED | FAILED"
- Status of the job.
Examples
The following example detaches the loopback file t1 from the node scale-41.openstacklocal.
Request data:
curl -k -u admin:admin001 -X DELETE --header 'accept:application/json'
'https://198.51.100.1:443/scalemgmt/v2/filesystems/gpfs/fs1/loopbackDevice/detach/t1/nodes/scale-41.openstacklocal’
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" : 1000000000002,
"status" : "COMPLETED",
"submitted" : "2021-10-26 05:56:04,206",
"completed" : "2021-10-26 05:56:04,951",
"runtime" : 745,
"request" : {
"type" : "DELETE",
"url" : "/scalemgmt/v2/filesystems/%2Fgpfs%2Ffs1/loopbackDevice/detach/t1/nodes/scale-41.openstacklocal"
},
"result" : {
"progress" : [ ],
"commands" : [ ],
"stdout" : [ "info: /dev/loop0\n" ],
"stderr" : [ ],
"exitCode" : 0
},
"pids" : [ ]
} ],
"status" : {
"code" : 200,
"message" : "The request finished successfully."
}
}