@ThreadSafe public interface BucketsApi
Modifier and Type | Method and Description |
---|---|
LabelResponse |
addLabel(Label label,
Bucket bucket)
Add the bucket label.
|
LabelResponse |
addLabel(String labelID,
String bucketID)
Add the bucket label.
|
ResourceMember |
addMember(String memberID,
String bucketID)
Add the bucket member.
|
ResourceMember |
addMember(User member,
Bucket bucket)
Add the bucket member.
|
ResourceOwner |
addOwner(String ownerID,
String bucketID)
Add the bucket owner.
|
ResourceOwner |
addOwner(User owner,
Bucket bucket)
Add the bucket owner.
|
Bucket |
cloneBucket(String clonedName,
Bucket bucket)
Clone a bucket.
|
Bucket |
cloneBucket(String clonedName,
String bucketID)
Clone a bucket.
|
Bucket |
createBucket(Bucket bucket)
Creates a new bucket and sets
Bucket.getId() with the new identifier. |
Bucket |
createBucket(PostBucketRequest bucket)
Create a bucket.
|
Bucket |
createBucket(String name,
BucketRetentionRules bucketRetentionRules,
Organization organization)
Creates a new bucket and sets
Bucket.getId() with the new identifier. |
Bucket |
createBucket(String name,
BucketRetentionRules bucketRetentionRules,
String orgID)
Creates a new bucket and sets
Bucket.getId() with the new identifier. |
Bucket |
createBucket(String name,
Organization organization)
Creates a new bucket and sets
Bucket.getId() with the new identifier. |
Bucket |
createBucket(String name,
String orgID)
Creates a new bucket and sets
Bucket.getId() with the new identifier. |
void |
deleteBucket(Bucket bucket)
Delete a bucket.
|
void |
deleteBucket(String bucketID)
Delete a bucket.
|
void |
deleteLabel(Label label,
Bucket bucket)
Removes a label from a bucket.
|
void |
deleteLabel(String labelID,
String bucketID)
Removes a label from a bucket.
|
void |
deleteMember(String memberID,
String bucketID)
Removes a member from a bucket.
|
void |
deleteMember(User member,
Bucket bucket)
Removes a member from a bucket.
|
void |
deleteOwner(String ownerID,
String bucketID)
Removes a owner from a bucket.
|
void |
deleteOwner(User owner,
Bucket bucket)
Removes a owner from a bucket.
|
Bucket |
findBucketByID(String bucketID)
Retrieve a bucket.
|
Bucket |
findBucketByName(String bucketName)
Retrieve a bucket.
|
List<Bucket> |
findBuckets()
List all buckets.
|
Buckets |
findBuckets(FindOptions findOptions)
List all buckets filtered by
findOptions . |
List<Bucket> |
findBucketsByOrg(Organization organization)
List all buckets for specified
organization . |
List<Bucket> |
findBucketsByOrgName(String orgName)
List all buckets for specified
orgName . |
List<Label> |
getLabels(Bucket bucket)
List all labels of a bucket.
|
List<Label> |
getLabels(String bucketID)
List all labels of a bucket.
|
List<ResourceMember> |
getMembers(Bucket bucket)
List all users with member privileges for a bucket.
|
List<ResourceMember> |
getMembers(String bucketID)
List all users with member privileges for a bucket.
|
List<ResourceOwner> |
getOwners(Bucket bucket)
List all owners of a bucket.
|
List<ResourceOwner> |
getOwners(String bucketID)
List all owners of a bucket.
|
Bucket |
updateBucket(Bucket bucket)
Update a bucket name and retention.
|
@Nonnull Bucket createBucket(@Nonnull Bucket bucket)
Bucket.getId()
with the new identifier.bucket
- bucket to create@Nonnull Bucket createBucket(@Nonnull String name, @Nonnull Organization organization)
Bucket.getId()
with the new identifier.name
- name of the bucketorganization
- owner of bucket@Nonnull Bucket createBucket(@Nonnull String name, @Nullable BucketRetentionRules bucketRetentionRules, @Nonnull Organization organization)
Bucket.getId()
with the new identifier.name
- name of the bucketbucketRetentionRules
- bucket retention periodorganization
- owner of bucket@Nonnull Bucket createBucket(@Nonnull String name, @Nonnull String orgID)
Bucket.getId()
with the new identifier.name
- name of the bucketorgID
- owner of bucket@Nonnull Bucket createBucket(@Nonnull String name, @Nullable BucketRetentionRules bucketRetentionRules, @Nonnull String orgID)
Bucket.getId()
with the new identifier.name
- name of the bucketbucketRetentionRules
- bucket retention periodorgID
- owner of bucket@Nonnull Bucket createBucket(@Nonnull PostBucketRequest bucket)
bucket
- Bucket to create@Nonnull Bucket updateBucket(@Nonnull Bucket bucket)
bucket
- bucket update to applyvoid deleteBucket(@Nonnull Bucket bucket)
bucket
- bucket to deletevoid deleteBucket(@Nonnull String bucketID)
bucketID
- ID of bucket to delete@Nonnull Bucket cloneBucket(@Nonnull String clonedName, @Nonnull String bucketID)
clonedName
- name of cloned bucketbucketID
- ID of bucket to clone@Nonnull Bucket cloneBucket(@Nonnull String clonedName, @Nonnull Bucket bucket)
clonedName
- name of cloned bucketbucket
- bucket to clone@Nonnull Bucket findBucketByID(@Nonnull String bucketID)
bucketID
- ID of bucket to get@Nullable Bucket findBucketByName(@Nonnull String bucketName)
bucketName
- Name of bucket to get@Nonnull Buckets findBuckets(@Nonnull FindOptions findOptions)
findOptions
.findOptions
- the find options@Nonnull List<Bucket> findBucketsByOrg(@Nonnull Organization organization)
organization
.organization
- filter buckets to a specific organization@Nonnull List<Bucket> findBucketsByOrgName(@Nullable String orgName)
orgName
.orgName
- filter buckets to a specific organization name@Nonnull List<ResourceMember> getMembers(@Nonnull Bucket bucket)
bucket
- the bucket with members@Nonnull List<ResourceMember> getMembers(@Nonnull String bucketID)
bucketID
- ID of bucket to get members@Nonnull ResourceMember addMember(@Nonnull User member, @Nonnull Bucket bucket)
member
- the member of an bucketbucket
- the bucket for the member@Nonnull ResourceMember addMember(@Nonnull String memberID, @Nonnull String bucketID)
memberID
- the ID of a memberbucketID
- the ID of a bucketvoid deleteMember(@Nonnull User member, @Nonnull Bucket bucket)
member
- the member of a bucketbucket
- the bucketvoid deleteMember(@Nonnull String memberID, @Nonnull String bucketID)
bucketID
- the ID of a bucketmemberID
- the ID of a member@Nonnull List<ResourceOwner> getOwners(@Nonnull Bucket bucket)
bucket
- the bucket with owners@Nonnull List<ResourceOwner> getOwners(@Nonnull String bucketID)
bucketID
- ID of bucket to get owners@Nonnull ResourceOwner addOwner(@Nonnull User owner, @Nonnull Bucket bucket)
owner
- the owner of a bucketbucket
- the bucket@Nonnull ResourceOwner addOwner(@Nonnull String ownerID, @Nonnull String bucketID)
bucketID
- the ID of a bucketownerID
- the ID of a ownervoid deleteOwner(@Nonnull User owner, @Nonnull Bucket bucket)
owner
- the owner of a bucketbucket
- the bucketvoid deleteOwner(@Nonnull String ownerID, @Nonnull String bucketID)
bucketID
- the ID of a bucketownerID
- the ID of a owner@Nonnull List<Label> getLabels(@Nonnull Bucket bucket)
bucket
- the bucket with labels@Nonnull List<Label> getLabels(@Nonnull String bucketID)
bucketID
- ID of bucket to get labels@Nonnull LabelResponse addLabel(@Nonnull Label label, @Nonnull Bucket bucket)
label
- the label of a bucketbucket
- the bucket@Nonnull LabelResponse addLabel(@Nonnull String labelID, @Nonnull String bucketID)
bucketID
- the ID of a bucketlabelID
- the ID of a labelvoid deleteLabel(@Nonnull Label label, @Nonnull Bucket bucket)
label
- the label of a bucketbucket
- the bucketCopyright © 2018–2021 InfluxData, Inc.. All rights reserved.