1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudKeyManagerSecretPayload
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const payload = ovh.getCloudKeyManagerSecretPayload({
        serviceName: "Public cloud project ID",
        secretId: "00000000-0000-0000-0000-000000000000",
    });
    export const secretPayload = payload.then(payload => payload.payload);
    
    import pulumi
    import pulumi_ovh as ovh
    
    payload = ovh.get_cloud_key_manager_secret_payload(service_name="Public cloud project ID",
        secret_id="00000000-0000-0000-0000-000000000000")
    pulumi.export("secretPayload", payload.payload)
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		payload, err := ovh.GetCloudKeyManagerSecretPayload(ctx, &ovh.GetCloudKeyManagerSecretPayloadArgs{
    			ServiceName: "Public cloud project ID",
    			SecretId:    "00000000-0000-0000-0000-000000000000",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("secretPayload", payload.Payload)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var payload = Ovh.GetCloudKeyManagerSecretPayload.Invoke(new()
        {
            ServiceName = "Public cloud project ID",
            SecretId = "00000000-0000-0000-0000-000000000000",
        });
    
        return new Dictionary<string, object?>
        {
            ["secretPayload"] = payload.Apply(getCloudKeyManagerSecretPayloadResult => getCloudKeyManagerSecretPayloadResult.Payload),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.OvhFunctions;
    import com.pulumi.ovh.inputs.GetCloudKeyManagerSecretPayloadArgs;
    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 payload = OvhFunctions.getCloudKeyManagerSecretPayload(GetCloudKeyManagerSecretPayloadArgs.builder()
                .serviceName("Public cloud project ID")
                .secretId("00000000-0000-0000-0000-000000000000")
                .build());
    
            ctx.export("secretPayload", payload.payload());
        }
    }
    
    variables:
      payload:
        fn::invoke:
          function: ovh:getCloudKeyManagerSecretPayload
          arguments:
            serviceName: Public cloud project ID
            secretId: 00000000-0000-0000-0000-000000000000
    outputs:
      secretPayload: ${payload.payload}
    
    Example coming soon!
    

    Using getCloudKeyManagerSecretPayload

    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 getCloudKeyManagerSecretPayload(args: GetCloudKeyManagerSecretPayloadArgs, opts?: InvokeOptions): Promise<GetCloudKeyManagerSecretPayloadResult>
    function getCloudKeyManagerSecretPayloadOutput(args: GetCloudKeyManagerSecretPayloadOutputArgs, opts?: InvokeOptions): Output<GetCloudKeyManagerSecretPayloadResult>
    def get_cloud_key_manager_secret_payload(secret_id: Optional[str] = None,
                                             service_name: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetCloudKeyManagerSecretPayloadResult
    def get_cloud_key_manager_secret_payload_output(secret_id: pulumi.Input[Optional[str]] = None,
                                             service_name: pulumi.Input[Optional[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetCloudKeyManagerSecretPayloadResult]
    func GetCloudKeyManagerSecretPayload(ctx *Context, args *GetCloudKeyManagerSecretPayloadArgs, opts ...InvokeOption) (*GetCloudKeyManagerSecretPayloadResult, error)
    func GetCloudKeyManagerSecretPayloadOutput(ctx *Context, args *GetCloudKeyManagerSecretPayloadOutputArgs, opts ...InvokeOption) GetCloudKeyManagerSecretPayloadResultOutput

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

    public static class GetCloudKeyManagerSecretPayload 
    {
        public static Task<GetCloudKeyManagerSecretPayloadResult> InvokeAsync(GetCloudKeyManagerSecretPayloadArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudKeyManagerSecretPayloadResult> Invoke(GetCloudKeyManagerSecretPayloadInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudKeyManagerSecretPayloadResult> getCloudKeyManagerSecretPayload(GetCloudKeyManagerSecretPayloadArgs args, InvokeOptions options)
    public static Output<GetCloudKeyManagerSecretPayloadResult> getCloudKeyManagerSecretPayload(GetCloudKeyManagerSecretPayloadArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudKeyManagerSecretPayload:getCloudKeyManagerSecretPayload
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_key_manager_secret_payload" "name" {
        # arguments
    }

    The following arguments are supported:

    SecretId string
    UUID of the secret.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    SecretId string
    UUID of the secret.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    secret_id string
    UUID of the secret.
    service_name string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    secretId String
    UUID of the secret.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    secretId string
    UUID of the secret.
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    secret_id str
    UUID of the secret.
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    secretId String
    UUID of the secret.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    getCloudKeyManagerSecretPayload Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Payload string
    The payload (secret material) of the secret. This value is sensitive.
    SecretId string
    ServiceName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Payload string
    The payload (secret material) of the secret. This value is sensitive.
    SecretId string
    ServiceName string
    id string
    The provider-assigned unique ID for this managed resource.
    payload string
    The payload (secret material) of the secret. This value is sensitive.
    secret_id string
    service_name string
    id String
    The provider-assigned unique ID for this managed resource.
    payload String
    The payload (secret material) of the secret. This value is sensitive.
    secretId String
    serviceName String
    id string
    The provider-assigned unique ID for this managed resource.
    payload string
    The payload (secret material) of the secret. This value is sensitive.
    secretId string
    serviceName string
    id str
    The provider-assigned unique ID for this managed resource.
    payload str
    The payload (secret material) of the secret. This value is sensitive.
    secret_id str
    service_name str
    id String
    The provider-assigned unique ID for this managed resource.
    payload String
    The payload (secret material) of the secret. This value is sensitive.
    secretId String
    serviceName String

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.17.0
    published on Friday, Jul 17, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial