/scalemgmt/v3/authorization/module: PATCH

Updates the customer-defined policy rule set.

Availability

Available on all IBM Storage Scale editions.

Description

The PATCH authorization/module request customer-defined policy rule set. To run this request, you must have the RBAC permission for the update action on the /scalemgmt/v3/authorization/module resource.

Request URL

https://<IP address or host name of API server>:<port>/scalemgmt/v3/authorization/module

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
module The name of the RBAC module. Required.
X-StorageScaleDomain The domain to be authorized against for the request. The default value is StorageScaleDomain. Optional.

Request data

No request data.

Response data

  • 200: A successful response.
    "string"
  • default: An unexpected error response.
    {
      "code": 0,
      "details": [
        {
          "@type": "string",
          "additionalProp1": "string",
          "additionalProp2": "string",
          "additionalProp3": "string"
        }
      ],
      "message": "string"
    }

Examples

The following example updates the customer-defined policy rule set.:

Request data:
curl -X 'PATCH' \
  'https://localhost:46443/scalemgmt/v3/authorization/module' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "module":"cGFja2FnZSBzY2FsZS5yYmFjLmV4dGVybmFsCgppbXBvcnQgZnV0dXJlLmtleXdvcmRzLmlmCgpldmFsdWF0ZShkb21haW4sIHJlcXVlc3QpIGlmIHsKICB0cnVlCn0K"
}' -n
Response data:
{
	"module": "cGFja2FnZSBzY2FsZS5yYmFjLmV4dGVybmFsCgppbXBvcnQgZnV0dXJlLmtleXdvcmRzLmlmCgpldmFsdWF0ZShkb21haW4sIHJlcXVlc3QpIGlmIHsKICB0cnVlCn0K"
}