@ThreadSafe public interface OrganizationsApi
Modifier and Type | Method and Description |
---|---|
ResourceMember |
addMember(String memberID,
String orgID)
Add organization member.
|
ResourceMember |
addMember(User member,
Organization organization)
Add organization member.
|
ResourceOwner |
addOwner(String ownerID,
String orgID)
Add organization owner.
|
ResourceOwner |
addOwner(User owner,
Organization organization)
Add organization owner.
|
Organization |
cloneOrganization(String clonedName,
Organization organization)
Clone an organization.
|
Organization |
cloneOrganization(String clonedName,
String orgID)
Clone an organization.
|
Organization |
createOrganization(Organization organization)
Creates a new organization and sets
Organization.getId() with the new identifier. |
Organization |
createOrganization(String name)
Creates a new organization and sets
Organization.getId() with the new identifier. |
void |
deleteMember(String memberID,
String orgID)
Removes a member from an organization.
|
void |
deleteMember(User member,
Organization organization)
Removes a member from an organization.
|
void |
deleteOrganization(Organization organization)
Delete an organization.
|
void |
deleteOrganization(String orgID)
Delete an organization.
|
void |
deleteOwner(String ownerID,
String orgID)
Removes a owner from an organization.
|
void |
deleteOwner(User owner,
Organization organization)
Removes a owner from an organization.
|
void |
deleteSecrets(List<String> secrets,
Organization organization)
Delete provided secrets.
|
void |
deleteSecrets(List<String> secrets,
String orgID)
Delete provided secrets.
|
void |
deleteSecrets(SecretKeys secretKeys,
String orgID)
Delete provided secrets.
|
Organization |
findOrganizationByID(String orgID)
Retrieve an organization.
|
List<Organization> |
findOrganizations()
List all organizations.
|
List<Organization> |
findOrganizations(OrganizationsQuery query)
List all organizations.
|
List<ResourceMember> |
getMembers(Organization organization)
List all members of an organization.
|
List<ResourceMember> |
getMembers(String orgID)
List all members of an organization.
|
List<ResourceOwner> |
getOwners(Organization organization)
List all owners of an organization.
|
List<ResourceOwner> |
getOwners(String orgID)
List all owners of an organization.
|
SecretKeysResponse |
getSecrets(Organization organization)
List of secret keys the are stored for Organization.
|
SecretKeysResponse |
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.
|
Organization |
updateOrganization(Organization organization)
Update an organization.
|
@Nonnull Organization createOrganization(@Nonnull Organization organization)
Organization.getId()
with the new identifier.organization
- the organization to create@Nonnull Organization createOrganization(@Nonnull String name)
Organization.getId()
with the new identifier.name
- name of the organization@Nonnull Organization updateOrganization(@Nonnull Organization organization)
organization
- organization update to applyvoid deleteOrganization(@Nonnull Organization organization)
organization
- organization to deletevoid deleteOrganization(@Nonnull String orgID)
orgID
- ID of organization to delete@Nonnull Organization cloneOrganization(@Nonnull String clonedName, @Nonnull String orgID)
clonedName
- name of cloned organizationorgID
- ID of organization to clone@Nonnull Organization cloneOrganization(@Nonnull String clonedName, @Nonnull Organization organization)
clonedName
- name of cloned organizationorganization
- organization to clone@Nonnull Organization findOrganizationByID(@Nonnull String orgID)
orgID
- ID of organization to get@Nonnull List<Organization> findOrganizations()
@Nonnull List<Organization> findOrganizations(@Nonnull OrganizationsQuery query)
SecretKeysResponse getSecrets(@Nonnull Organization organization)
For example
github_api_key, some_other_key, a_secret_key
organization
- the organization for get secretsSecretKeysResponse getSecrets(@Nonnull String orgID)
For example
github_api_key, some_other_key, a_secret_key
orgID
- the organization for get secretsvoid putSecrets(@Nonnull Map<String,String> secrets, @Nonnull Organization organization)
secrets
- secrets to update/addorganization
- the organization for put secretsvoid putSecrets(@Nonnull Map<String,String> secrets, @Nonnull String orgID)
secrets
- secrets to update/addorgID
- the organization for put secretsvoid deleteSecrets(@Nonnull List<String> secrets, @Nonnull Organization organization)
secrets
- secrets to deleteorganization
- the organization for delete secretsvoid deleteSecrets(@Nonnull List<String> secrets, @Nonnull String orgID)
secrets
- secrets to deleteorgID
- the organization for delete secretsvoid deleteSecrets(@Nonnull SecretKeys secretKeys, @Nonnull String orgID)
secretKeys
- secret key to deleted (required)orgID
- ID of the organization (required)@Nonnull List<ResourceMember> getMembers(@Nonnull Organization organization)
organization
- of the members@Nonnull List<ResourceMember> getMembers(@Nonnull String orgID)
orgID
- ID of organization to get members@Nonnull ResourceMember addMember(@Nonnull User member, @Nonnull Organization organization)
member
- the member of an organizationorganization
- the organization for the member@Nonnull ResourceMember addMember(@Nonnull String memberID, @Nonnull String orgID)
memberID
- the ID of a memberorgID
- the ID of an organizationvoid deleteMember(@Nonnull User member, @Nonnull Organization organization)
member
- the member of an organizationorganization
- the organization of a membervoid deleteMember(@Nonnull String memberID, @Nonnull String orgID)
orgID
- the ID of an organizationmemberID
- the ID of a member@Nonnull List<ResourceOwner> getOwners(@Nonnull Organization organization)
organization
- of the owners@Nonnull List<ResourceOwner> getOwners(@Nonnull String orgID)
orgID
- ID of organization to get owners@Nonnull ResourceOwner addOwner(@Nonnull User owner, @Nonnull Organization organization)
owner
- the owner of an organizationorganization
- the organization of a owner@Nonnull ResourceOwner addOwner(@Nonnull String ownerID, @Nonnull String orgID)
orgID
- the ID of an organizationownerID
- the ID of a ownervoid deleteOwner(@Nonnull User owner, @Nonnull Organization organization)
owner
- the owner of an organizationorganization
- the organization of a ownerCopyright © 2018–2022 InfluxData, Inc.. All rights reserved.