1. Packages
  2. Packages
  3. Gcore Provider
  4. API Docs
  5. StorageAccessKey
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

    Object storage access keys provide secure credentials for API access to object storage resources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const exampleStorageAccessKey = new gcore.StorageAccessKey("example_storage_access_key", {storageId: 0});
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_storage_access_key = gcore.StorageAccessKey("example_storage_access_key", storage_id=0)
    
    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.NewStorageAccessKey(ctx, "example_storage_access_key", &gcore.StorageAccessKeyArgs{
    			StorageId: pulumi.Float64(0),
    		})
    		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 exampleStorageAccessKey = new Gcore.StorageAccessKey("example_storage_access_key", new()
        {
            StorageId = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.StorageAccessKey;
    import com.pulumi.gcore.StorageAccessKeyArgs;
    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) {
            var exampleStorageAccessKey = new StorageAccessKey("exampleStorageAccessKey", StorageAccessKeyArgs.builder()
                .storageId(0.0)
                .build());
    
        }
    }
    
    resources:
      exampleStorageAccessKey:
        type: gcore:StorageAccessKey
        name: example_storage_access_key
        properties:
          storageId: 0
    
    Example coming soon!
    

    Create StorageAccessKey Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new StorageAccessKey(name: string, args: StorageAccessKeyArgs, opts?: CustomResourceOptions);
    @overload
    def StorageAccessKey(resource_name: str,
                         args: StorageAccessKeyArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def StorageAccessKey(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         storage_id: Optional[float] = None)
    func NewStorageAccessKey(ctx *Context, name string, args StorageAccessKeyArgs, opts ...ResourceOption) (*StorageAccessKey, error)
    public StorageAccessKey(string name, StorageAccessKeyArgs args, CustomResourceOptions? opts = null)
    public StorageAccessKey(String name, StorageAccessKeyArgs args)
    public StorageAccessKey(String name, StorageAccessKeyArgs args, CustomResourceOptions options)
    
    type: gcore:StorageAccessKey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcore_storageaccesskey" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args StorageAccessKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args StorageAccessKeyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args StorageAccessKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StorageAccessKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StorageAccessKeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var storageAccessKeyResource = new Gcore.StorageAccessKey("storageAccessKeyResource", new()
    {
        StorageId = 0,
    });
    
    example, err := gcore.NewStorageAccessKey(ctx, "storageAccessKeyResource", &gcore.StorageAccessKeyArgs{
    	StorageId: pulumi.Float64(0),
    })
    
    resource "gcore_storageaccesskey" "storageAccessKeyResource" {
      storage_id = 0
    }
    
    var storageAccessKeyResource = new StorageAccessKey("storageAccessKeyResource", StorageAccessKeyArgs.builder()
        .storageId(0.0)
        .build());
    
    storage_access_key_resource = gcore.StorageAccessKey("storageAccessKeyResource", storage_id=float(0))
    
    const storageAccessKeyResource = new gcore.StorageAccessKey("storageAccessKeyResource", {storageId: 0});
    
    type: gcore:StorageAccessKey
    properties:
        storageId: 0
    

    StorageAccessKey Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The StorageAccessKey resource accepts the following input properties:

    StorageId double
    StorageId float64
    storage_id number
    storageId Double
    storageId number
    storageId Number

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StorageAccessKey resource produces the following output properties:

    AccessKey string
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    CreatedAt string
    ISO 8601 timestamp when the access key was created
    Id string
    The provider-assigned unique ID for this managed resource.
    SecretKey string
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    AccessKey string
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    CreatedAt string
    ISO 8601 timestamp when the access key was created
    Id string
    The provider-assigned unique ID for this managed resource.
    SecretKey string
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    access_key string
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    created_at string
    ISO 8601 timestamp when the access key was created
    id string
    The provider-assigned unique ID for this managed resource.
    secret_key string
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    accessKey String
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    createdAt String
    ISO 8601 timestamp when the access key was created
    id String
    The provider-assigned unique ID for this managed resource.
    secretKey String
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    accessKey string
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    createdAt string
    ISO 8601 timestamp when the access key was created
    id string
    The provider-assigned unique ID for this managed resource.
    secretKey string
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    access_key str
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    created_at str
    ISO 8601 timestamp when the access key was created
    id str
    The provider-assigned unique ID for this managed resource.
    secret_key str
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    accessKey String
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    createdAt String
    ISO 8601 timestamp when the access key was created
    id String
    The provider-assigned unique ID for this managed resource.
    secretKey String
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.

    Look up Existing StorageAccessKey Resource

    Get an existing StorageAccessKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: StorageAccessKeyState, opts?: CustomResourceOptions): StorageAccessKey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_key: Optional[str] = None,
            created_at: Optional[str] = None,
            secret_key: Optional[str] = None,
            storage_id: Optional[float] = None) -> StorageAccessKey
    func GetStorageAccessKey(ctx *Context, name string, id IDInput, state *StorageAccessKeyState, opts ...ResourceOption) (*StorageAccessKey, error)
    public static StorageAccessKey Get(string name, Input<string> id, StorageAccessKeyState? state, CustomResourceOptions? opts = null)
    public static StorageAccessKey get(String name, Output<String> id, StorageAccessKeyState state, CustomResourceOptions options)
    resources:  _:    type: gcore:StorageAccessKey    get:      id: ${id}
    import {
      to = gcore_storageaccesskey.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccessKey string
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    CreatedAt string
    ISO 8601 timestamp when the access key was created
    SecretKey string
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    StorageId double
    AccessKey string
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    CreatedAt string
    ISO 8601 timestamp when the access key was created
    SecretKey string
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    StorageId float64
    access_key string
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    created_at string
    ISO 8601 timestamp when the access key was created
    secret_key string
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    storage_id number
    accessKey String
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    createdAt String
    ISO 8601 timestamp when the access key was created
    secretKey String
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    storageId Double
    accessKey string
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    createdAt string
    ISO 8601 timestamp when the access key was created
    secretKey string
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    storageId number
    access_key str
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    created_at str
    ISO 8601 timestamp when the access key was created
    secret_key str
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    storage_id float
    accessKey String
    Access key ID used as the username in S3 authentication. Pass this in the AWS_ACCESS_KEY_ID field of your S3 client.
    createdAt String
    ISO 8601 timestamp when the access key was created
    secretKey String
    Secret key used as the password in S3 authentication. Save this now — it cannot be retrieved again.
    storageId Number

    Import

    The pulumi import command can be used, for example:

    $ pulumi import gcore:index/storageAccessKey:StorageAccessKey example '<storage_id>/<access_key>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.

      Start free trial