1. Packages
  2. Packages
  3. Gcore Provider
  4. API Docs
  5. getStorageLocations
Viewing docs for gcore 2.0.0-alpha.8
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

    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 dictionary
    data "gcore_getstoragelocations" "name" {
        # arguments
    }

    The following arguments are supported:

    MaxItems double
    Max items to fetch, default: 1000
    OrderBy string
    MaxItems float64
    Max items to fetch, default: 1000
    OrderBy string
    max_items number
    Max items to fetch, default: 1000
    order_by string
    maxItems Double
    Max items to fetch, default: 1000
    orderBy String
    maxItems number
    Max items to fetch, default: 1000
    orderBy string
    max_items float
    Max items to fetch, default: 1000
    order_by str
    maxItems Number
    Max items to fetch, default: 1000
    orderBy String

    getStorageLocations Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetStorageLocationsItem>
    The items returned by the data source
    OrderBy string
    MaxItems double
    Max items to fetch, default: 1000
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetStorageLocationsItem
    The items returned by the data source
    OrderBy string
    MaxItems 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<GetStorageLocationsItem>
    The items returned by the data source
    orderBy String
    maxItems Double
    Max items to fetch, default: 1000
    id string
    The provider-assigned unique ID for this managed resource.
    items GetStorageLocationsItem[]
    The items returned by the data source
    orderBy string
    maxItems number
    Max items to fetch, default: 1000
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetStorageLocationsItem]
    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
    orderBy String
    maxItems 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.
    TechnicalName 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.
    TechnicalName 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.
    technicalName 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.
    technicalName 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.
    technicalName 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 gcore Terraform Provider.
    Viewing docs for gcore 2.0.0-alpha.8
    published on Wednesday, May 20, 2026 by g-core
      Try Pulumi Cloud free. Your team will thank you.