@Path(value="/v2/")
public interface SourceTagAPI
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
appendTag(String id,
String token,
String tagValue)
Add a single tag to a source.
|
javax.ws.rs.core.Response |
removeDescription(String id,
String token)
Remove description from a source.
|
javax.ws.rs.core.Response |
removeTag(String id,
String token,
String tagValue)
Remove a single tag from a source.
|
javax.ws.rs.core.Response |
setDescription(String id,
String token,
String description)
Set description for a source.
|
javax.ws.rs.core.Response |
setTags(String id,
String token,
List<String> tagValuesToSet)
Sets tags for a host, overriding existing tags.
|
@PUT
@Path(value="source/{id}/tag/{tagValue}")
@Produces(value="application/json")
javax.ws.rs.core.Response appendTag(@PathParam(value="id")
String id,
@QueryParam(value="t")
String token,
@PathParam(value="tagValue")
String tagValue)
id - source ID.token - authentication token.tagValue - tag to add.@DELETE
@Path(value="source/{id}/tag/{tagValue}")
@Produces(value="application/json")
javax.ws.rs.core.Response removeTag(@PathParam(value="id")
String id,
@QueryParam(value="t")
String token,
@PathParam(value="tagValue")
String tagValue)
id - source ID.token - authentication token.tagValue - tag to remove.@POST
@Path(value="source/{id}/tag")
@Consumes(value="application/json")
@Produces(value="application/json")
javax.ws.rs.core.Response setTags(@PathParam(value="id")
String id,
@QueryParam(value="t")
String token,
List<String> tagValuesToSet)
id - source ID.token - authentication token.tagValuesToSet - tags to set.@POST
@Path(value="source/{id}/description")
@Consumes(value="application/json")
@Produces(value="application/json")
javax.ws.rs.core.Response setDescription(@PathParam(value="id")
String id,
@QueryParam(value="t")
String token,
String description)
id - source ID.token - authentication token.description - description.@DELETE
@Path(value="source/{id}/description")
@Produces(value="application/json")
javax.ws.rs.core.Response removeDescription(@PathParam(value="id")
String id,
@QueryParam(value="t")
String token)
id - source ID.token - authentication token.Copyright © 2019. All rights reserved.