media type | data type |
---|---|
application/json | ServiceTags (JSON) |
PUT /tags/importservicetags
Content-Type: application/json
{
"resourceToTagIds" : {
"property1" : [ 12345, 12345 ],
"property2" : [ 12345, 12345 ]
},
"cachedTags" : {
"property1" : 12345,
"property2" : 12345
},
"tagUpdateTime" : 12345,
"serviceName" : "...",
"serviceResources" : [ {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}, {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ],
"tagVersion" : 12345,
"tagsChangeExtent" : "TAGS",
"tags" : {
"property1" : {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
},
"property2" : {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
},
"tagDefinitions" : {
"property1" : {
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
},
"property2" : {
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
},
"isDelta" : true,
"op" : "..."
}
HTTP/1.1 204 No Content
media type | data type | description |
---|---|---|
application/json | array of RangerServiceResource (JSON) |
GET /tags/resources
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ]
name | type | description | default | constraints |
---|---|---|---|---|
updateIfExists | query | true | boolean |
media type | data type |
---|---|
application/json | RangerServiceResource (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerServiceResource (JSON) |
POST /tags/resources
Content-Type: application/json
Accept: application/json
{
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
media type | data type | description |
---|---|---|
application/json | array of RangerTagDef (JSON) |
GET /tags/tagdefs
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ]
name | type | description | default | constraints |
---|---|---|---|---|
updateIfExists | query | true | boolean |
media type | data type |
---|---|
application/json | RangerTagDef (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerTagDef (JSON) |
POST /tags/tagdefs
Content-Type: application/json
Accept: application/json
{
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description |
---|---|---|
resource-guid | query | |
tag-guid | query |
DELETE /tags/tagresourcemaps
Content-Type: */*
...
HTTP/1.1 204 No Content
media type | data type | description |
---|---|---|
application/json | array of RangerTagResourceMap (JSON) |
GET /tags/tagresourcemaps
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"tagId" : 12345,
"resourceId" : 12345,
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ]
name | type | description | default | constraints |
---|---|---|---|---|
lenient | query | false | boolean | |
resource-guid | query | |||
tag-guid | query |
media type | data type | description |
---|---|---|
application/json | RangerTagResourceMap (JSON) |
POST /tags/tagresourcemaps
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 201 Created
Content-Type: application/json
{
"tagId" : 12345,
"resourceId" : 12345,
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
media type | data type | description |
---|---|---|
application/json | array of RangerTag (JSON) |
GET /tags/tags
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ]
name | type | description | default | constraints |
---|---|---|---|---|
updateIfExists | query | true | boolean |
media type | data type |
---|---|
application/json | RangerTag (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerTag (JSON) |
POST /tags/tags
Content-Type: application/json
Accept: application/json
{
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
media type | data type | description |
---|---|---|
application/json | array of string (JSON) |
GET /tags/types
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
name | type | description | default | constraints |
---|---|---|---|---|
serviceName | path | |||
lastActivationTime | query | 0 | long | |
lastKnownVersion | query | long | ||
pluginCapabilities | query | |||
pluginId | query | |||
supportsTagDeltas | query | false | boolean |
media type | data type | description |
---|---|---|
application/json | ServiceTags (JSON) |
GET /tags/download/{serviceName}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"resourceToTagIds" : {
"property1" : [ 12345, 12345 ],
"property2" : [ 12345, 12345 ]
},
"cachedTags" : {
"property1" : 12345,
"property2" : 12345
},
"tagUpdateTime" : 12345,
"serviceName" : "...",
"serviceResources" : [ {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}, {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ],
"tagVersion" : 12345,
"tagsChangeExtent" : "ALL",
"tags" : {
"property1" : {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
},
"property2" : {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
},
"tagDefinitions" : {
"property1" : {
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
},
"property2" : {
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
},
"isDelta" : true,
"op" : "..."
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
DELETE /tags/resource/{id}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type | description |
---|---|---|
application/json | RangerServiceResource (JSON) |
GET /tags/resource/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerServiceResource (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerServiceResource (JSON) |
PUT /tags/resource/{id}
Content-Type: application/json
Accept: application/json
{
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | default | constraints |
---|---|---|---|---|
days | query | 3 | int |
DELETE /tags/server/tagdeltas
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
DELETE /tags/tag/{id}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type | description |
---|---|---|
application/json | RangerTag (JSON) |
GET /tags/tag/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerTag (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerTag (JSON) |
PUT /tags/tag/{id}
Content-Type: application/json
Accept: application/json
{
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
DELETE /tags/tagdef/{id}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type | description |
---|---|---|
application/json | RangerTagDef (JSON) |
GET /tags/tagdef/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerTagDef (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerTagDef (JSON) |
PUT /tags/tagdef/{id}
Content-Type: application/json
Accept: application/json
{
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description |
---|---|---|
resourceGuid | query | |
tagGuid | query |
media type | data type | description |
---|---|---|
application/json | RangerTagResourceMap (JSON) |
GET /tags/tagresourcemap/tag-resource-guid
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"tagId" : 12345,
"resourceId" : 12345,
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
DELETE /tags/tagresourcemap/{id}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type | description |
---|---|---|
application/json | RangerTagResourceMap (JSON) |
GET /tags/tagresourcemap/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"tagId" : 12345,
"resourceId" : 12345,
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | default | constraints |
---|---|---|---|---|
guid | path | |||
deleteReferences | query | false | boolean |
DELETE /tags/resource/guid/{guid}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description |
---|---|---|
guid | path |
media type | data type | description |
---|---|---|
application/json | RangerServiceResource (JSON) |
GET /tags/resource/guid/{guid}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description |
---|---|---|
guid | path |
media type | data type |
---|---|
application/json | RangerServiceResource (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerServiceResource (JSON) |
PUT /tags/resource/guid/{guid}
Content-Type: application/json
Accept: application/json
{
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description |
---|---|---|
serviceName | path |
media type | data type | description |
---|---|---|
application/json | array of RangerServiceResource (JSON) |
GET /tags/resources/service/{serviceName}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ]
name | type | description | default | constraints |
---|---|---|---|---|
serviceName | path | |||
lastActivationTime | query | 0 | long | |
lastKnownVersion | query | long | ||
pluginCapabilities | query | |||
pluginId | query | |||
supportsTagDeltas | query | false | boolean |
media type | data type | description |
---|---|---|
application/json | ServiceTags (JSON) |
GET /tags/secure/download/{serviceName}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"resourceToTagIds" : {
"property1" : [ 12345, 12345 ],
"property2" : [ 12345, 12345 ]
},
"cachedTags" : {
"property1" : 12345,
"property2" : 12345
},
"tagUpdateTime" : 12345,
"serviceName" : "...",
"serviceResources" : [ {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}, {
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ],
"tagVersion" : 12345,
"tagsChangeExtent" : "ALL",
"tags" : {
"property1" : {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
},
"property2" : {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ { }, { } ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
},
"tagDefinitions" : {
"property1" : {
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
},
"property2" : {
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
},
"isDelta" : true,
"op" : "..."
}
name | type | description |
---|---|---|
guid | path |
DELETE /tags/tag/guid/{guid}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description |
---|---|---|
guid | path |
media type | data type | description |
---|---|---|
application/json | RangerTag (JSON) |
GET /tags/tag/guid/{guid}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description |
---|---|---|
guid | path |
media type | data type |
---|---|
application/json | RangerTag (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerTag (JSON) |
PUT /tags/tag/guid/{guid}
Content-Type: application/json
Accept: application/json
{
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description |
---|---|---|
guid | path |
DELETE /tags/tagdef/guid/{guid}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description |
---|---|---|
guid | path |
media type | data type | description |
---|---|---|
application/json | RangerTagDef (JSON) |
GET /tags/tagdef/guid/{guid}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description |
---|---|---|
name | path |
media type | data type | description |
---|---|---|
application/json | RangerTagDef (JSON) |
GET /tags/tagdef/name/{name}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"attributeDefs" : [ {
"type" : "...",
"name" : "..."
}, {
"type" : "...",
"name" : "..."
} ],
"name" : "...",
"source" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description |
---|---|---|
guid | path |
DELETE /tags/tagresourcemap/guid/{guid}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description |
---|---|---|
guid | path |
media type | data type | description |
---|---|---|
application/json | RangerTagResourceMap (JSON) |
GET /tags/tagresourcemap/guid/{guid}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"tagId" : 12345,
"resourceId" : 12345,
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
Resets/ removes tag policy cache for given service.
name | type | description |
---|---|---|
serviceName | query | non-empty service-name |
media type | data type | description |
---|---|---|
application/json | boolean (JSON) | true if successfully reseted/ removed for given service, false otherwise. |
GET /tags/tags/cache/reset
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
Resets/ removes tag policy cache for all.
media type | data type | description |
---|---|---|
application/json | boolean (JSON) | true if successfully reseted/ removed, false otherwise. |
GET /tags/tags/cache/reset-all
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
name | type | description |
---|---|---|
type | path |
media type | data type | description |
---|---|---|
application/json | array of RangerTag (JSON) |
GET /tags/tags/type/{type}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"owner" : 12345,
"validityPeriods" : [ {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
}, {
"startTime" : "...",
"endTime" : "...",
"timeZone" : "...",
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ]
} ],
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"options" : {
"property1" : { },
"property2" : { }
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ]
name | type | description |
---|---|---|
resourceSignature | path | |
serviceName | path |
media type | data type | description |
---|---|---|
application/json | RangerServiceResource (JSON) |
GET /tags/resource/service/{serviceName}/signature/{resourceSignature}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"resourceSignature" : "...",
"resourceElements" : {
"property1" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
},
"property2" : {
"isExcludes" : true,
"values" : [ "...", "..." ],
"isRecursive" : true
}
},
"serviceName" : "...",
"ownerUser" : "...",
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}