ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud
ionoscloud.getObjectStorageRegion
Explore with Pulumi AI
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud
The Object storage region data source can be used to search for and return an existing S3 Regions.
Example Usage
By ID
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.getObjectStorageRegion({
id: "region_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_object_storage_region(id="region_id")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ionoscloud.GetObjectStorageRegion(ctx, &ionoscloud.GetObjectStorageRegionArgs{
Id: "region_id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.GetObjectStorageRegion.Invoke(new()
{
Id = "region_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetObjectStorageRegionArgs;
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 example = IonoscloudFunctions.getObjectStorageRegion(GetObjectStorageRegionArgs.builder()
.id("region_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getObjectStorageRegion
arguments:
id: region_id
Using getObjectStorageRegion
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 getObjectStorageRegion(args: GetObjectStorageRegionArgs, opts?: InvokeOptions): Promise<GetObjectStorageRegionResult>
function getObjectStorageRegionOutput(args: GetObjectStorageRegionOutputArgs, opts?: InvokeOptions): Output<GetObjectStorageRegionResult>
def get_object_storage_region(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetObjectStorageRegionResult
def get_object_storage_region_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetObjectStorageRegionResult]
func GetObjectStorageRegion(ctx *Context, args *GetObjectStorageRegionArgs, opts ...InvokeOption) (*GetObjectStorageRegionResult, error)
func GetObjectStorageRegionOutput(ctx *Context, args *GetObjectStorageRegionOutputArgs, opts ...InvokeOption) GetObjectStorageRegionResultOutput
> Note: This function is named GetObjectStorageRegion
in the Go SDK.
public static class GetObjectStorageRegion
{
public static Task<GetObjectStorageRegionResult> InvokeAsync(GetObjectStorageRegionArgs args, InvokeOptions? opts = null)
public static Output<GetObjectStorageRegionResult> Invoke(GetObjectStorageRegionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetObjectStorageRegionResult> getObjectStorageRegion(GetObjectStorageRegionArgs args, InvokeOptions options)
public static Output<GetObjectStorageRegionResult> getObjectStorageRegion(GetObjectStorageRegionArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:index/getObjectStorageRegion:getObjectStorageRegion
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Id of an existing object storage Region that you want to search for.
- Id string
- Id of an existing object storage Region that you want to search for.
- id String
- Id of an existing object storage Region that you want to search for.
- id string
- Id of an existing object storage Region that you want to search for.
- id str
- Id of an existing object storage Region that you want to search for.
- id String
- Id of an existing object storage Region that you want to search for.
getObjectStorageRegion Result
The following output properties are available:
- Capability
Get
Object Storage Region Capability - The capabilities of the region
- Endpoint string
- The endpoint URL for the region
- Id string
- The id of the region
- Location string
- The data center location of the region as per Get Location. Can't be used as
LocationConstraint
on bucket creation. - Storage
Classes List<string> - The available classes in the region
- Version double
- The version of the region properties
- Website string
- The website URL for the region
- Capability
Get
Object Storage Region Capability - The capabilities of the region
- Endpoint string
- The endpoint URL for the region
- Id string
- The id of the region
- Location string
- The data center location of the region as per Get Location. Can't be used as
LocationConstraint
on bucket creation. - Storage
Classes []string - The available classes in the region
- Version float64
- The version of the region properties
- Website string
- The website URL for the region
- capability
Get
Object Storage Region Capability - The capabilities of the region
- endpoint String
- The endpoint URL for the region
- id String
- The id of the region
- location String
- The data center location of the region as per Get Location. Can't be used as
LocationConstraint
on bucket creation. - storage
Classes List<String> - The available classes in the region
- version Double
- The version of the region properties
- website String
- The website URL for the region
- capability
Get
Object Storage Region Capability - The capabilities of the region
- endpoint string
- The endpoint URL for the region
- id string
- The id of the region
- location string
- The data center location of the region as per Get Location. Can't be used as
LocationConstraint
on bucket creation. - storage
Classes string[] - The available classes in the region
- version number
- The version of the region properties
- website string
- The website URL for the region
- capability
Get
Object Storage Region Capability - The capabilities of the region
- endpoint str
- The endpoint URL for the region
- id str
- The id of the region
- location str
- The data center location of the region as per Get Location. Can't be used as
LocationConstraint
on bucket creation. - storage_
classes Sequence[str] - The available classes in the region
- version float
- The version of the region properties
- website str
- The website URL for the region
- capability Property Map
- The capabilities of the region
- endpoint String
- The endpoint URL for the region
- id String
- The id of the region
- location String
- The data center location of the region as per Get Location. Can't be used as
LocationConstraint
on bucket creation. - storage
Classes List<String> - The available classes in the region
- version Number
- The version of the region properties
- website String
- The website URL for the region
Supporting Types
GetObjectStorageRegionCapability
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud