System Information - ObjectSchema Retrieve, Update, and Delete Methods

URI

https://164.99.19.131:8443/SentinelRESTServices/objects/schema/{ApiName}

Supported Methods

GET
PUT
DELETE
GET

Authentication

Authentication Types
Sentinel Permissions Needed

Supported Formats

Response

URL Parameters

None.

Success Codes

Fault Codes

Response Data

Object type: schema
A "schema" object describes an object available through the Sentinel DataObject REST API.
FieldDescription
api-nameThe name used in the serialized representation of the object type.
attrsA list of type information for each attribute that can appear in the object type described by this Object Schema instance. Definition
internal-nameThe name used internally by Sentinel to refer to the object type. It is useful to know this name because generated bean classes available in the client API are named based on this name.
metaThe metadata for an object, including the object type name and the URL reference to the object. Definition
permsInformation about access control for the object type described by this Object Schema instance. This value is empty for non-standalone types. The map keys are "view", "update", "create", and "delete". Definition
standaloneIf this value is true it indicates that the object type is a "first class" type that can be directly manipulated via the REST API. If this value is false it indicates that the object type only appears in values of other object types.
uriThe URI used with the REST API to access objects belonging to the type described by this ObjectSchema instance. This attribute will have no value for non-standalone types because such types only appear in values of other object types.
Object type: meta
The metadata for an object, including the object type name and the URL reference to the object.
FieldDescription
@hrefThe URL reference to the object.
typeThe name of the object type
Object type: schema-perm
A "schema-perm" object describes the permissions needed to perform an operation (View, Update, Create, Delete) on a standalone object.
FieldDescription
allow-anyIf true, indicates that access is permitted for any authenticated user. If false, indicates that a specific permission is required.
permsA list of permission names, any one of which is needed to perform the operation. Note that "_adminRole_" is a special permission name that indicates that a user must be a member of the Sentinel role "Administrators".
Object type: attr-schema
An "attr-schema" object contains information describing an attribute of an object type available via the Sentinel DataObject REST API.
FieldDescription
accessDescribes whether the attribute may be read, changed, or both. The value "write-only" is used for user passwords.
api-nameThe name used in the serialized representation of the attribute value.
bean-key-typeContains the name of the referenced object type if "key-type" is "bean".
bean-value-typeContains the name of the referenced object type if "type" is "bean", or if "sub-type" is "bean", or if "link-type" is "bean", or if "link-type" is "beans".
enumsIf set and non-empty then "enums" is the set of allowed values for the attribute.
internal-nameThe name used internally by Sentinel to refer to the attribute. It is useful to know this name because generated bean classes contain access methods whose names are created based on this name.
key-typeDescribes the key type for "map" attribute types.
link-typeDescribes type of object referenced by the URL value for "link" attribute types.
requiredIf true, the attribute must have a value when an object is created, and the attribute value may not be set to empty in a modify operation.
sub-typeDescribes the element type for "set" and "list" attribute types, and the value type for "map" attribute types.
typeDescribes the attribute value type. If "type" is "bean" then "bean-value-type" is the "api name" of the object type. If "type" is "list" or "set" then "sub-type" is the type of the collection element. If "type" is "map" then "key-type" is the type of the map keys, and "sub-type" is the type of the map values. If "type" is "link" then "link-type" is the type of item pointed to by the URL value of the attribute.

Sample Request

GET https://164.99.19.131:8443/SentinelRESTServices/objects/schema/user
Sample Response for application/json
Status: 200
{
   "meta":{
      "type":"schema",
      "@href":"https://164.99.19.131:8443/SentinelRESTServices/objects/schema/user"
   },
   "internal-name":"User",
   "attrs":[
      {
         "bean-key-type":"user",
         "link-type":"bean",
         "sub-type":"string",
         "internal-name":"DistinguishedName",
         "key-type":"string",
         "type":"string",
         "access":"read/write",
         "required":false,
         "bean-value-type":"user",
         "api-name":"dn",
         "enums":[
            "INACTIVE",
            "ACTIVE",
            "LOCKED"
         ]
      }
   ],
   "standalone":true,
   "uri":{
      "@href":"https://10.0.0.24/8443/SentinelRESTservices/objects/user"
   },
   "api-name":"user"
}
PUT

Authentication

Authentication Types
Sentinel Permissions Needed

Supported Formats

Request

URL Parameters

None.

Success Codes

Fault Codes

Request Data

Object type: schema
A "schema" object describes an object available through the Sentinel DataObject REST API.
FieldRequiredDescription

Object type: meta
The metadata for an object, including the object type name and the URL reference to the object.
FieldRequiredDescription
@hreffalseThe URL reference to the object.
typefalseThe name of the object type

Sample Request

PUT https://164.99.19.131:8443/SentinelRESTServices/objects/schema/user
{
   "api-name":"Wildebeest"
}
Sample Response for application/json
Status: 200

DELETE

Authentication

Authentication Types
Sentinel Permissions Needed

URL Parameters

None.

Success Codes

Fault Codes

Sample Request

DELETE https://164.99.19.131:8443/SentinelRESTServices/objects/schema/user