Package com.influxdb.client
Interface OrganizationsApi
@ThreadSafe
public interface OrganizationsApi
The client of the InfluxDB 2.x that implement Organization HTTP API endpoint.
- Author:
- Jakub Bednar (bednar@github) (11/09/2018 14:58)
-
Method Summary
Modifier and TypeMethodDescriptionaddMember
(User member, Organization organization) Add organization member.Add organization member.addOwner
(User owner, Organization organization) Add organization owner.Add organization owner.cloneOrganization
(String clonedName, Organization organization) Clone an organization.cloneOrganization
(String clonedName, String orgID) Clone an organization.createOrganization
(Organization organization) Creates a new organization and setsOrganization.getId()
with the new identifier.createOrganization
(String name) Creates a new organization and setsOrganization.getId()
with the new identifier.void
deleteMember
(User member, Organization organization) Removes a member from an organization.void
deleteMember
(String memberID, String orgID) Removes a member from an organization.void
deleteOrganization
(Organization organization) Delete an organization.void
deleteOrganization
(String orgID) Delete an organization.void
deleteOwner
(User owner, Organization organization) Removes a owner from an organization.void
deleteOwner
(String ownerID, String orgID) Removes a owner from an organization.void
deleteSecrets
(SecretKeys secretKeys, String orgID) Delete provided secrets.void
deleteSecrets
(List<String> secrets, Organization organization) Delete provided secrets.void
deleteSecrets
(List<String> secrets, String orgID) Delete provided secrets.findOrganizationByID
(String orgID) Retrieve an organization.List all organizations.List all organizations.getMembers
(Organization organization) List all members of an organization.getMembers
(String orgID) List all members of an organization.getOwners
(Organization organization) List all owners of an organization.List all owners of an organization.getSecrets
(Organization organization) List of secret keys the are stored for Organization.getSecrets
(String orgID) List of secret keys the are stored for Organization.void
putSecrets
(Map<String, String> secrets, Organization organization) Patches all provided secrets and updates any previous values.void
putSecrets
(Map<String, String> secrets, String orgID) Patches all provided secrets and updates any previous values.updateOrganization
(Organization organization) Update an organization.
-
Method Details
-
createOrganization
Creates a new organization and setsOrganization.getId()
with the new identifier.- Parameters:
organization
- the organization to create- Returns:
- Organization created
-
createOrganization
Creates a new organization and setsOrganization.getId()
with the new identifier.- Parameters:
name
- name of the organization- Returns:
- Organization created
-
updateOrganization
Update an organization.- Parameters:
organization
- organization update to apply- Returns:
- organization updated
-
deleteOrganization
Delete an organization.- Parameters:
organization
- organization to delete
-
deleteOrganization
Delete an organization.- Parameters:
orgID
- ID of organization to delete
-
cloneOrganization
Clone an organization.- Parameters:
clonedName
- name of cloned organizationorgID
- ID of organization to clone- Returns:
- cloned organization
-
cloneOrganization
@Nonnull Organization cloneOrganization(@Nonnull String clonedName, @Nonnull Organization organization) Clone an organization.- Parameters:
clonedName
- name of cloned organizationorganization
- organization to clone- Returns:
- cloned organization
-
findOrganizationByID
Retrieve an organization.- Parameters:
orgID
- ID of organization to get- Returns:
- organization details
-
findOrganizations
List all organizations.- Returns:
- List all organizations
-
findOrganizations
List all organizations.- Returns:
- List all organizations
-
getSecrets
List of secret keys the are stored for Organization.For example
github_api_key, some_other_key, a_secret_key
- Parameters:
organization
- the organization for get secrets- Returns:
- the secret keys
-
getSecrets
List of secret keys the are stored for Organization.For example
github_api_key, some_other_key, a_secret_key
- Parameters:
orgID
- the organization for get secrets- Returns:
- the secret keys
-
putSecrets
Patches all provided secrets and updates any previous values.- Parameters:
secrets
- secrets to update/addorganization
- the organization for put secrets
-
putSecrets
Patches all provided secrets and updates any previous values.- Parameters:
secrets
- secrets to update/addorgID
- the organization for put secrets
-
deleteSecrets
Delete provided secrets.- Parameters:
secrets
- secrets to deleteorganization
- the organization for delete secrets
-
deleteSecrets
Delete provided secrets.- Parameters:
secrets
- secrets to deleteorgID
- the organization for delete secrets
-
deleteSecrets
Delete provided secrets.- Parameters:
secretKeys
- secret key to deleted (required)orgID
- ID of the organization (required)
-
getMembers
List all members of an organization.- Parameters:
organization
- of the members- Returns:
- return the List all members of an organization
-
getMembers
List all members of an organization.- Parameters:
orgID
- ID of organization to get members- Returns:
- return the List all members of an organization
-
addMember
Add organization member.- Parameters:
member
- the member of an organizationorganization
- the organization for the member- Returns:
- created mapping
-
addMember
Add organization member.- Parameters:
memberID
- the ID of a memberorgID
- the ID of an organization- Returns:
- created mapping
-
deleteMember
Removes a member from an organization.- Parameters:
member
- the member of an organizationorganization
- the organization of a member
-
deleteMember
Removes a member from an organization.- Parameters:
memberID
- the ID of a memberorgID
- the ID of an organization
-
getOwners
List all owners of an organization.- Parameters:
organization
- of the owners- Returns:
- return the List all owners of an organization
-
getOwners
List all owners of an organization.- Parameters:
orgID
- ID of organization to get owners- Returns:
- return the List all owners of an organization
-
addOwner
Add organization owner.- Parameters:
owner
- the owner of an organizationorganization
- the organization of a owner- Returns:
- created mapping
-
addOwner
Add organization owner.- Parameters:
ownerID
- the ID of a ownerorgID
- the ID of an organization- Returns:
- created mapping
-
deleteOwner
Removes a owner from an organization.- Parameters:
owner
- the owner of an organizationorganization
- the organization of a owner
-
deleteOwner
Removes a owner from an organization.- Parameters:
ownerID
- the ID of a ownerorgID
- the ID of an organization
-