Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien
vultr.getObjectStorage
Explore with Pulumi AI
Get information about an Object Storage subscription on Vultr.
Example Usage
Get the information for an object storage subscription by label
:
import * as pulumi from "@pulumi/pulumi";
import * as vultr from "@pulumi/vultr";
const s3 = vultr.getObjectStorage({
filters: [{
name: "label",
values: ["my-s3"],
}],
});
import pulumi
import pulumi_vultr as vultr
s3 = vultr.get_object_storage(filters=[vultr.GetObjectStorageFilterArgs(
name="label",
values=["my-s3"],
)])
package main
import (
"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vultr.LookupObjectStorage(ctx, &vultr.LookupObjectStorageArgs{
Filters: []vultr.GetObjectStorageFilter{
{
Name: "label",
Values: []string{
"my-s3",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vultr = Pulumi.Vultr;
return await Deployment.RunAsync(() =>
{
var s3 = Vultr.GetObjectStorage.Invoke(new()
{
Filters = new[]
{
new Vultr.Inputs.GetObjectStorageFilterInputArgs
{
Name = "label",
Values = new[]
{
"my-s3",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vultr.VultrFunctions;
import com.pulumi.vultr.inputs.GetObjectStorageArgs;
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 s3 = VultrFunctions.getObjectStorage(GetObjectStorageArgs.builder()
.filters(GetObjectStorageFilterArgs.builder()
.name("label")
.values("my-s3")
.build())
.build());
}
}
variables:
s3:
fn::invoke:
Function: vultr:getObjectStorage
Arguments:
filters:
- name: label
values:
- my-s3
Using getObjectStorage
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 getObjectStorage(args: GetObjectStorageArgs, opts?: InvokeOptions): Promise<GetObjectStorageResult>
function getObjectStorageOutput(args: GetObjectStorageOutputArgs, opts?: InvokeOptions): Output<GetObjectStorageResult>
def get_object_storage(filters: Optional[Sequence[GetObjectStorageFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetObjectStorageResult
def get_object_storage_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetObjectStorageFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetObjectStorageResult]
func LookupObjectStorage(ctx *Context, args *LookupObjectStorageArgs, opts ...InvokeOption) (*LookupObjectStorageResult, error)
func LookupObjectStorageOutput(ctx *Context, args *LookupObjectStorageOutputArgs, opts ...InvokeOption) LookupObjectStorageResultOutput
> Note: This function is named LookupObjectStorage
in the Go SDK.
public static class GetObjectStorage
{
public static Task<GetObjectStorageResult> InvokeAsync(GetObjectStorageArgs args, InvokeOptions? opts = null)
public static Output<GetObjectStorageResult> Invoke(GetObjectStorageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetObjectStorageResult> getObjectStorage(GetObjectStorageArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: vultr:index/getObjectStorage:getObjectStorage
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<ediri.
Vultr. Inputs. Get Object Storage Filter> - Query parameters for finding operating systems.
- Filters
[]Get
Object Storage Filter - Query parameters for finding operating systems.
- filters
List<Get
Object Storage Filter> - Query parameters for finding operating systems.
- filters
Get
Object Storage Filter[] - Query parameters for finding operating systems.
- filters
Sequence[Get
Object Storage Filter] - Query parameters for finding operating systems.
- filters List<Property Map>
- Query parameters for finding operating systems.
getObjectStorage Result
The following output properties are available:
- Cluster
Id int - The identifying cluster ID.
- Date
Created string - Date of creation for the object storage subscription.
- Id string
- The provider-assigned unique ID for this managed resource.
- Label string
- The label of the object storage subscription.
- Location string
- The location which this subscription resides in.
- Region string
- The region ID of the object storage subscription.
- S3Access
Key string - Your access key.
- S3Hostname string
- The hostname for this subscription.
- S3Secret
Key string - Your secret key.
- Status string
- Current status of this object storage subscription.
- Filters
List<ediri.
Vultr. Outputs. Get Object Storage Filter>
- Cluster
Id int - The identifying cluster ID.
- Date
Created string - Date of creation for the object storage subscription.
- Id string
- The provider-assigned unique ID for this managed resource.
- Label string
- The label of the object storage subscription.
- Location string
- The location which this subscription resides in.
- Region string
- The region ID of the object storage subscription.
- S3Access
Key string - Your access key.
- S3Hostname string
- The hostname for this subscription.
- S3Secret
Key string - Your secret key.
- Status string
- Current status of this object storage subscription.
- Filters
[]Get
Object Storage Filter
- cluster
Id Integer - The identifying cluster ID.
- date
Created String - Date of creation for the object storage subscription.
- id String
- The provider-assigned unique ID for this managed resource.
- label String
- The label of the object storage subscription.
- location String
- The location which this subscription resides in.
- region String
- The region ID of the object storage subscription.
- s3Access
Key String - Your access key.
- s3Hostname String
- The hostname for this subscription.
- s3Secret
Key String - Your secret key.
- status String
- Current status of this object storage subscription.
- filters
List<Get
Object Storage Filter>
- cluster
Id number - The identifying cluster ID.
- date
Created string - Date of creation for the object storage subscription.
- id string
- The provider-assigned unique ID for this managed resource.
- label string
- The label of the object storage subscription.
- location string
- The location which this subscription resides in.
- region string
- The region ID of the object storage subscription.
- s3Access
Key string - Your access key.
- s3Hostname string
- The hostname for this subscription.
- s3Secret
Key string - Your secret key.
- status string
- Current status of this object storage subscription.
- filters
Get
Object Storage Filter[]
- cluster_
id int - The identifying cluster ID.
- date_
created str - Date of creation for the object storage subscription.
- id str
- The provider-assigned unique ID for this managed resource.
- label str
- The label of the object storage subscription.
- location str
- The location which this subscription resides in.
- region str
- The region ID of the object storage subscription.
- s3_
access_ strkey - Your access key.
- s3_
hostname str - The hostname for this subscription.
- s3_
secret_ strkey - Your secret key.
- status str
- Current status of this object storage subscription.
- filters
Sequence[Get
Object Storage Filter]
- cluster
Id Number - The identifying cluster ID.
- date
Created String - Date of creation for the object storage subscription.
- id String
- The provider-assigned unique ID for this managed resource.
- label String
- The label of the object storage subscription.
- location String
- The location which this subscription resides in.
- region String
- The region ID of the object storage subscription.
- s3Access
Key String - Your access key.
- s3Hostname String
- The hostname for this subscription.
- s3Secret
Key String - Your secret key.
- status String
- Current status of this object storage subscription.
- filters List<Property Map>
Supporting Types
GetObjectStorageFilter
Package Details
- Repository
- vultr dirien/pulumi-vultr
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vultr
Terraform Provider.