vultr.getObjectStorageTier
Get information about Object Storage tiers on Vultr.
Example Usage
Get the information for an object storage tier by slug:
import * as pulumi from "@pulumi/pulumi";
import * as vultr from "@ediri/vultr";
const obs_tier = vultr.getObjectStorageTier({
filters: [{
name: "slug",
values: ["tier_010k_5000m"],
}],
});
import pulumi
import pulumi_vultr as vultr
obs_tier = vultr.get_object_storage_tier(filters=[{
"name": "slug",
"values": ["tier_010k_5000m"],
}])
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.GetObjectStorageTier(ctx, &vultr.GetObjectStorageTierArgs{
Filters: []vultr.GetObjectStorageTierFilter{
{
Name: "slug",
Values: []string{
"tier_010k_5000m",
},
},
},
}, 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 obs_tier = Vultr.GetObjectStorageTier.Invoke(new()
{
Filters = new[]
{
new Vultr.Inputs.GetObjectStorageTierFilterInputArgs
{
Name = "slug",
Values = new[]
{
"tier_010k_5000m",
},
},
},
});
});
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.GetObjectStorageTierArgs;
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 obs-tier = VultrFunctions.getObjectStorageTier(GetObjectStorageTierArgs.builder()
.filters(GetObjectStorageTierFilterArgs.builder()
.name("slug")
.values("tier_010k_5000m")
.build())
.build());
}
}
variables:
obs-tier:
fn::invoke:
function: vultr:getObjectStorageTier
arguments:
filters:
- name: slug
values:
- tier_010k_5000m
slug values and associated details can be retrieved through this API call.
Using getObjectStorageTier
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 getObjectStorageTier(args: GetObjectStorageTierArgs, opts?: InvokeOptions): Promise<GetObjectStorageTierResult>
function getObjectStorageTierOutput(args: GetObjectStorageTierOutputArgs, opts?: InvokeOptions): Output<GetObjectStorageTierResult>def get_object_storage_tier(filters: Optional[Sequence[GetObjectStorageTierFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetObjectStorageTierResult
def get_object_storage_tier_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetObjectStorageTierFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetObjectStorageTierResult]func GetObjectStorageTier(ctx *Context, args *GetObjectStorageTierArgs, opts ...InvokeOption) (*GetObjectStorageTierResult, error)
func GetObjectStorageTierOutput(ctx *Context, args *GetObjectStorageTierOutputArgs, opts ...InvokeOption) GetObjectStorageTierResultOutput> Note: This function is named GetObjectStorageTier in the Go SDK.
public static class GetObjectStorageTier
{
public static Task<GetObjectStorageTierResult> InvokeAsync(GetObjectStorageTierArgs args, InvokeOptions? opts = null)
public static Output<GetObjectStorageTierResult> Invoke(GetObjectStorageTierInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetObjectStorageTierResult> getObjectStorageTier(GetObjectStorageTierArgs args, InvokeOptions options)
public static Output<GetObjectStorageTierResult> getObjectStorageTier(GetObjectStorageTierArgs args, InvokeOptions options)
fn::invoke:
function: vultr:index/getObjectStorageTier:getObjectStorageTier
arguments:
# arguments dictionaryThe following arguments are supported:
- Filters
List<ediri.
Vultr. Inputs. Get Object Storage Tier Filter> - Query parameters for finding operating systems.
- Filters
[]Get
Object Storage Tier Filter - Query parameters for finding operating systems.
- filters
List<Get
Object Storage Tier Filter> - Query parameters for finding operating systems.
- filters
Get
Object Storage Tier Filter[] - Query parameters for finding operating systems.
- filters
Sequence[Get
Object Storage Tier Filter] - Query parameters for finding operating systems.
- filters List<Property Map>
- Query parameters for finding operating systems.
getObjectStorageTier Result
The following output properties are available:
- Id int
- The identifying tier ID.
- Locations
List<ediri.
Vultr. Outputs. Get Object Storage Tier Location> - A list of locations/clusters where the tier is available.
- Price int
- The monthly cost for the tier.
- Rate
Limit intBytes - The byte-per-second rate limit in the tier.
- Rate
Limit intOperations - The operations-per-second rate limit in the tier.
- Slug string
- The unique name for the tier.
- Filters
List<ediri.
Vultr. Outputs. Get Object Storage Tier Filter>
- Id int
- The identifying tier ID.
- Locations
[]Get
Object Storage Tier Location - A list of locations/clusters where the tier is available.
- Price int
- The monthly cost for the tier.
- Rate
Limit intBytes - The byte-per-second rate limit in the tier.
- Rate
Limit intOperations - The operations-per-second rate limit in the tier.
- Slug string
- The unique name for the tier.
- Filters
[]Get
Object Storage Tier Filter
- id Integer
- The identifying tier ID.
- locations
List<Get
Object Storage Tier Location> - A list of locations/clusters where the tier is available.
- price Integer
- The monthly cost for the tier.
- rate
Limit IntegerBytes - The byte-per-second rate limit in the tier.
- rate
Limit IntegerOperations - The operations-per-second rate limit in the tier.
- slug String
- The unique name for the tier.
- filters
List<Get
Object Storage Tier Filter>
- id number
- The identifying tier ID.
- locations
Get
Object Storage Tier Location[] - A list of locations/clusters where the tier is available.
- price number
- The monthly cost for the tier.
- rate
Limit numberBytes - The byte-per-second rate limit in the tier.
- rate
Limit numberOperations - The operations-per-second rate limit in the tier.
- slug string
- The unique name for the tier.
- filters
Get
Object Storage Tier Filter[]
- id int
- The identifying tier ID.
- locations
Sequence[Get
Object Storage Tier Location] - A list of locations/clusters where the tier is available.
- price int
- The monthly cost for the tier.
- rate_
limit_ intbytes - The byte-per-second rate limit in the tier.
- rate_
limit_ intoperations - The operations-per-second rate limit in the tier.
- slug str
- The unique name for the tier.
- filters
Sequence[Get
Object Storage Tier Filter]
- id Number
- The identifying tier ID.
- locations List<Property Map>
- A list of locations/clusters where the tier is available.
- price Number
- The monthly cost for the tier.
- rate
Limit NumberBytes - The byte-per-second rate limit in the tier.
- rate
Limit NumberOperations - The operations-per-second rate limit in the tier.
- slug String
- The unique name for the tier.
- filters List<Property Map>
Supporting Types
GetObjectStorageTierFilter
GetObjectStorageTierLocation
Package Details
- Repository
- vultr dirien/pulumi-vultr
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vultrTerraform Provider.
