Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
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 dictionarydata "ovh_get_cloud_key_manager_secret_payload" "name" {
# arguments
}The following arguments are supported:
- Secret
Id string - UUID of the secret.
- Service
Name string - The id of the public cloud project. If omitted, the
OVH_CLOUD_PROJECT_SERVICEenvironment 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_SERVICEenvironment 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_SERVICEenvironment 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_SERVICEenvironment 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_SERVICEenvironment 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_SERVICEenvironment 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_SERVICEenvironment 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.
- 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.
- 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.
- 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.
- 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.
- secret
Id string - service
Name 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.
- secret
Id String - service
Name String
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud