Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
The Object Storage Accesskey data source can be used to search for and return an existing Object Storage Accesskeys.
Example Usage
By ID
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
const example = ionoscloud.objectstoragemanagement.getAccesskey({
id: "accesskey_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.objectstoragemanagement.get_accesskey(id="accesskey_id")
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/objectstoragemanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := objectstoragemanagement.LookupAccesskey(ctx, &objectstoragemanagement.LookupAccesskeyArgs{
Id: pulumi.StringRef("accesskey_id"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.Objectstoragemanagement.GetAccesskey.Invoke(new()
{
Id = "accesskey_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.objectstoragemanagement.ObjectstoragemanagementFunctions;
import com.pulumi.ionoscloud.objectstoragemanagement.inputs.GetAccesskeyArgs;
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 example = ObjectstoragemanagementFunctions.getAccesskey(GetAccesskeyArgs.builder()
.id("accesskey_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:objectstoragemanagement:getAccesskey
arguments:
id: accesskey_id
Using getAccesskey
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 getAccesskey(args: GetAccesskeyArgs, opts?: InvokeOptions): Promise<GetAccesskeyResult>
function getAccesskeyOutput(args: GetAccesskeyOutputArgs, opts?: InvokeOptions): Output<GetAccesskeyResult>def get_accesskey(accesskey: Optional[str] = None,
description: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAccesskeyResult
def get_accesskey_output(accesskey: pulumi.Input[Optional[str]] = None,
description: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccesskeyResult]func LookupAccesskey(ctx *Context, args *LookupAccesskeyArgs, opts ...InvokeOption) (*LookupAccesskeyResult, error)
func LookupAccesskeyOutput(ctx *Context, args *LookupAccesskeyOutputArgs, opts ...InvokeOption) LookupAccesskeyResultOutput> Note: This function is named LookupAccesskey in the Go SDK.
public static class GetAccesskey
{
public static Task<GetAccesskeyResult> InvokeAsync(GetAccesskeyArgs args, InvokeOptions? opts = null)
public static Output<GetAccesskeyResult> Invoke(GetAccesskeyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAccesskeyResult> getAccesskey(GetAccesskeyArgs args, InvokeOptions options)
public static Output<GetAccesskeyResult> getAccesskey(GetAccesskeyArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:objectstoragemanagement/getAccesskey:getAccesskey
arguments:
# arguments dictionaryThe following arguments are supported:
- Accesskey string
- Access key metadata is a string of 92 characters.
- Description string
- Description of the Access key.
- Id string
- Id of an existing object storage accesskey that you want to search for.
- Accesskey string
- Access key metadata is a string of 92 characters.
- Description string
- Description of the Access key.
- Id string
- Id of an existing object storage accesskey that you want to search for.
- accesskey String
- Access key metadata is a string of 92 characters.
- description String
- Description of the Access key.
- id String
- Id of an existing object storage accesskey that you want to search for.
- accesskey string
- Access key metadata is a string of 92 characters.
- description string
- Description of the Access key.
- id string
- Id of an existing object storage accesskey that you want to search for.
- accesskey str
- Access key metadata is a string of 92 characters.
- description str
- Description of the Access key.
- id str
- Id of an existing object storage accesskey that you want to search for.
- accesskey String
- Access key metadata is a string of 92 characters.
- description String
- Description of the Access key.
- id String
- Id of an existing object storage accesskey that you want to search for.
getAccesskey Result
The following output properties are available:
- 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
- Description of the Access key.
- Id string
- The ID (UUID) of the AccessKey.
- 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
- Description of the Access key.
- Id string
- The ID (UUID) of the AccessKey.
- 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
- Description of the Access key.
- id String
- The ID (UUID) of the AccessKey.
- 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
- Description of the Access key.
- id string
- The ID (UUID) of the AccessKey.
- 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
- Description of the Access key.
- id str
- The ID (UUID) of the AccessKey.
- 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
- Description of the Access key.
- id String
- The ID (UUID) of the AccessKey.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloudTerraform Provider.
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
