1. Packages
  2. OVH
  3. API Docs
  4. Okms
  5. getOkmsServiceKeyJwk
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud

ovh.Okms.getOkmsServiceKeyJwk

Explore with Pulumi AI

ovh logo
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 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",
    });
    
    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")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      keyInfo:
        fn::invoke:
          Function: ovh:Okms:getOkmsServiceKey
          Arguments:
            id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
            okmsId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    

    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>
    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]
    func GetOkmsServiceKeyJwk(ctx *Context, args *GetOkmsServiceKeyJwkArgs, opts ...InvokeOption) (*GetOkmsServiceKeyJwkResult, error)
    func GetOkmsServiceKeyJwkOutput(ctx *Context, args *GetOkmsServiceKeyJwkOutputArgs, opts ...InvokeOption) GetOkmsServiceKeyJwkResultOutput

    > 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)
    }
    public static CompletableFuture<GetOkmsServiceKeyJwkResult> getOkmsServiceKeyJwk(GetOkmsServiceKeyJwkArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:Okms/getOkmsServiceKeyJwk:getOkmsServiceKeyJwk
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ID of the service key
    OkmsId string
    ID of the KMS
    Id string
    ID of the service key
    OkmsId string
    ID of the KMS
    id String
    ID of the service key
    okmsId String
    ID of the KMS
    id string
    ID of the service key
    okmsId string
    ID of the KMS
    id str
    ID of the service key
    okms_id str
    ID of the KMS
    id String
    ID of the service key
    okmsId String
    ID of the KMS

    getOkmsServiceKeyJwk Result

    The following output properties are available:

    CreatedAt string
    Id string
    Keys List<GetOkmsServiceKeyJwkKey>
    Name string
    OkmsId string
    Size double
    State string
    Type string
    CreatedAt string
    Id string
    Keys []GetOkmsServiceKeyJwkKey
    Name string
    OkmsId string
    Size float64
    State string
    Type string
    createdAt String
    id String
    keys List<GetServiceKeyJwkKey>
    name String
    okmsId String
    size Double
    state String
    type String
    createdAt string
    id string
    keys GetOkmsServiceKeyJwkKey[]
    name string
    okmsId string
    size number
    state string
    type string
    createdAt String
    id String
    keys List<Property Map>
    name String
    okmsId String
    size Number
    state String
    type String

    Supporting Types

    GetOkmsServiceKeyJwkKey

    Alg string
    The algorithm intended to be used with the key
    Crv string
    The cryptographic curve used with the key
    E string
    The exponent value for the RSA public key
    KeyOps List<string>
    The operation for which the key is intended to be used
    Kid string
    key ID parameter used to match a specific key
    Kty string
    Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
    N string
    The modulus value for the RSA public key
    Use string
    The intended use of the public key
    X string
    The x coordinate for the Elliptic Curve point
    Y string
    The y coordinate for the Elliptic Curve point
    Alg string
    The algorithm intended to be used with the key
    Crv string
    The cryptographic curve used with the key
    E string
    The exponent value for the RSA public key
    KeyOps []string
    The operation for which the key is intended to be used
    Kid string
    key ID parameter used to match a specific key
    Kty string
    Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
    N string
    The modulus value for the RSA public key
    Use string
    The intended use of the public key
    X string
    The x coordinate for the Elliptic Curve point
    Y string
    The y coordinate for the Elliptic Curve point
    alg String
    The algorithm intended to be used with the key
    crv String
    The cryptographic curve used with the key
    e String
    The exponent value for the RSA public key
    keyOps List<String>
    The operation for which the key is intended to be used
    kid String
    key ID parameter used to match a specific key
    kty String
    Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
    n String
    The modulus value for the RSA public key
    use String
    The intended use of the public key
    x String
    The x coordinate for the Elliptic Curve point
    y String
    The y coordinate for the Elliptic Curve point
    alg string
    The algorithm intended to be used with the key
    crv string
    The cryptographic curve used with the key
    e string
    The exponent value for the RSA public key
    keyOps string[]
    The operation for which the key is intended to be used
    kid string
    key ID parameter used to match a specific key
    kty string
    Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
    n string
    The modulus value for the RSA public key
    use string
    The intended use of the public key
    x string
    The x coordinate for the Elliptic Curve point
    y string
    The y coordinate for the Elliptic Curve point
    alg str
    The algorithm intended to be used with the key
    crv str
    The cryptographic curve used with the key
    e str
    The exponent value for the RSA public key
    key_ops Sequence[str]
    The operation for which the key is intended to be used
    kid str
    key ID parameter used to match a specific key
    kty str
    Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
    n str
    The modulus value for the RSA public key
    use str
    The intended use of the public key
    x str
    The x coordinate for the Elliptic Curve point
    y str
    The y coordinate for the Elliptic Curve point
    alg String
    The algorithm intended to be used with the key
    crv String
    The cryptographic curve used with the key
    e String
    The exponent value for the RSA public key
    keyOps List<String>
    The operation for which the key is intended to be used
    kid String
    key ID parameter used to match a specific key
    kty String
    Key type parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC
    n String
    The modulus value for the RSA public key
    use String
    The intended use of the public key
    x String
    The x coordinate for the Elliptic Curve point
    y 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.
    ovh logo
    OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud