SecretBackendConfigUrls

Allows setting the issuing certificate endpoints, CRL distribution points, and OCSP server endpoints that will be encoded into issued certificates.

Example Usage

using Pulumi;
using Vault = Pulumi.Vault;

class MyStack : Stack
{
    public MyStack()
    {
        var pki = new Vault.PkiSecret.SecretBackend("pki", new Vault.PkiSecret.SecretBackendArgs
        {
            Path = "pki",
            DefaultLeaseTtlSeconds = 3600,
            MaxLeaseTtlSeconds = 86400,
        });
        var configUrls = new Vault.PkiSecret.SecretBackendConfigUrls("configUrls", new Vault.PkiSecret.SecretBackendConfigUrlsArgs
        {
            Backend = pki.Path,
            IssuingCertificates = 
            {
                "http://127.0.0.1:8200/v1/pki/ca",
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-vault/sdk/v4/go/vault/pkiSecret"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		pki, err := pkiSecret.NewSecretBackend(ctx, "pki", &pkiSecret.SecretBackendArgs{
			Path:                   pulumi.String("pki"),
			DefaultLeaseTtlSeconds: pulumi.Int(3600),
			MaxLeaseTtlSeconds:     pulumi.Int(86400),
		})
		if err != nil {
			return err
		}
		_, err = pkiSecret.NewSecretBackendConfigUrls(ctx, "configUrls", &pkiSecret.SecretBackendConfigUrlsArgs{
			Backend: pki.Path,
			IssuingCertificates: pulumi.StringArray{
				pulumi.String("http://127.0.0.1:8200/v1/pki/ca"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_vault as vault

pki = vault.pki_secret.SecretBackend("pki",
    path="pki",
    default_lease_ttl_seconds=3600,
    max_lease_ttl_seconds=86400)
config_urls = vault.pki_secret.SecretBackendConfigUrls("configUrls",
    backend=pki.path,
    issuing_certificates=["http://127.0.0.1:8200/v1/pki/ca"])
import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";

const pki = new vault.pkiSecret.SecretBackend("pki", {
    path: "pki",
    defaultLeaseTtlSeconds: 3600,
    maxLeaseTtlSeconds: 86400,
});
const configUrls = new vault.pkiSecret.SecretBackendConfigUrls("configUrls", {
    backend: pki.path,
    issuingCertificates: ["http://127.0.0.1:8200/v1/pki/ca"],
});

Create a SecretBackendConfigUrls Resource

new SecretBackendConfigUrls(name: string, args: SecretBackendConfigUrlsArgs, opts?: CustomResourceOptions);
@overload
def SecretBackendConfigUrls(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            backend: Optional[str] = None,
                            crl_distribution_points: Optional[Sequence[str]] = None,
                            issuing_certificates: Optional[Sequence[str]] = None,
                            ocsp_servers: Optional[Sequence[str]] = None)
@overload
def SecretBackendConfigUrls(resource_name: str,
                            args: SecretBackendConfigUrlsArgs,
                            opts: Optional[ResourceOptions] = None)
func NewSecretBackendConfigUrls(ctx *Context, name string, args SecretBackendConfigUrlsArgs, opts ...ResourceOption) (*SecretBackendConfigUrls, error)
public SecretBackendConfigUrls(string name, SecretBackendConfigUrlsArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args SecretBackendConfigUrlsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args SecretBackendConfigUrlsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SecretBackendConfigUrlsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SecretBackendConfigUrlsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

SecretBackendConfigUrls Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The SecretBackendConfigUrls resource accepts the following input properties:

Backend string
The path the PKI secret backend is mounted at, with no leading or trailing /s.
CrlDistributionPoints List<string>
Specifies the URL values for the CRL Distribution Points field.
IssuingCertificates List<string>
Specifies the URL values for the Issuing Certificate field.
OcspServers List<string>
Specifies the URL values for the OCSP Servers field.
Backend string
The path the PKI secret backend is mounted at, with no leading or trailing /s.
CrlDistributionPoints []string
Specifies the URL values for the CRL Distribution Points field.
IssuingCertificates []string
Specifies the URL values for the Issuing Certificate field.
OcspServers []string
Specifies the URL values for the OCSP Servers field.
backend string
The path the PKI secret backend is mounted at, with no leading or trailing /s.
crlDistributionPoints string[]
Specifies the URL values for the CRL Distribution Points field.
issuingCertificates string[]
Specifies the URL values for the Issuing Certificate field.
ocspServers string[]
Specifies the URL values for the OCSP Servers field.
backend str
The path the PKI secret backend is mounted at, with no leading or trailing /s.
crl_distribution_points Sequence[str]
Specifies the URL values for the CRL Distribution Points field.
issuing_certificates Sequence[str]
Specifies the URL values for the Issuing Certificate field.
ocsp_servers Sequence[str]
Specifies the URL values for the OCSP Servers field.

Outputs

All input properties are implicitly available as output properties. Additionally, the SecretBackendConfigUrls resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing SecretBackendConfigUrls Resource

Get an existing SecretBackendConfigUrls resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SecretBackendConfigUrlsState, opts?: CustomResourceOptions): SecretBackendConfigUrls
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backend: Optional[str] = None,
        crl_distribution_points: Optional[Sequence[str]] = None,
        issuing_certificates: Optional[Sequence[str]] = None,
        ocsp_servers: Optional[Sequence[str]] = None) -> SecretBackendConfigUrls
func GetSecretBackendConfigUrls(ctx *Context, name string, id IDInput, state *SecretBackendConfigUrlsState, opts ...ResourceOption) (*SecretBackendConfigUrls, error)
public static SecretBackendConfigUrls Get(string name, Input<string> id, SecretBackendConfigUrlsState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Backend string
The path the PKI secret backend is mounted at, with no leading or trailing /s.
CrlDistributionPoints List<string>
Specifies the URL values for the CRL Distribution Points field.
IssuingCertificates List<string>
Specifies the URL values for the Issuing Certificate field.
OcspServers List<string>
Specifies the URL values for the OCSP Servers field.
Backend string
The path the PKI secret backend is mounted at, with no leading or trailing /s.
CrlDistributionPoints []string
Specifies the URL values for the CRL Distribution Points field.
IssuingCertificates []string
Specifies the URL values for the Issuing Certificate field.
OcspServers []string
Specifies the URL values for the OCSP Servers field.
backend string
The path the PKI secret backend is mounted at, with no leading or trailing /s.
crlDistributionPoints string[]
Specifies the URL values for the CRL Distribution Points field.
issuingCertificates string[]
Specifies the URL values for the Issuing Certificate field.
ocspServers string[]
Specifies the URL values for the OCSP Servers field.
backend str
The path the PKI secret backend is mounted at, with no leading or trailing /s.
crl_distribution_points Sequence[str]
Specifies the URL values for the CRL Distribution Points field.
issuing_certificates Sequence[str]
Specifies the URL values for the Issuing Certificate field.
ocsp_servers Sequence[str]
Specifies the URL values for the OCSP Servers field.

Package Details

Repository
https://github.com/pulumi/pulumi-vault
License
Apache-2.0
Notes
This Pulumi package is based on the vault Terraform Provider.