Linode v4.27.2 published on Tuesday, Sep 24, 2024 by Pulumi
linode.getLinodeObjectStorageBucket
Explore with Pulumi AI
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/v4/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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: linode:index/getLinodeObjectStorageBucket:getLinodeObjectStorageBucket
arguments:
# arguments dictionary
The following arguments are supported:
getLinodeObjectStorageBucket Result
The following output properties are available:
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.