Viewing docs for Linode v5.9.0
published on Friday, Mar 13, 2026 by Pulumi
published on Friday, Mar 13, 2026 by Pulumi
Viewing docs for Linode v5.9.0
published on Friday, Mar 13, 2026 by Pulumi
published on Friday, Mar 13, 2026 by Pulumi
Provides information about a Linode Object Storage Bucket For more information, see the Linode APIv4 docs.
Example Usage
The following example shows how one might use this data source to access information about a Linode Object Storage Bucket.
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const my_bucket = linode.getLinodeObjectStorageBucket({
label: "my-bucket",
region: "us-mia",
});
import pulumi
import pulumi_linode as linode
my_bucket = linode.get_linode_object_storage_bucket(label="my-bucket",
region="us-mia")
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v5/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.GetLinodeObjectStorageBucket(ctx, &linode.GetLinodeObjectStorageBucketArgs{
Label: "my-bucket",
Region: pulumi.StringRef("us-mia"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var my_bucket = Linode.GetLinodeObjectStorageBucket.Invoke(new()
{
Label = "my-bucket",
Region = "us-mia",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetLinodeObjectStorageBucketArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var my-bucket = LinodeFunctions.getLinodeObjectStorageBucket(GetLinodeObjectStorageBucketArgs.builder()
.label("my-bucket")
.region("us-mia")
.build());
}
}
variables:
my-bucket:
fn::invoke:
function: linode:getLinodeObjectStorageBucket
arguments:
label: my-bucket
region: us-mia
Using getLinodeObjectStorageBucket
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 getLinodeObjectStorageBucket(args: GetLinodeObjectStorageBucketArgs, opts?: InvokeOptions): Promise<GetLinodeObjectStorageBucketResult>
function getLinodeObjectStorageBucketOutput(args: GetLinodeObjectStorageBucketOutputArgs, opts?: InvokeOptions): Output<GetLinodeObjectStorageBucketResult>def get_linode_object_storage_bucket(cluster: Optional[str] = None,
label: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLinodeObjectStorageBucketResult
def get_linode_object_storage_bucket_output(cluster: Optional[pulumi.Input[str]] = None,
label: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLinodeObjectStorageBucketResult]func GetLinodeObjectStorageBucket(ctx *Context, args *GetLinodeObjectStorageBucketArgs, opts ...InvokeOption) (*GetLinodeObjectStorageBucketResult, error)
func GetLinodeObjectStorageBucketOutput(ctx *Context, args *GetLinodeObjectStorageBucketOutputArgs, opts ...InvokeOption) GetLinodeObjectStorageBucketResultOutput> Note: This function is named GetLinodeObjectStorageBucket in the Go SDK.
public static class GetLinodeObjectStorageBucket
{
public static Task<GetLinodeObjectStorageBucketResult> InvokeAsync(GetLinodeObjectStorageBucketArgs args, InvokeOptions? opts = null)
public static Output<GetLinodeObjectStorageBucketResult> Invoke(GetLinodeObjectStorageBucketInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLinodeObjectStorageBucketResult> getLinodeObjectStorageBucket(GetLinodeObjectStorageBucketArgs args, InvokeOptions options)
public static Output<GetLinodeObjectStorageBucketResult> getLinodeObjectStorageBucket(GetLinodeObjectStorageBucketArgs args, InvokeOptions options)
fn::invoke:
function: linode:index/getLinodeObjectStorageBucket:getLinodeObjectStorageBucket
arguments:
# arguments dictionaryThe following arguments are supported:
getLinodeObjectStorageBucket Result
The following output properties are available:
- Cluster string
- Created string
- Endpoint
Type string - Hostname string
- Id string
- Label string
- Objects int
- Region string
- S3Endpoint string
- Size int
- Cluster string
- Created string
- Endpoint
Type string - Hostname string
- Id string
- Label string
- Objects int
- Region string
- S3Endpoint string
- Size int
- cluster String
- created String
- endpoint
Type String - hostname String
- id String
- label String
- objects Integer
- region String
- s3Endpoint String
- size Integer
- cluster string
- created string
- endpoint
Type string - hostname string
- id string
- label string
- objects number
- region string
- s3Endpoint string
- size number
- cluster str
- created str
- endpoint_
type str - hostname str
- id str
- label str
- objects int
- region str
- s3_
endpoint str - size int
- cluster String
- created String
- endpoint
Type String - hostname String
- id String
- label String
- objects Number
- region String
- s3Endpoint String
- size Number
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.
Viewing docs for Linode v5.9.0
published on Friday, Mar 13, 2026 by Pulumi
published on Friday, Mar 13, 2026 by Pulumi
