Description: The list of protected objects sorted by name. Method: GET Resource: event/protectedDocument Parameters: -
start - a position from which to start returning protected objects, the default value is 0 -
limit - the number of protected objects to be returned; the default value is 100; cannot be more than 1000 -
with[] — the list of additional entities to be added to the protected object: -
pd2pc — a link of the protected object with the catalog of protected objects
Response: The list of protected objects described with the following JSON Schema: JSON schema of returning the list of protected objects: {
"$schema" : "http://json-schema.org/draft-04/schema#" ,
"type" : "object" ,
"properties" : {
"data" : {
"type" : "array" ,
"description" : "Array of protected objects" ,
"items" : {
"type" : "object" ,
"description" : "Protected object" ,
"properties" : {
"DOCUMENT_ID" : {
"type" : "string" ,
"description" : "Identifier"
},
"DISPLAY_NAME" : {
"type" : "string" ,
"description" : "Name"
},
"CREATE_DATE" : {
"type" : "string" ,
"description" : "Creation date"
},
"IS_DELETED" : {
"type" : "integer" ,
"description" : "Whether it is removed from the active configuration" ,
"enum" : [
0,
1
]
},
"pd2pc" : {
"description" : "Array of links to catalogs of protected objects" ,
"type" : "array" ,
"items" : {
"description" : "Link to the catalog of protected objects" ,
"type" : "object" ,
"required" : [
"CATALOG_ID" ,
"DOCUMENT_ID"
],
"properties" : {
"CATALOG_ID" : {
"description" : "A unique identifier of the catalog of protected objects" ,
"type" : "string"
},
"DOCUMENT_ID" : {
"description" : "A unique identifier of the protected object" ,
"type" : "string"
}
}
}
}
},
"required" : [
"DOCUMENT_ID" ,
"DISPLAY_NAME" ,
"CREATE_DATE" ,
"IS_DELETED"
]
}
},
"meta" : {
"description" : "Additional data" ,
"type" : "object" ,
"properties" : {
"totalCount" : {
"type" : "integer" ,
"description" : "The total number of protected objects"
},
"start" : {
"type" : "integer" ,
"description" : "The position from which returning has started"
},
"limit" : {
"type" : "integer" ,
"description" : "The number of returned objects"
}
},
"required" : [
"totalCount" ,
"start" ,
"limit"
]
}
},
"required" : [
"data" ,
"meta"
]
}
|
Example: Query GET /xapi/event/protectedDocument?start= 0 &limit= 10
X-API-Version: 1
X-API-CompanyId: iw
X-API-ImporterName: dome
X-API-Auth-Token: brse99dugp1cdbr69axz
|
Response {
"data" : [{
"DOCUMENT_ID" : "C78E821A67C7F34A1B1D63A4151CEF6300000000" ,
"DISPLAY_NAME" : "Security labels" ,
"CREATE_DATE" : "2016-05-12 10:24:41.342554" ,
"IS_DELETED" : 0
}],
"meta" : {
"totalCount" : 1,
"start" : 0,
"limit" : 10
}
}
|
|