media type | data type |
---|---|
application/json | ServiceTags (JSON) |
application/xml | serviceTags (XML) |
PUT /tags/importservicetags
Content-Type: application/json
{
"serviceName" : "...",
"tagUpdateTime" : 12345,
"resourceToTagIds" : {
"property1" : [ 12345, 12345 ],
"property2" : [ 12345, 12345 ]
},
"tagDefinitions" : {
"property1" : {
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
},
"property2" : {
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
},
"isDelta" : true,
"tags" : {
"property1" : {
"validityPeriods" : [ {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
},
"property2" : {
"validityPeriods" : [ {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
},
"tagsChangeExtent" : "NONE",
"serviceResources" : [ {
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}, {
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
} ],
"op" : "...",
"tagVersion" : 12345
}
HTTP/1.1 204 No Content
media type | data type | description |
---|---|---|
application/json | array of RangerServiceResource (JSON) | |
application/xml | list of rangerServiceResource (XML) |
GET /tags/resources
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
} ]
name | type | description | default | constraints |
---|---|---|---|---|
updateIfExists | query | true | boolean |
media type | data type |
---|---|
application/json | RangerServiceResource (JSON) |
application/xml | rangerServiceResource (XML) |
media type | data type | description |
---|---|---|
application/json | RangerServiceResource (JSON) | |
application/xml | rangerServiceResource (XML) |
POST /tags/resources
Content-Type: application/json
Accept: application/json
{
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
media type | data type | description |
---|---|---|
application/json | array of RangerTagDef (JSON) | |
application/xml | list of rangerTagDef (XML) |
GET /tags/tagdefs
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
} ]
name | type | description | default | constraints |
---|---|---|---|---|
updateIfExists | query | true | boolean |
media type | data type |
---|---|
application/json | RangerTagDef (JSON) |
application/xml | rangerTagDef (XML) |
media type | data type | description |
---|---|---|
application/json | RangerTagDef (JSON) | |
application/xml | rangerTagDef (XML) |
POST /tags/tagdefs
Content-Type: application/json
Accept: application/json
{
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
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) | |
application/xml | list of rangerTagResourceMap (XML) |
GET /tags/tagresourcemaps
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"tagId" : 12345,
"resourceId" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
} ]
name | type | description | default | constraints |
---|---|---|---|---|
lenient | query | false | boolean | |
resource-guid | query | |||
tag-guid | query |
media type | data type | description |
---|---|---|
application/json | RangerTagResourceMap (JSON) | |
application/xml | rangerTagResourceMap (XML) |
POST /tags/tagresourcemaps
Content-Type: */*
Accept: application/json
...
HTTP/1.1 201 Created
Content-Type: application/json
{
"tagId" : 12345,
"resourceId" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
media type | data type | description |
---|---|---|
application/json | array of RangerTag (JSON) | |
application/xml | list of rangerTag (XML) |
GET /tags/tags
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"validityPeriods" : [ {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
} ]
name | type | description | default | constraints |
---|---|---|---|---|
updateIfExists | query | true | boolean |
media type | data type |
---|---|
application/json | RangerTag (JSON) |
application/xml | rangerTag (XML) |
media type | data type | description |
---|---|---|
application/json | RangerTag (JSON) | |
application/xml | rangerTag (XML) |
POST /tags/tags
Content-Type: application/json
Accept: application/json
{
"validityPeriods" : [ {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"validityPeriods" : [ {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
media type | data type | description |
---|---|---|
application/json | array of string (JSON) | |
application/xml | list of string (XML) |
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) | |
application/xml | serviceTags (XML) |
GET /tags/download/{serviceName}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"serviceName" : "...",
"tagUpdateTime" : 12345,
"resourceToTagIds" : {
"property1" : [ 12345, 12345 ],
"property2" : [ 12345, 12345 ]
},
"tagDefinitions" : {
"property1" : {
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
},
"property2" : {
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
},
"isDelta" : true,
"tags" : {
"property1" : {
"validityPeriods" : [ {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
},
"property2" : {
"validityPeriods" : [ {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
},
"tagsChangeExtent" : "SERVICE_RESOURCE",
"serviceResources" : [ {
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}, {
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
} ],
"op" : "...",
"tagVersion" : 12345
}
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) | |
application/xml | rangerServiceResource (XML) |
GET /tags/resource/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerServiceResource (JSON) |
application/xml | rangerServiceResource (XML) |
media type | data type | description |
---|---|---|
application/json | RangerServiceResource (JSON) | |
application/xml | rangerServiceResource (XML) |
PUT /tags/resource/{id}
Content-Type: application/json
Accept: application/json
{
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
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) | |
application/xml | rangerTag (XML) |
GET /tags/tag/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"validityPeriods" : [ {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerTag (JSON) |
application/xml | rangerTag (XML) |
media type | data type | description |
---|---|---|
application/json | RangerTag (JSON) | |
application/xml | rangerTag (XML) |
PUT /tags/tag/{id}
Content-Type: application/json
Accept: application/json
{
"validityPeriods" : [ {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"validityPeriods" : [ {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
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) | |
application/xml | rangerTagDef (XML) |
GET /tags/tagdef/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | RangerTagDef (JSON) |
application/xml | rangerTagDef (XML) |
media type | data type | description |
---|---|---|
application/json | RangerTagDef (JSON) | |
application/xml | rangerTagDef (XML) |
PUT /tags/tagdef/{id}
Content-Type: application/json
Accept: application/json
{
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
name | type | description |
---|---|---|
resourceGuid | query | |
tagGuid | query |
media type | data type | description |
---|---|---|
application/json | RangerTagResourceMap (JSON) | |
application/xml | rangerTagResourceMap (XML) |
GET /tags/tagresourcemap/tag-resource-guid
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"tagId" : 12345,
"resourceId" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
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) | |
application/xml | rangerTagResourceMap (XML) |
GET /tags/tagresourcemap/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"tagId" : 12345,
"resourceId" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
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) | |
application/xml | rangerServiceResource (XML) |
GET /tags/resource/guid/{guid}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
name | type | description |
---|---|---|
guid | path |
media type | data type |
---|---|
application/json | RangerServiceResource (JSON) |
application/xml | rangerServiceResource (XML) |
media type | data type | description |
---|---|---|
application/json | RangerServiceResource (JSON) | |
application/xml | rangerServiceResource (XML) |
PUT /tags/resource/guid/{guid}
Content-Type: application/json
Accept: application/json
{
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
name | type | description |
---|---|---|
serviceName | path |
media type | data type | description |
---|---|---|
application/json | array of RangerServiceResource (JSON) | |
application/xml | list of rangerServiceResource (XML) |
GET /tags/resources/service/{serviceName}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
} ]
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) | |
application/xml | serviceTags (XML) |
GET /tags/secure/download/{serviceName}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"serviceName" : "...",
"tagUpdateTime" : 12345,
"resourceToTagIds" : {
"property1" : [ 12345, 12345 ],
"property2" : [ 12345, 12345 ]
},
"tagDefinitions" : {
"property1" : {
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
},
"property2" : {
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
},
"isDelta" : true,
"tags" : {
"property1" : {
"validityPeriods" : [ {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
},
"property2" : {
"validityPeriods" : [ {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ { }, { } ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
},
"tagsChangeExtent" : "TAGS",
"serviceResources" : [ {
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}, {
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
} ],
"op" : "...",
"tagVersion" : 12345
}
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) | |
application/xml | rangerTag (XML) |
GET /tags/tag/guid/{guid}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"validityPeriods" : [ {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
name | type | description |
---|---|---|
guid | path |
media type | data type |
---|---|
application/json | RangerTag (JSON) |
application/xml | rangerTag (XML) |
media type | data type | description |
---|---|---|
application/json | RangerTag (JSON) | |
application/xml | rangerTag (XML) |
PUT /tags/tag/guid/{guid}
Content-Type: application/json
Accept: application/json
{
"validityPeriods" : [ {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"validityPeriods" : [ {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
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) | |
application/xml | rangerTagDef (XML) |
GET /tags/tagdef/guid/{guid}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
name | type | description |
---|---|---|
name | path |
media type | data type | description |
---|---|---|
application/json | RangerTagDef (JSON) | |
application/xml | rangerTagDef (XML) |
GET /tags/tagdef/name/{name}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"name" : "...",
"source" : "...",
"attributeDefs" : [ {
"name" : "...",
"type" : "..."
}, {
"name" : "...",
"type" : "..."
} ],
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
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) | |
application/xml | rangerTagResourceMap (XML) |
GET /tags/tagresourcemap/guid/{guid}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"tagId" : 12345,
"resourceId" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}
name | type | description |
---|---|---|
type | path |
media type | data type | description |
---|---|---|
application/json | array of RangerTag (JSON) | |
application/xml | list of rangerTag (XML) |
GET /tags/tags/type/{type}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"validityPeriods" : [ {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
}, {
"recurrences" : [ {
"interval" : { },
"schedule" : { }
}, {
"interval" : { },
"schedule" : { }
} ],
"startTime" : "...",
"timeZone" : "...",
"endTime" : "..."
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"type" : "...",
"attributes" : {
"property1" : "...",
"property2" : "..."
},
"owner" : 12345,
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
} ]
name | type | description |
---|---|---|
resourceSignature | path | |
serviceName | path |
media type | data type | description |
---|---|---|
application/json | RangerServiceResource (JSON) | |
application/xml | rangerServiceResource (XML) |
GET /tags/resource/service/{serviceName}/signature/{resourceSignature}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"resourceElements" : {
"property1" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
},
"property2" : {
"values" : [ "...", "..." ],
"isRecursive" : true,
"isExcludes" : true
}
},
"additionalInfo" : {
"property1" : "...",
"property2" : "..."
},
"ownerUser" : "...",
"serviceName" : "...",
"resourceSignature" : "...",
"createTime" : 12345,
"id" : 12345,
"updatedBy" : "...",
"version" : 12345,
"createdBy" : "...",
"guid" : "...",
"updateTime" : 12345,
"isEnabled" : true
}