Viewing docs for gcore 2.0.0-alpha.8
published on Wednesday, May 20, 2026 by g-core
published on Wednesday, May 20, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.8
published on Wednesday, May 20, 2026 by g-core
published on Wednesday, May 20, 2026 by g-core
Locations represent cloud regions where new storages can be created.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleStorageLocations = gcore.getStorageLocations({});
import pulumi
import pulumi_gcore as gcore
example_storage_locations = gcore.get_storage_locations()
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.GetStorageLocations(ctx, &gcore.GetStorageLocationsArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var exampleStorageLocations = Gcore.GetStorageLocations.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetStorageLocationsArgs;
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 exampleStorageLocations = GcoreFunctions.getStorageLocations(GetStorageLocationsArgs.builder()
.build());
}
}
variables:
exampleStorageLocations:
fn::invoke:
function: gcore:getStorageLocations
arguments: {}
Example coming soon!
Using getStorageLocations
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 getStorageLocations(args: GetStorageLocationsArgs, opts?: InvokeOptions): Promise<GetStorageLocationsResult>
function getStorageLocationsOutput(args: GetStorageLocationsOutputArgs, opts?: InvokeOptions): Output<GetStorageLocationsResult>def get_storage_locations(max_items: Optional[float] = None,
order_by: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageLocationsResult
def get_storage_locations_output(max_items: pulumi.Input[Optional[float]] = None,
order_by: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageLocationsResult]func GetStorageLocations(ctx *Context, args *GetStorageLocationsArgs, opts ...InvokeOption) (*GetStorageLocationsResult, error)
func GetStorageLocationsOutput(ctx *Context, args *GetStorageLocationsOutputArgs, opts ...InvokeOption) GetStorageLocationsResultOutput> Note: This function is named GetStorageLocations in the Go SDK.
public static class GetStorageLocations
{
public static Task<GetStorageLocationsResult> InvokeAsync(GetStorageLocationsArgs args, InvokeOptions? opts = null)
public static Output<GetStorageLocationsResult> Invoke(GetStorageLocationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStorageLocationsResult> getStorageLocations(GetStorageLocationsArgs args, InvokeOptions options)
public static Output<GetStorageLocationsResult> getStorageLocations(GetStorageLocationsArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getStorageLocations:getStorageLocations
arguments:
# arguments dictionarydata "gcore_getstoragelocations" "name" {
# arguments
}The following arguments are supported:
getStorageLocations Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Storage Locations Item> - The items returned by the data source
- Order
By string - Max
Items double - Max items to fetch, default: 1000
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Storage Locations Item - The items returned by the data source
- Order
By string - Max
Items float64 - Max items to fetch, default: 1000
- id string
- The provider-assigned unique ID for this managed resource.
- items list(object)
- The items returned by the data source
- order_
by string - max_
items number - Max items to fetch, default: 1000
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Storage Locations Item> - The items returned by the data source
- order
By String - max
Items Double - Max items to fetch, default: 1000
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Storage Locations Item[] - The items returned by the data source
- order
By string - max
Items number - Max items to fetch, default: 1000
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Storage Locations Item] - The items returned by the data source
- order_
by str - max_
items float - Max items to fetch, default: 1000
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- The items returned by the data source
- order
By String - max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetStorageLocationsItem
- Address string
- Full hostname/address for accessing the storage endpoint.
- Name string
- Human-readable display name for the location.
- Technical
Name string - Internal technical identifier for the location
- Title string
- Display title for the location (English). Null if no title is set.
- Type string
- Storage type supported by this location Available values: "s3_compatible", "sftp".
- Address string
- Full hostname/address for accessing the storage endpoint.
- Name string
- Human-readable display name for the location.
- Technical
Name string - Internal technical identifier for the location
- Title string
- Display title for the location (English). Null if no title is set.
- Type string
- Storage type supported by this location Available values: "s3_compatible", "sftp".
- address string
- Full hostname/address for accessing the storage endpoint.
- name string
- Human-readable display name for the location.
- technical_
name string - Internal technical identifier for the location
- title string
- Display title for the location (English). Null if no title is set.
- type string
- Storage type supported by this location Available values: "s3_compatible", "sftp".
- address String
- Full hostname/address for accessing the storage endpoint.
- name String
- Human-readable display name for the location.
- technical
Name String - Internal technical identifier for the location
- title String
- Display title for the location (English). Null if no title is set.
- type String
- Storage type supported by this location Available values: "s3_compatible", "sftp".
- address string
- Full hostname/address for accessing the storage endpoint.
- name string
- Human-readable display name for the location.
- technical
Name string - Internal technical identifier for the location
- title string
- Display title for the location (English). Null if no title is set.
- type string
- Storage type supported by this location Available values: "s3_compatible", "sftp".
- address str
- Full hostname/address for accessing the storage endpoint.
- name str
- Human-readable display name for the location.
- technical_
name str - Internal technical identifier for the location
- title str
- Display title for the location (English). Null if no title is set.
- type str
- Storage type supported by this location Available values: "s3_compatible", "sftp".
- address String
- Full hostname/address for accessing the storage endpoint.
- name String
- Human-readable display name for the location.
- technical
Name String - Internal technical identifier for the location
- title String
- Display title for the location (English). Null if no title is set.
- type String
- Storage type supported by this location Available values: "s3_compatible", "sftp".
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
Viewing docs for gcore 2.0.0-alpha.8
published on Wednesday, May 20, 2026 by g-core
published on Wednesday, May 20, 2026 by g-core
