1. Packages
  2. OVH
  3. API Docs
  4. Okms
  5. getOkmsServiceKeyJwk
OVHCloud v2.1.0 published on Friday, Mar 28, 2025 by OVHcloud

ovh.Okms.getOkmsServiceKeyJwk

Explore with Pulumi AI

OVHCloud v2.1.0 published on Friday, Mar 28, 2025 by OVHcloud

Use this data source to retrieve information about a KMS service key, in the JWK format.

Example Usage

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

const keyInfo = ovh.Okms.getOkmsServiceKey({
    id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    okmsId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
});
Copy
import pulumi
import pulumi_ovh as ovh

key_info = ovh.Okms.get_okms_service_key(id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    okms_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
Copy
package main

import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/okms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := okms.GetOkmsServiceKey(ctx, &okms.GetOkmsServiceKeyArgs{
			Id:     "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
			OkmsId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var keyInfo = Ovh.Okms.GetOkmsServiceKey.Invoke(new()
    {
        Id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        OkmsId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Okms.OkmsFunctions;
import com.pulumi.ovh.Okms.inputs.GetOkmsServiceKeyArgs;
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 keyInfo = OkmsFunctions.getOkmsServiceKey(GetOkmsServiceKeyArgs.builder()
            .id("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
            .okmsId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
            .build());

    }
}
Copy
variables:
  keyInfo:
    fn::invoke:
      function: ovh:Okms:getOkmsServiceKey
      arguments:
        id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
        okmsId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Copy

Using getOkmsServiceKeyJwk

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 getOkmsServiceKeyJwk(args: GetOkmsServiceKeyJwkArgs, opts?: InvokeOptions): Promise<GetOkmsServiceKeyJwkResult>
function getOkmsServiceKeyJwkOutput(args: GetOkmsServiceKeyJwkOutputArgs, opts?: InvokeOptions): Output<GetOkmsServiceKeyJwkResult>
Copy
def get_okms_service_key_jwk(id: Optional[str] = None,
                             okms_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetOkmsServiceKeyJwkResult
def get_okms_service_key_jwk_output(id: Optional[pulumi.Input[str]] = None,
                             okms_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetOkmsServiceKeyJwkResult]
Copy
func GetOkmsServiceKeyJwk(ctx *Context, args *GetOkmsServiceKeyJwkArgs, opts ...InvokeOption) (*GetOkmsServiceKeyJwkResult, error)
func GetOkmsServiceKeyJwkOutput(ctx *Context, args *GetOkmsServiceKeyJwkOutputArgs, opts ...InvokeOption) GetOkmsServiceKeyJwkResultOutput
Copy

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

public static class GetOkmsServiceKeyJwk 
{
    public static Task<GetOkmsServiceKeyJwkResult> InvokeAsync(GetOkmsServiceKeyJwkArgs args, InvokeOptions? opts = null)
    public static Output<GetOkmsServiceKeyJwkResult> Invoke(GetOkmsServiceKeyJwkInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOkmsServiceKeyJwkResult> getOkmsServiceKeyJwk(GetOkmsServiceKeyJwkArgs args, InvokeOptions options)
public static Output<GetOkmsServiceKeyJwkResult> getOkmsServiceKeyJwk(GetOkmsServiceKeyJwkArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ovh:Okms/getOkmsServiceKeyJwk:getOkmsServiceKeyJwk
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
ID of the service key
OkmsId This property is required. string
ID of the KMS
Id This property is required. string
ID of the service key
OkmsId This property is required. string
ID of the KMS
id This property is required. String
ID of the service key
okmsId This property is required. String
ID of the KMS
id This property is required. string
ID of the service key
okmsId This property is required. string
ID of the KMS
id This property is required. str
ID of the service key
okms_id This property is required. str
ID of the KMS
id This property is required. String
ID of the service key
okmsId This property is required. String
ID of the KMS

getOkmsServiceKeyJwk Result

The following output properties are available:

createdAt String
iam Property Map
id String
keys List<Property Map>
name String
okmsId String
size Number
state String
type String

Supporting Types

GetOkmsServiceKeyJwkIam

DisplayName This property is required. string
Resource display name
Id This property is required. string
ID of the service key
Tags This property is required. Dictionary<string, string>
Resource tags. Tags that were internally computed are prefixed with ovh:
Urn This property is required. string
Unique resource name used in policies
DisplayName This property is required. string
Resource display name
Id This property is required. string
ID of the service key
Tags This property is required. map[string]string
Resource tags. Tags that were internally computed are prefixed with ovh:
Urn This property is required. string
Unique resource name used in policies
displayName This property is required. String
Resource display name
id This property is required. String
ID of the service key
tags This property is required. Map<String,String>
Resource tags. Tags that were internally computed are prefixed with ovh:
urn This property is required. String
Unique resource name used in policies
displayName This property is required. string
Resource display name
id This property is required. string
ID of the service key
tags This property is required. {[key: string]: string}
Resource tags. Tags that were internally computed are prefixed with ovh:
urn This property is required. string
Unique resource name used in policies
display_name This property is required. str
Resource display name
id This property is required. str
ID of the service key
tags This property is required. Mapping[str, str]
Resource tags. Tags that were internally computed are prefixed with ovh:
urn This property is required. str
Unique resource name used in policies
displayName This property is required. String
Resource display name
id This property is required. String
ID of the service key
tags This property is required. Map<String>
Resource tags. Tags that were internally computed are prefixed with ovh:
urn This property is required. String
Unique resource name used in policies

GetOkmsServiceKeyJwkKey

Alg This property is required. string
The algorithm intended to be used with the key
Crv This property is required. string
The cryptographic curve used with the key
E This property is required. string
The exponent value for the RSA public key
KeyOps This property is required. List<string>
The operation for which the key is intended to be used
Kid This property is required. string
key ID parameter used to match a specific key
Kty This property is required. string
Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
N This property is required. string
The modulus value for the RSA public key
Use This property is required. string
The intended use of the public key
X This property is required. string
The x coordinate for the Elliptic Curve point
Y This property is required. string
The y coordinate for the Elliptic Curve point
Alg This property is required. string
The algorithm intended to be used with the key
Crv This property is required. string
The cryptographic curve used with the key
E This property is required. string
The exponent value for the RSA public key
KeyOps This property is required. []string
The operation for which the key is intended to be used
Kid This property is required. string
key ID parameter used to match a specific key
Kty This property is required. string
Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
N This property is required. string
The modulus value for the RSA public key
Use This property is required. string
The intended use of the public key
X This property is required. string
The x coordinate for the Elliptic Curve point
Y This property is required. string
The y coordinate for the Elliptic Curve point
alg This property is required. String
The algorithm intended to be used with the key
crv This property is required. String
The cryptographic curve used with the key
e This property is required. String
The exponent value for the RSA public key
keyOps This property is required. List<String>
The operation for which the key is intended to be used
kid This property is required. String
key ID parameter used to match a specific key
kty This property is required. String
Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
n This property is required. String
The modulus value for the RSA public key
use This property is required. String
The intended use of the public key
x This property is required. String
The x coordinate for the Elliptic Curve point
y This property is required. String
The y coordinate for the Elliptic Curve point
alg This property is required. string
The algorithm intended to be used with the key
crv This property is required. string
The cryptographic curve used with the key
e This property is required. string
The exponent value for the RSA public key
keyOps This property is required. string[]
The operation for which the key is intended to be used
kid This property is required. string
key ID parameter used to match a specific key
kty This property is required. string
Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
n This property is required. string
The modulus value for the RSA public key
use This property is required. string
The intended use of the public key
x This property is required. string
The x coordinate for the Elliptic Curve point
y This property is required. string
The y coordinate for the Elliptic Curve point
alg This property is required. str
The algorithm intended to be used with the key
crv This property is required. str
The cryptographic curve used with the key
e This property is required. str
The exponent value for the RSA public key
key_ops This property is required. Sequence[str]
The operation for which the key is intended to be used
kid This property is required. str
key ID parameter used to match a specific key
kty This property is required. str
Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
n This property is required. str
The modulus value for the RSA public key
use This property is required. str
The intended use of the public key
x This property is required. str
The x coordinate for the Elliptic Curve point
y This property is required. str
The y coordinate for the Elliptic Curve point
alg This property is required. String
The algorithm intended to be used with the key
crv This property is required. String
The cryptographic curve used with the key
e This property is required. String
The exponent value for the RSA public key
keyOps This property is required. List<String>
The operation for which the key is intended to be used
kid This property is required. String
key ID parameter used to match a specific key
kty This property is required. String
Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
n This property is required. String
The modulus value for the RSA public key
use This property is required. String
The intended use of the public key
x This property is required. String
The x coordinate for the Elliptic Curve point
y This property is required. String
The y coordinate for the Elliptic Curve point

Package Details

Repository
ovh ovh/pulumi-ovh
License
Apache-2.0
Notes
This Pulumi package is based on the ovh Terraform Provider.
OVHCloud v2.1.0 published on Friday, Mar 28, 2025 by OVHcloud