ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud
ionoscloud.getObjectStorageAccesskey
Explore with Pulumi AI
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 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 "@pulumi/ionoscloud";
const example = ionoscloud.getObjectStorageAccesskey({
id: "accesskey_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_object_storage_accesskey(id="accesskey_id")
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.LookupObjectStorageAccesskey(ctx, &ionoscloud.LookupObjectStorageAccesskeyArgs{
Id: pulumi.StringRef("accesskey_id"),
}, nil)
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 = Ionoscloud.GetObjectStorageAccesskey.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.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetObjectStorageAccesskeyArgs;
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 = IonoscloudFunctions.getObjectStorageAccesskey(GetObjectStorageAccesskeyArgs.builder()
.id("accesskey_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getObjectStorageAccesskey
arguments:
id: accesskey_id
Using getObjectStorageAccesskey
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 getObjectStorageAccesskey(args: GetObjectStorageAccesskeyArgs, opts?: InvokeOptions): Promise<GetObjectStorageAccesskeyResult>
function getObjectStorageAccesskeyOutput(args: GetObjectStorageAccesskeyOutputArgs, opts?: InvokeOptions): Output<GetObjectStorageAccesskeyResult>
def get_object_storage_accesskey(accesskey: Optional[str] = None,
description: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetObjectStorageAccesskeyResult
def get_object_storage_accesskey_output(accesskey: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetObjectStorageAccesskeyResult]
func LookupObjectStorageAccesskey(ctx *Context, args *LookupObjectStorageAccesskeyArgs, opts ...InvokeOption) (*LookupObjectStorageAccesskeyResult, error)
func LookupObjectStorageAccesskeyOutput(ctx *Context, args *LookupObjectStorageAccesskeyOutputArgs, opts ...InvokeOption) LookupObjectStorageAccesskeyResultOutput
> Note: This function is named LookupObjectStorageAccesskey
in the Go SDK.
public static class GetObjectStorageAccesskey
{
public static Task<GetObjectStorageAccesskeyResult> InvokeAsync(GetObjectStorageAccesskeyArgs args, InvokeOptions? opts = null)
public static Output<GetObjectStorageAccesskeyResult> Invoke(GetObjectStorageAccesskeyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetObjectStorageAccesskeyResult> getObjectStorageAccesskey(GetObjectStorageAccesskeyArgs args, InvokeOptions options)
public static Output<GetObjectStorageAccesskeyResult> getObjectStorageAccesskey(GetObjectStorageAccesskeyArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:index/getObjectStorageAccesskey:getObjectStorageAccesskey
arguments:
# arguments dictionary
The 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.
getObjectStorageAccesskey 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/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud