ionoscloud.ObjectStorageAccesskey
Explore with Pulumi AI
Manages an Object Storage Accesskey on IonosCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = new ionoscloud.ObjectStorageAccesskey("example", {description: "my description"});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.ObjectStorageAccesskey("example", description="my description")
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.NewObjectStorageAccesskey(ctx, "example", &ionoscloud.ObjectStorageAccesskeyArgs{
Description: pulumi.String("my description"),
})
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 = new Ionoscloud.ObjectStorageAccesskey("example", new()
{
Description = "my description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.ObjectStorageAccesskey;
import com.pulumi.ionoscloud.ObjectStorageAccesskeyArgs;
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 example = new ObjectStorageAccesskey("example", ObjectStorageAccesskeyArgs.builder()
.description("my description")
.build());
}
}
resources:
example:
type: ionoscloud:ObjectStorageAccesskey
properties:
description: my description
Create ObjectStorageAccesskey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectStorageAccesskey(name: string, args?: ObjectStorageAccesskeyArgs, opts?: CustomResourceOptions);
@overload
def ObjectStorageAccesskey(resource_name: str,
args: Optional[ObjectStorageAccesskeyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectStorageAccesskey(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
timeouts: Optional[ObjectStorageAccesskeyTimeoutsArgs] = None)
func NewObjectStorageAccesskey(ctx *Context, name string, args *ObjectStorageAccesskeyArgs, opts ...ResourceOption) (*ObjectStorageAccesskey, error)
public ObjectStorageAccesskey(string name, ObjectStorageAccesskeyArgs? args = null, CustomResourceOptions? opts = null)
public ObjectStorageAccesskey(String name, ObjectStorageAccesskeyArgs args)
public ObjectStorageAccesskey(String name, ObjectStorageAccesskeyArgs args, CustomResourceOptions options)
type: ionoscloud:ObjectStorageAccesskey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ObjectStorageAccesskeyArgs
- 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 ObjectStorageAccesskeyArgs
- 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 ObjectStorageAccesskeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectStorageAccesskeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectStorageAccesskeyArgs
- 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 objectStorageAccesskeyResource = new Ionoscloud.ObjectStorageAccesskey("objectStorageAccesskeyResource", new()
{
Description = "string",
Timeouts = new Ionoscloud.Inputs.ObjectStorageAccesskeyTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
},
});
example, err := ionoscloud.NewObjectStorageAccesskey(ctx, "objectStorageAccesskeyResource", &ionoscloud.ObjectStorageAccesskeyArgs{
Description: pulumi.String("string"),
Timeouts: &ionoscloud.ObjectStorageAccesskeyTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
},
})
var objectStorageAccesskeyResource = new ObjectStorageAccesskey("objectStorageAccesskeyResource", ObjectStorageAccesskeyArgs.builder()
.description("string")
.timeouts(ObjectStorageAccesskeyTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.build())
.build());
object_storage_accesskey_resource = ionoscloud.ObjectStorageAccesskey("objectStorageAccesskeyResource",
description="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
})
const objectStorageAccesskeyResource = new ionoscloud.ObjectStorageAccesskey("objectStorageAccesskeyResource", {
description: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
},
});
type: ionoscloud:ObjectStorageAccesskey
properties:
description: string
timeouts:
create: string
delete: string
read: string
ObjectStorageAccesskey 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 ObjectStorageAccesskey resource accepts the following input properties:
- Description string
- [string] Description of the Access key.
- Timeouts
Object
Storage Accesskey Timeouts - Timeouts for this resource.
- Description string
- [string] Description of the Access key.
- Timeouts
Object
Storage Accesskey Timeouts Args - Timeouts for this resource.
- description String
- [string] Description of the Access key.
- timeouts
Object
Storage Accesskey Timeouts - Timeouts for this resource.
- description string
- [string] Description of the Access key.
- timeouts
Object
Storage Accesskey Timeouts - Timeouts for this resource.
- description str
- [string] Description of the Access key.
- timeouts
Object
Storage Accesskey Timeouts Args - Timeouts for this resource.
- description String
- [string] Description of the Access key.
- timeouts Property Map
- Timeouts for this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectStorageAccesskey resource produces the following output properties:
- Accesskey string
- Access key metadata is a string of 92 characters.
- Canonical
User stringId - The canonical user ID which is valid for user-owned buckets.
- Contract
User stringId - The contract user ID which is valid for contract-owned buckets
- Id string
- The provider-assigned unique ID for this managed resource.
- Secretkey string
- The secret key of the Access key.
- Accesskey string
- Access key metadata is a string of 92 characters.
- Canonical
User stringId - The canonical user ID which is valid for user-owned buckets.
- Contract
User stringId - The contract user ID which is valid for contract-owned buckets
- Id string
- The provider-assigned unique ID for this managed resource.
- Secretkey string
- The secret key of the Access key.
- accesskey String
- Access key metadata is a string of 92 characters.
- canonical
User StringId - The canonical user ID which is valid for user-owned buckets.
- contract
User StringId - The contract user ID which is valid for contract-owned buckets
- id String
- The provider-assigned unique ID for this managed resource.
- secretkey String
- The secret key of the Access key.
- accesskey string
- Access key metadata is a string of 92 characters.
- canonical
User stringId - The canonical user ID which is valid for user-owned buckets.
- contract
User stringId - The contract user ID which is valid for contract-owned buckets
- id string
- The provider-assigned unique ID for this managed resource.
- secretkey string
- The secret key of the Access key.
- accesskey str
- Access key metadata is a string of 92 characters.
- canonical_
user_ strid - The canonical user ID which is valid for user-owned buckets.
- contract_
user_ strid - The contract user ID which is valid for contract-owned buckets
- id str
- The provider-assigned unique ID for this managed resource.
- secretkey str
- The secret key of the Access key.
- accesskey String
- Access key metadata is a string of 92 characters.
- canonical
User StringId - The canonical user ID which is valid for user-owned buckets.
- contract
User StringId - The contract user ID which is valid for contract-owned buckets
- id String
- The provider-assigned unique ID for this managed resource.
- secretkey String
- The secret key of the Access key.
Look up Existing ObjectStorageAccesskey Resource
Get an existing ObjectStorageAccesskey 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?: ObjectStorageAccesskeyState, opts?: CustomResourceOptions): ObjectStorageAccesskey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accesskey: Optional[str] = None,
canonical_user_id: Optional[str] = None,
contract_user_id: Optional[str] = None,
description: Optional[str] = None,
secretkey: Optional[str] = None,
timeouts: Optional[ObjectStorageAccesskeyTimeoutsArgs] = None) -> ObjectStorageAccesskey
func GetObjectStorageAccesskey(ctx *Context, name string, id IDInput, state *ObjectStorageAccesskeyState, opts ...ResourceOption) (*ObjectStorageAccesskey, error)
public static ObjectStorageAccesskey Get(string name, Input<string> id, ObjectStorageAccesskeyState? state, CustomResourceOptions? opts = null)
public static ObjectStorageAccesskey get(String name, Output<String> id, ObjectStorageAccesskeyState state, CustomResourceOptions options)
resources: _: type: ionoscloud:ObjectStorageAccesskey get: 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.
- Accesskey string
- Access key metadata is a string of 92 characters.
- Canonical
User stringId - The canonical user ID which is valid for user-owned buckets.
- Contract
User stringId - The contract user ID which is valid for contract-owned buckets
- Description string
- [string] Description of the Access key.
- Secretkey string
- The secret key of the Access key.
- Timeouts
Object
Storage Accesskey Timeouts - Timeouts for this resource.
- Accesskey string
- Access key metadata is a string of 92 characters.
- Canonical
User stringId - The canonical user ID which is valid for user-owned buckets.
- Contract
User stringId - The contract user ID which is valid for contract-owned buckets
- Description string
- [string] Description of the Access key.
- Secretkey string
- The secret key of the Access key.
- Timeouts
Object
Storage Accesskey Timeouts Args - Timeouts for this resource.
- accesskey String
- Access key metadata is a string of 92 characters.
- canonical
User StringId - The canonical user ID which is valid for user-owned buckets.
- contract
User StringId - The contract user ID which is valid for contract-owned buckets
- description String
- [string] Description of the Access key.
- secretkey String
- The secret key of the Access key.
- timeouts
Object
Storage Accesskey Timeouts - Timeouts for this resource.
- accesskey string
- Access key metadata is a string of 92 characters.
- canonical
User stringId - The canonical user ID which is valid for user-owned buckets.
- contract
User stringId - The contract user ID which is valid for contract-owned buckets
- description string
- [string] Description of the Access key.
- secretkey string
- The secret key of the Access key.
- timeouts
Object
Storage Accesskey Timeouts - Timeouts for this resource.
- accesskey str
- Access key metadata is a string of 92 characters.
- canonical_
user_ strid - The canonical user ID which is valid for user-owned buckets.
- contract_
user_ strid - The contract user ID which is valid for contract-owned buckets
- description str
- [string] Description of the Access key.
- secretkey str
- The secret key of the Access key.
- timeouts
Object
Storage Accesskey Timeouts Args - Timeouts for this resource.
- accesskey String
- Access key metadata is a string of 92 characters.
- canonical
User StringId - The canonical user ID which is valid for user-owned buckets.
- contract
User StringId - The contract user ID which is valid for contract-owned buckets
- description String
- [string] Description of the Access key.
- secretkey String
- The secret key of the Access key.
- timeouts Property Map
- Timeouts for this resource.
Supporting Types
ObjectStorageAccesskeyTimeouts, ObjectStorageAccesskeyTimeoutsArgs
- Create string
- [string] Time to wait for the bucket to be created. Default is
10m
. - Delete string
[string] Time to wait for the bucket to be deleted. Default is
10m
.⚠ WARNING:
IONOS_API_URL_OBJECT_STORAGE_MANAGEMENT
can be used to set a custom API URL for the Object Storage Management SDK. Settingendpoint
orIONOS_API_URL
does not have any effect.- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Create string
- [string] Time to wait for the bucket to be created. Default is
10m
. - Delete string
[string] Time to wait for the bucket to be deleted. Default is
10m
.⚠ WARNING:
IONOS_API_URL_OBJECT_STORAGE_MANAGEMENT
can be used to set a custom API URL for the Object Storage Management SDK. Settingendpoint
orIONOS_API_URL
does not have any effect.- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- create String
- [string] Time to wait for the bucket to be created. Default is
10m
. - delete String
[string] Time to wait for the bucket to be deleted. Default is
10m
.⚠ WARNING:
IONOS_API_URL_OBJECT_STORAGE_MANAGEMENT
can be used to set a custom API URL for the Object Storage Management SDK. Settingendpoint
orIONOS_API_URL
does not have any effect.- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- create string
- [string] Time to wait for the bucket to be created. Default is
10m
. - delete string
[string] Time to wait for the bucket to be deleted. Default is
10m
.⚠ WARNING:
IONOS_API_URL_OBJECT_STORAGE_MANAGEMENT
can be used to set a custom API URL for the Object Storage Management SDK. Settingendpoint
orIONOS_API_URL
does not have any effect.- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- create str
- [string] Time to wait for the bucket to be created. Default is
10m
. - delete str
[string] Time to wait for the bucket to be deleted. Default is
10m
.⚠ WARNING:
IONOS_API_URL_OBJECT_STORAGE_MANAGEMENT
can be used to set a custom API URL for the Object Storage Management SDK. Settingendpoint
orIONOS_API_URL
does not have any effect.- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- create String
- [string] Time to wait for the bucket to be created. Default is
10m
. - delete String
[string] Time to wait for the bucket to be deleted. Default is
10m
.⚠ WARNING:
IONOS_API_URL_OBJECT_STORAGE_MANAGEMENT
can be used to set a custom API URL for the Object Storage Management SDK. Settingendpoint
orIONOS_API_URL
does not have any effect.- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
Import
An object storage accesskey resource can be imported using its resource id
, e.g.
$ pulumi import ionoscloud:index/objectStorageAccesskey:ObjectStorageAccesskey demo objectStorageAccesskeyid
This can be helpful when you want to import Object Storage Accesskeys which you have already created manually or using other means, outside of terraform.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.