Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
  "authorizable": {
    "entityType": "DATASET",
    "entityParts": {"NAMESPACE": "default", "DATASET": "dataset"}
  },
  "principal": {
    "name": "admin",
    "type": "ROLE"
  },
  "actions": ["READ", "WRITE", "ADMIN"]
}

In the above JSON body, the authorizable object is the JSON-serialized form of the CDAP Authorizable class. For example, for datasets, its entity type is DATASET and it can be constructed by the namespace and dataset name. More information can be found at the DatasetId class. In entity parts, the name of the entity can be represented using wildcard by including * and ? in the name. For example, ns* represents all namespaces that start with nsns? represents all namespaces that start with ns and followed by a single character.

...