InfluxDB v1.2.2 published on Thursday, Sep 12, 2024 by komminarlabs
influxdb.getBucket
Explore with Pulumi AI
Retrieves a bucket. Use this data source to retrieve information for a specific bucket.
Using getBucket
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBucket(args: GetBucketArgs, opts?: InvokeOptions): Promise<GetBucketResult>
function getBucketOutput(args: GetBucketOutputArgs, opts?: InvokeOptions): Output<GetBucketResult>
def get_bucket(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBucketResult
def get_bucket_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBucketResult]
func LookupBucket(ctx *Context, args *LookupBucketArgs, opts ...InvokeOption) (*LookupBucketResult, error)
func LookupBucketOutput(ctx *Context, args *LookupBucketOutputArgs, opts ...InvokeOption) LookupBucketResultOutput
> Note: This function is named LookupBucket
in the Go SDK.
public static class GetBucket
{
public static Task<GetBucketResult> InvokeAsync(GetBucketArgs args, InvokeOptions? opts = null)
public static Output<GetBucketResult> Invoke(GetBucketInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBucketResult> getBucket(GetBucketArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: influxdb:index/getBucket:getBucket
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- A Bucket name.
- Name string
- A Bucket name.
- name String
- A Bucket name.
- name string
- A Bucket name.
- name str
- A Bucket name.
- name String
- A Bucket name.
getBucket Result
The following output properties are available:
- Created
At string - Bucket creation date.
- Description string
- A description of the bucket.
- Id string
- A Bucket ID.
- Name string
- A Bucket name.
- Org
Id string - An organization ID.
- Retention
Period int - The duration in seconds for how long data will be kept in the database.
0
represents infinite retention. - Type string
- The Bucket type.
- Updated
At string - Last bucket update date.
- Created
At string - Bucket creation date.
- Description string
- A description of the bucket.
- Id string
- A Bucket ID.
- Name string
- A Bucket name.
- Org
Id string - An organization ID.
- Retention
Period int - The duration in seconds for how long data will be kept in the database.
0
represents infinite retention. - Type string
- The Bucket type.
- Updated
At string - Last bucket update date.
- created
At String - Bucket creation date.
- description String
- A description of the bucket.
- id String
- A Bucket ID.
- name String
- A Bucket name.
- org
Id String - An organization ID.
- retention
Period Integer - The duration in seconds for how long data will be kept in the database.
0
represents infinite retention. - type String
- The Bucket type.
- updated
At String - Last bucket update date.
- created
At string - Bucket creation date.
- description string
- A description of the bucket.
- id string
- A Bucket ID.
- name string
- A Bucket name.
- org
Id string - An organization ID.
- retention
Period number - The duration in seconds for how long data will be kept in the database.
0
represents infinite retention. - type string
- The Bucket type.
- updated
At string - Last bucket update date.
- created_
at str - Bucket creation date.
- description str
- A description of the bucket.
- id str
- A Bucket ID.
- name str
- A Bucket name.
- org_
id str - An organization ID.
- retention_
period int - The duration in seconds for how long data will be kept in the database.
0
represents infinite retention. - type str
- The Bucket type.
- updated_
at str - Last bucket update date.
- created
At String - Bucket creation date.
- description String
- A description of the bucket.
- id String
- A Bucket ID.
- name String
- A Bucket name.
- org
Id String - An organization ID.
- retention
Period Number - The duration in seconds for how long data will be kept in the database.
0
represents infinite retention. - type String
- The Bucket type.
- updated
At String - Last bucket update date.
Package Details
- Repository
- influxdb komminarlabs/pulumi-influxdb
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
influxdb
Terraform Provider.