published on Wednesday, May 20, 2026 by g-core
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:
- Storage
Id double
- Storage
Id float64
- storage_
id number
- storage
Id Double
- storage
Id number
- storage_
id float
- storage
Id Number
Outputs
All input properties are implicitly available as output properties. Additionally, the StorageAccessKey resource produces the following output properties:
- Access
Key string - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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.
- Access
Key string - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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.
- access_
key string - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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.
- access
Key String - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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.
- access
Key string - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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.
- access_
key str - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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.
- access
Key String - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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.
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) -> StorageAccessKeyfunc 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.
- Access
Key string - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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 double
- Access
Key string - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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 float64
- access_
key string - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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
- access
Key String - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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 Double
- access
Key string - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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
- access_
key str - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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
- access
Key String - Access key ID used as the username in S3 authentication. Pass this in the
AWS_ACCESS_KEY_IDfield 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
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
gcoreTerraform Provider.
published on Wednesday, May 20, 2026 by g-core