1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. BigDataService
  5. getBdsInstanceApiKeys
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.BigDataService.getBdsInstanceApiKeys

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

This data source provides details about a specific Bds Instance Api Key resource in Oracle Cloud Infrastructure Big Data Service service.

Returns the user’s API key information for the given ID.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testBdsInstanceApiKey = oci.BigDataService.getBdsInstanceApiKey({
    apiKeyId: testApiKey.id,
    bdsInstanceId: testBdsInstance.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_bds_instance_api_key = oci.BigDataService.get_bds_instance_api_key(api_key_id=test_api_key["id"],
    bds_instance_id=test_bds_instance["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/bigdataservice"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bigdataservice.GetBdsInstanceApiKey(ctx, &bigdataservice.GetBdsInstanceApiKeyArgs{
			ApiKeyId:      testApiKey.Id,
			BdsInstanceId: testBdsInstance.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testBdsInstanceApiKey = Oci.BigDataService.GetBdsInstanceApiKey.Invoke(new()
    {
        ApiKeyId = testApiKey.Id,
        BdsInstanceId = testBdsInstance.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.BigDataService.BigDataServiceFunctions;
import com.pulumi.oci.BigDataService.inputs.GetBdsInstanceApiKeyArgs;
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 testBdsInstanceApiKey = BigDataServiceFunctions.getBdsInstanceApiKey(GetBdsInstanceApiKeyArgs.builder()
            .apiKeyId(testApiKey.id())
            .bdsInstanceId(testBdsInstance.id())
            .build());

    }
}
Copy
variables:
  testBdsInstanceApiKey:
    fn::invoke:
      function: oci:BigDataService:getBdsInstanceApiKey
      arguments:
        apiKeyId: ${testApiKey.id}
        bdsInstanceId: ${testBdsInstance.id}
Copy

Using getBdsInstanceApiKeys

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 getBdsInstanceApiKeys(args: GetBdsInstanceApiKeysArgs, opts?: InvokeOptions): Promise<GetBdsInstanceApiKeysResult>
function getBdsInstanceApiKeysOutput(args: GetBdsInstanceApiKeysOutputArgs, opts?: InvokeOptions): Output<GetBdsInstanceApiKeysResult>
Copy
def get_bds_instance_api_keys(bds_instance_id: Optional[str] = None,
                              display_name: Optional[str] = None,
                              filters: Optional[Sequence[_bigdataservice.GetBdsInstanceApiKeysFilter]] = None,
                              state: Optional[str] = None,
                              user_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetBdsInstanceApiKeysResult
def get_bds_instance_api_keys_output(bds_instance_id: Optional[pulumi.Input[str]] = None,
                              display_name: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_bigdataservice.GetBdsInstanceApiKeysFilterArgs]]]] = None,
                              state: Optional[pulumi.Input[str]] = None,
                              user_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetBdsInstanceApiKeysResult]
Copy
func GetBdsInstanceApiKeys(ctx *Context, args *GetBdsInstanceApiKeysArgs, opts ...InvokeOption) (*GetBdsInstanceApiKeysResult, error)
func GetBdsInstanceApiKeysOutput(ctx *Context, args *GetBdsInstanceApiKeysOutputArgs, opts ...InvokeOption) GetBdsInstanceApiKeysResultOutput
Copy

> Note: This function is named GetBdsInstanceApiKeys in the Go SDK.

public static class GetBdsInstanceApiKeys 
{
    public static Task<GetBdsInstanceApiKeysResult> InvokeAsync(GetBdsInstanceApiKeysArgs args, InvokeOptions? opts = null)
    public static Output<GetBdsInstanceApiKeysResult> Invoke(GetBdsInstanceApiKeysInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetBdsInstanceApiKeysResult> getBdsInstanceApiKeys(GetBdsInstanceApiKeysArgs args, InvokeOptions options)
public static Output<GetBdsInstanceApiKeysResult> getBdsInstanceApiKeys(GetBdsInstanceApiKeysArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:BigDataService/getBdsInstanceApiKeys:getBdsInstanceApiKeys
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

BdsInstanceId This property is required. string
The OCID of the cluster.
DisplayName string
Filters Changes to this property will trigger replacement. List<GetBdsInstanceApiKeysFilter>
State string
The current status of the API key.
UserId string
The user OCID for which this API key was created.
BdsInstanceId This property is required. string
The OCID of the cluster.
DisplayName string
Filters Changes to this property will trigger replacement. []GetBdsInstanceApiKeysFilter
State string
The current status of the API key.
UserId string
The user OCID for which this API key was created.
bdsInstanceId This property is required. String
The OCID of the cluster.
displayName String
filters Changes to this property will trigger replacement. List<GetBdsInstanceApiKeysFilter>
state String
The current status of the API key.
userId String
The user OCID for which this API key was created.
bdsInstanceId This property is required. string
The OCID of the cluster.
displayName string
filters Changes to this property will trigger replacement. GetBdsInstanceApiKeysFilter[]
state string
The current status of the API key.
userId string
The user OCID for which this API key was created.
bds_instance_id This property is required. str
The OCID of the cluster.
display_name str
filters Changes to this property will trigger replacement. Sequence[bigdataservice.GetBdsInstanceApiKeysFilter]
state str
The current status of the API key.
user_id str
The user OCID for which this API key was created.
bdsInstanceId This property is required. String
The OCID of the cluster.
displayName String
filters Changes to this property will trigger replacement. List<Property Map>
state String
The current status of the API key.
userId String
The user OCID for which this API key was created.

getBdsInstanceApiKeys Result

The following output properties are available:

BdsApiKeys List<GetBdsInstanceApiKeysBdsApiKey>
The list of bds_api_keys.
BdsInstanceId string
Id string
The provider-assigned unique ID for this managed resource.
DisplayName string
Filters List<GetBdsInstanceApiKeysFilter>
State string
The current status of the API key.
UserId string
The user OCID for which this API key was created.
BdsApiKeys []GetBdsInstanceApiKeysBdsApiKey
The list of bds_api_keys.
BdsInstanceId string
Id string
The provider-assigned unique ID for this managed resource.
DisplayName string
Filters []GetBdsInstanceApiKeysFilter
State string
The current status of the API key.
UserId string
The user OCID for which this API key was created.
bdsApiKeys List<GetBdsInstanceApiKeysBdsApiKey>
The list of bds_api_keys.
bdsInstanceId String
id String
The provider-assigned unique ID for this managed resource.
displayName String
filters List<GetBdsInstanceApiKeysFilter>
state String
The current status of the API key.
userId String
The user OCID for which this API key was created.
bdsApiKeys GetBdsInstanceApiKeysBdsApiKey[]
The list of bds_api_keys.
bdsInstanceId string
id string
The provider-assigned unique ID for this managed resource.
displayName string
filters GetBdsInstanceApiKeysFilter[]
state string
The current status of the API key.
userId string
The user OCID for which this API key was created.
bds_api_keys Sequence[bigdataservice.GetBdsInstanceApiKeysBdsApiKey]
The list of bds_api_keys.
bds_instance_id str
id str
The provider-assigned unique ID for this managed resource.
display_name str
filters Sequence[bigdataservice.GetBdsInstanceApiKeysFilter]
state str
The current status of the API key.
user_id str
The user OCID for which this API key was created.
bdsApiKeys List<Property Map>
The list of bds_api_keys.
bdsInstanceId String
id String
The provider-assigned unique ID for this managed resource.
displayName String
filters List<Property Map>
state String
The current status of the API key.
userId String
The user OCID for which this API key was created.

Supporting Types

GetBdsInstanceApiKeysBdsApiKey

BdsInstanceId This property is required. string
The OCID of the cluster.
DefaultRegion This property is required. string
The name of the region to establish the Object Storage endpoint which was set as part of key creation operation. If no region was provided this will be set to be the same region where the cluster lives. Example us-phoenix-1 .
DomainOcid This property is required. string
Identity domain OCID ,where user is present. For default domain ,this field will be optional.
Fingerprint This property is required. string
The fingerprint that corresponds to the public API key requested.
Id This property is required. string
Identifier of the user's API key.
KeyAlias This property is required. string
User friendly identifier used to uniquely differentiate between different API keys. Only ASCII alphanumeric characters with no spaces allowed.
Passphrase This property is required. string
Pemfilepath This property is required. string
The full path and file name of the private key used for authentication. This location will be automatically selected on the BDS local file system.
State This property is required. string
The current status of the API key.
TenantId This property is required. string
The OCID of your tenancy.
TimeCreated This property is required. string
The time the API key was created, shown as an RFC 3339 formatted datetime string.
UserId This property is required. string
The user OCID for which this API key was created.
BdsInstanceId This property is required. string
The OCID of the cluster.
DefaultRegion This property is required. string
The name of the region to establish the Object Storage endpoint which was set as part of key creation operation. If no region was provided this will be set to be the same region where the cluster lives. Example us-phoenix-1 .
DomainOcid This property is required. string
Identity domain OCID ,where user is present. For default domain ,this field will be optional.
Fingerprint This property is required. string
The fingerprint that corresponds to the public API key requested.
Id This property is required. string
Identifier of the user's API key.
KeyAlias This property is required. string
User friendly identifier used to uniquely differentiate between different API keys. Only ASCII alphanumeric characters with no spaces allowed.
Passphrase This property is required. string
Pemfilepath This property is required. string
The full path and file name of the private key used for authentication. This location will be automatically selected on the BDS local file system.
State This property is required. string
The current status of the API key.
TenantId This property is required. string
The OCID of your tenancy.
TimeCreated This property is required. string
The time the API key was created, shown as an RFC 3339 formatted datetime string.
UserId This property is required. string
The user OCID for which this API key was created.
bdsInstanceId This property is required. String
The OCID of the cluster.
defaultRegion This property is required. String
The name of the region to establish the Object Storage endpoint which was set as part of key creation operation. If no region was provided this will be set to be the same region where the cluster lives. Example us-phoenix-1 .
domainOcid This property is required. String
Identity domain OCID ,where user is present. For default domain ,this field will be optional.
fingerprint This property is required. String
The fingerprint that corresponds to the public API key requested.
id This property is required. String
Identifier of the user's API key.
keyAlias This property is required. String
User friendly identifier used to uniquely differentiate between different API keys. Only ASCII alphanumeric characters with no spaces allowed.
passphrase This property is required. String
pemfilepath This property is required. String
The full path and file name of the private key used for authentication. This location will be automatically selected on the BDS local file system.
state This property is required. String
The current status of the API key.
tenantId This property is required. String
The OCID of your tenancy.
timeCreated This property is required. String
The time the API key was created, shown as an RFC 3339 formatted datetime string.
userId This property is required. String
The user OCID for which this API key was created.
bdsInstanceId This property is required. string
The OCID of the cluster.
defaultRegion This property is required. string
The name of the region to establish the Object Storage endpoint which was set as part of key creation operation. If no region was provided this will be set to be the same region where the cluster lives. Example us-phoenix-1 .
domainOcid This property is required. string
Identity domain OCID ,where user is present. For default domain ,this field will be optional.
fingerprint This property is required. string
The fingerprint that corresponds to the public API key requested.
id This property is required. string
Identifier of the user's API key.
keyAlias This property is required. string
User friendly identifier used to uniquely differentiate between different API keys. Only ASCII alphanumeric characters with no spaces allowed.
passphrase This property is required. string
pemfilepath This property is required. string
The full path and file name of the private key used for authentication. This location will be automatically selected on the BDS local file system.
state This property is required. string
The current status of the API key.
tenantId This property is required. string
The OCID of your tenancy.
timeCreated This property is required. string
The time the API key was created, shown as an RFC 3339 formatted datetime string.
userId This property is required. string
The user OCID for which this API key was created.
bds_instance_id This property is required. str
The OCID of the cluster.
default_region This property is required. str
The name of the region to establish the Object Storage endpoint which was set as part of key creation operation. If no region was provided this will be set to be the same region where the cluster lives. Example us-phoenix-1 .
domain_ocid This property is required. str
Identity domain OCID ,where user is present. For default domain ,this field will be optional.
fingerprint This property is required. str
The fingerprint that corresponds to the public API key requested.
id This property is required. str
Identifier of the user's API key.
key_alias This property is required. str
User friendly identifier used to uniquely differentiate between different API keys. Only ASCII alphanumeric characters with no spaces allowed.
passphrase This property is required. str
pemfilepath This property is required. str
The full path and file name of the private key used for authentication. This location will be automatically selected on the BDS local file system.
state This property is required. str
The current status of the API key.
tenant_id This property is required. str
The OCID of your tenancy.
time_created This property is required. str
The time the API key was created, shown as an RFC 3339 formatted datetime string.
user_id This property is required. str
The user OCID for which this API key was created.
bdsInstanceId This property is required. String
The OCID of the cluster.
defaultRegion This property is required. String
The name of the region to establish the Object Storage endpoint which was set as part of key creation operation. If no region was provided this will be set to be the same region where the cluster lives. Example us-phoenix-1 .
domainOcid This property is required. String
Identity domain OCID ,where user is present. For default domain ,this field will be optional.
fingerprint This property is required. String
The fingerprint that corresponds to the public API key requested.
id This property is required. String
Identifier of the user's API key.
keyAlias This property is required. String
User friendly identifier used to uniquely differentiate between different API keys. Only ASCII alphanumeric characters with no spaces allowed.
passphrase This property is required. String
pemfilepath This property is required. String
The full path and file name of the private key used for authentication. This location will be automatically selected on the BDS local file system.
state This property is required. String
The current status of the API key.
tenantId This property is required. String
The OCID of your tenancy.
timeCreated This property is required. String
The time the API key was created, shown as an RFC 3339 formatted datetime string.
userId This property is required. String
The user OCID for which this API key was created.

GetBdsInstanceApiKeysFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi