@Consumes(value="application/json") public interface OrganizationApi extends ChefApi
| Modifier and Type | Method and Description |
|---|---|
void |
createGroup(String name)
Creates a new group.
|
void |
deleteGroup(String name)
Deletes a group.
|
Group |
getGroup(String name)
Retrieves an existing group.
|
User |
getUser(String name)
Retrieves an existing user.
|
Set<String> |
listGroups()
List all existing groups.
|
void |
updateGroup(Group group)
Updates a group.
|
chefService, commitSandbox, createClient, createClient, createDatabag, createDatabagItem, createEnvironment, createNode, createRole, createUploadSandboxForChecksums, deleteClient, deleteCookbook, deleteDatabag, deleteDatabagItem, deleteEnvironment, deleteNode, deleteRole, generateKeyForClient, getClient, getCookbook, getCookbookInEnvironment, getCookbookInEnvironment, getDatabagItem, getEnvironment, getNode, getResourceContents, getRole, listClients, listCookbooks, listCookbooksInEnvironment, listCookbooksInEnvironment, listDatabagItems, listDatabags, listEnvironments, listNodes, listNodesInEnvironment, listRecipesInEnvironment, listRoles, listSearchIndexes, listVersionsOfCookbook, organizationApi, searchClients, searchClients, searchDatabagItems, searchDatabagItems, searchEnvironments, searchEnvironments, searchNodes, searchNodes, searchRoles, searchRoles, updateCookbook, updateDatabagItem, updateEnvironment, updateNode, updateRole, uploadContent@Named(value="user:get")
@GET
@Path(value="/users/{name}")
User getUser(@PathParam(value="name")
String name)
name - The name of the user to get.null if not found.@Named(value="group:list") @GET @Path(value="/groups") Set<String> listGroups()
@Named(value="group:get")
@GET
@Path(value="/groups/{name}")
Group getGroup(@PathParam(value="name")
String name)
name - The name of the group to get.null if not found.@Named(value="group:create") @POST @Path(value="/groups") void createGroup(String name)
name - The name of the group to create.@Named(value="group:update")
@PUT
@Path(value="/groups/{name}")
void updateGroup(@PathParam(value="name")
Group group)
This method can be used to add actors (clients, groups) to the group.
group - The group with the updated information.@Named(value="group:delete")
@DELETE
@Path(value="/groups/{name}")
void deleteGroup(@PathParam(value="name")
String name)
name - The name of the group to delete.Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.