1. Packages
  2. Bigip Provider
  3. API Docs
  4. SslKeyCert
f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi

f5bigip.SslKeyCert

Explore with Pulumi AI

f5bigip logo
f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi

    f5bigip.SslKeyCert This resource will import SSL certificate and key on BIG-IP LTM. The certificate and the key can be imported from files on the local disk, in PEM format

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as f5bigip from "@pulumi/f5bigip";
    import * as std from "@pulumi/std";
    
    const testkeycert = new f5bigip.SslKeyCert("testkeycert", {
        partition: "Common",
        keyName: "ssl-test-key",
        keyContent: std.file({
            input: "key.pem",
        }).then(invoke => invoke.result),
        certName: "ssl-test-cert",
        certContent: std.file({
            input: "certificate.pem",
        }).then(invoke => invoke.result),
    });
    
    import pulumi
    import pulumi_f5bigip as f5bigip
    import pulumi_std as std
    
    testkeycert = f5bigip.SslKeyCert("testkeycert",
        partition="Common",
        key_name="ssl-test-key",
        key_content=std.file(input="key.pem").result,
        cert_name="ssl-test-cert",
        cert_content=std.file(input="certificate.pem").result)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip"
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		invokeFile, err := std.File(ctx, &std.FileArgs{
    			Input: "key.pem",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		invokeFile1, err := std.File(ctx, &std.FileArgs{
    			Input: "certificate.pem",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = f5bigip.NewSslKeyCert(ctx, "testkeycert", &f5bigip.SslKeyCertArgs{
    			Partition:   pulumi.String("Common"),
    			KeyName:     pulumi.String("ssl-test-key"),
    			KeyContent:  pulumi.String(invokeFile.Result),
    			CertName:    pulumi.String("ssl-test-cert"),
    			CertContent: pulumi.String(invokeFile1.Result),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using F5BigIP = Pulumi.F5BigIP;
    using Std = Pulumi.Std;
    
    return await Deployment.RunAsync(() => 
    {
        var testkeycert = new F5BigIP.SslKeyCert("testkeycert", new()
        {
            Partition = "Common",
            KeyName = "ssl-test-key",
            KeyContent = Std.File.Invoke(new()
            {
                Input = "key.pem",
            }).Apply(invoke => invoke.Result),
            CertName = "ssl-test-cert",
            CertContent = Std.File.Invoke(new()
            {
                Input = "certificate.pem",
            }).Apply(invoke => invoke.Result),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.f5bigip.SslKeyCert;
    import com.pulumi.f5bigip.SslKeyCertArgs;
    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) {
            var testkeycert = new SslKeyCert("testkeycert", SslKeyCertArgs.builder()
                .partition("Common")
                .keyName("ssl-test-key")
                .keyContent(StdFunctions.file(FileArgs.builder()
                    .input("key.pem")
                    .build()).result())
                .certName("ssl-test-cert")
                .certContent(StdFunctions.file(FileArgs.builder()
                    .input("certificate.pem")
                    .build()).result())
                .build());
    
        }
    }
    
    resources:
      testkeycert:
        type: f5bigip:SslKeyCert
        properties:
          partition: Common
          keyName: ssl-test-key
          keyContent:
            fn::invoke:
              Function: std:file
              Arguments:
                input: key.pem
              Return: result
          certName: ssl-test-cert
          certContent:
            fn::invoke:
              Function: std:file
              Arguments:
                input: certificate.pem
              Return: result
    

    Create SslKeyCert Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SslKeyCert(name: string, args: SslKeyCertArgs, opts?: CustomResourceOptions);
    @overload
    def SslKeyCert(resource_name: str,
                   args: SslKeyCertArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def SslKeyCert(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   cert_content: Optional[str] = None,
                   cert_name: Optional[str] = None,
                   key_content: Optional[str] = None,
                   key_name: Optional[str] = None,
                   cert_full_path: Optional[str] = None,
                   cert_monitoring_type: Optional[str] = None,
                   cert_ocsp: Optional[str] = None,
                   issuer_cert: Optional[str] = None,
                   key_full_path: Optional[str] = None,
                   partition: Optional[str] = None,
                   passphrase: Optional[str] = None)
    func NewSslKeyCert(ctx *Context, name string, args SslKeyCertArgs, opts ...ResourceOption) (*SslKeyCert, error)
    public SslKeyCert(string name, SslKeyCertArgs args, CustomResourceOptions? opts = null)
    public SslKeyCert(String name, SslKeyCertArgs args)
    public SslKeyCert(String name, SslKeyCertArgs args, CustomResourceOptions options)
    
    type: f5bigip:SslKeyCert
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SslKeyCertArgs
    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 SslKeyCertArgs
    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 SslKeyCertArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SslKeyCertArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SslKeyCertArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var sslKeyCertResource = new F5BigIP.SslKeyCert("sslKeyCertResource", new()
    {
        CertContent = "string",
        CertName = "string",
        KeyContent = "string",
        KeyName = "string",
        CertFullPath = "string",
        CertMonitoringType = "string",
        CertOcsp = "string",
        IssuerCert = "string",
        KeyFullPath = "string",
        Partition = "string",
        Passphrase = "string",
    });
    
    example, err := f5bigip.NewSslKeyCert(ctx, "sslKeyCertResource", &f5bigip.SslKeyCertArgs{
    	CertContent:        pulumi.String("string"),
    	CertName:           pulumi.String("string"),
    	KeyContent:         pulumi.String("string"),
    	KeyName:            pulumi.String("string"),
    	CertFullPath:       pulumi.String("string"),
    	CertMonitoringType: pulumi.String("string"),
    	CertOcsp:           pulumi.String("string"),
    	IssuerCert:         pulumi.String("string"),
    	KeyFullPath:        pulumi.String("string"),
    	Partition:          pulumi.String("string"),
    	Passphrase:         pulumi.String("string"),
    })
    
    var sslKeyCertResource = new SslKeyCert("sslKeyCertResource", SslKeyCertArgs.builder()
        .certContent("string")
        .certName("string")
        .keyContent("string")
        .keyName("string")
        .certFullPath("string")
        .certMonitoringType("string")
        .certOcsp("string")
        .issuerCert("string")
        .keyFullPath("string")
        .partition("string")
        .passphrase("string")
        .build());
    
    ssl_key_cert_resource = f5bigip.SslKeyCert("sslKeyCertResource",
        cert_content="string",
        cert_name="string",
        key_content="string",
        key_name="string",
        cert_full_path="string",
        cert_monitoring_type="string",
        cert_ocsp="string",
        issuer_cert="string",
        key_full_path="string",
        partition="string",
        passphrase="string")
    
    const sslKeyCertResource = new f5bigip.SslKeyCert("sslKeyCertResource", {
        certContent: "string",
        certName: "string",
        keyContent: "string",
        keyName: "string",
        certFullPath: "string",
        certMonitoringType: "string",
        certOcsp: "string",
        issuerCert: "string",
        keyFullPath: "string",
        partition: "string",
        passphrase: "string",
    });
    
    type: f5bigip:SslKeyCert
    properties:
        certContent: string
        certFullPath: string
        certMonitoringType: string
        certName: string
        certOcsp: string
        issuerCert: string
        keyContent: string
        keyFullPath: string
        keyName: string
        partition: string
        passphrase: string
    

    SslKeyCert Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SslKeyCert resource accepts the following input properties:

    CertContent string
    The content of the cert.
    CertName string
    Name of the SSL certificate to be Imported on to BIGIP.
    KeyContent string
    The content of the key.
    KeyName string
    Name of the SSL key to be Imported on to BIGIP.
    CertFullPath string
    full path of the SSL certificate on the BIGIP.
    CertMonitoringType string
    Specifies the type of monitoring used.
    CertOcsp string
    Specifies the OCSP responder.
    IssuerCert string
    Specifies the issuer certificate.
    KeyFullPath string
    full path of the SSL key on the BIGIP.
    Partition string
    Partition on to SSL certificate and key to be imported.
    Passphrase string
    Passphrase on the SSL key.
    CertContent string
    The content of the cert.
    CertName string
    Name of the SSL certificate to be Imported on to BIGIP.
    KeyContent string
    The content of the key.
    KeyName string
    Name of the SSL key to be Imported on to BIGIP.
    CertFullPath string
    full path of the SSL certificate on the BIGIP.
    CertMonitoringType string
    Specifies the type of monitoring used.
    CertOcsp string
    Specifies the OCSP responder.
    IssuerCert string
    Specifies the issuer certificate.
    KeyFullPath string
    full path of the SSL key on the BIGIP.
    Partition string
    Partition on to SSL certificate and key to be imported.
    Passphrase string
    Passphrase on the SSL key.
    certContent String
    The content of the cert.
    certName String
    Name of the SSL certificate to be Imported on to BIGIP.
    keyContent String
    The content of the key.
    keyName String
    Name of the SSL key to be Imported on to BIGIP.
    certFullPath String
    full path of the SSL certificate on the BIGIP.
    certMonitoringType String
    Specifies the type of monitoring used.
    certOcsp String
    Specifies the OCSP responder.
    issuerCert String
    Specifies the issuer certificate.
    keyFullPath String
    full path of the SSL key on the BIGIP.
    partition String
    Partition on to SSL certificate and key to be imported.
    passphrase String
    Passphrase on the SSL key.
    certContent string
    The content of the cert.
    certName string
    Name of the SSL certificate to be Imported on to BIGIP.
    keyContent string
    The content of the key.
    keyName string
    Name of the SSL key to be Imported on to BIGIP.
    certFullPath string
    full path of the SSL certificate on the BIGIP.
    certMonitoringType string
    Specifies the type of monitoring used.
    certOcsp string
    Specifies the OCSP responder.
    issuerCert string
    Specifies the issuer certificate.
    keyFullPath string
    full path of the SSL key on the BIGIP.
    partition string
    Partition on to SSL certificate and key to be imported.
    passphrase string
    Passphrase on the SSL key.
    cert_content str
    The content of the cert.
    cert_name str
    Name of the SSL certificate to be Imported on to BIGIP.
    key_content str
    The content of the key.
    key_name str
    Name of the SSL key to be Imported on to BIGIP.
    cert_full_path str
    full path of the SSL certificate on the BIGIP.
    cert_monitoring_type str
    Specifies the type of monitoring used.
    cert_ocsp str
    Specifies the OCSP responder.
    issuer_cert str
    Specifies the issuer certificate.
    key_full_path str
    full path of the SSL key on the BIGIP.
    partition str
    Partition on to SSL certificate and key to be imported.
    passphrase str
    Passphrase on the SSL key.
    certContent String
    The content of the cert.
    certName String
    Name of the SSL certificate to be Imported on to BIGIP.
    keyContent String
    The content of the key.
    keyName String
    Name of the SSL key to be Imported on to BIGIP.
    certFullPath String
    full path of the SSL certificate on the BIGIP.
    certMonitoringType String
    Specifies the type of monitoring used.
    certOcsp String
    Specifies the OCSP responder.
    issuerCert String
    Specifies the issuer certificate.
    keyFullPath String
    full path of the SSL key on the BIGIP.
    partition String
    Partition on to SSL certificate and key to be imported.
    passphrase String
    Passphrase on the SSL key.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SslKeyCert 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 string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SslKeyCert Resource

    Get an existing SslKeyCert 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?: SslKeyCertState, opts?: CustomResourceOptions): SslKeyCert
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cert_content: Optional[str] = None,
            cert_full_path: Optional[str] = None,
            cert_monitoring_type: Optional[str] = None,
            cert_name: Optional[str] = None,
            cert_ocsp: Optional[str] = None,
            issuer_cert: Optional[str] = None,
            key_content: Optional[str] = None,
            key_full_path: Optional[str] = None,
            key_name: Optional[str] = None,
            partition: Optional[str] = None,
            passphrase: Optional[str] = None) -> SslKeyCert
    func GetSslKeyCert(ctx *Context, name string, id IDInput, state *SslKeyCertState, opts ...ResourceOption) (*SslKeyCert, error)
    public static SslKeyCert Get(string name, Input<string> id, SslKeyCertState? state, CustomResourceOptions? opts = null)
    public static SslKeyCert get(String name, Output<String> id, SslKeyCertState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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:
    CertContent string
    The content of the cert.
    CertFullPath string
    full path of the SSL certificate on the BIGIP.
    CertMonitoringType string
    Specifies the type of monitoring used.
    CertName string
    Name of the SSL certificate to be Imported on to BIGIP.
    CertOcsp string
    Specifies the OCSP responder.
    IssuerCert string
    Specifies the issuer certificate.
    KeyContent string
    The content of the key.
    KeyFullPath string
    full path of the SSL key on the BIGIP.
    KeyName string
    Name of the SSL key to be Imported on to BIGIP.
    Partition string
    Partition on to SSL certificate and key to be imported.
    Passphrase string
    Passphrase on the SSL key.
    CertContent string
    The content of the cert.
    CertFullPath string
    full path of the SSL certificate on the BIGIP.
    CertMonitoringType string
    Specifies the type of monitoring used.
    CertName string
    Name of the SSL certificate to be Imported on to BIGIP.
    CertOcsp string
    Specifies the OCSP responder.
    IssuerCert string
    Specifies the issuer certificate.
    KeyContent string
    The content of the key.
    KeyFullPath string
    full path of the SSL key on the BIGIP.
    KeyName string
    Name of the SSL key to be Imported on to BIGIP.
    Partition string
    Partition on to SSL certificate and key to be imported.
    Passphrase string
    Passphrase on the SSL key.
    certContent String
    The content of the cert.
    certFullPath String
    full path of the SSL certificate on the BIGIP.
    certMonitoringType String
    Specifies the type of monitoring used.
    certName String
    Name of the SSL certificate to be Imported on to BIGIP.
    certOcsp String
    Specifies the OCSP responder.
    issuerCert String
    Specifies the issuer certificate.
    keyContent String
    The content of the key.
    keyFullPath String
    full path of the SSL key on the BIGIP.
    keyName String
    Name of the SSL key to be Imported on to BIGIP.
    partition String
    Partition on to SSL certificate and key to be imported.
    passphrase String
    Passphrase on the SSL key.
    certContent string
    The content of the cert.
    certFullPath string
    full path of the SSL certificate on the BIGIP.
    certMonitoringType string
    Specifies the type of monitoring used.
    certName string
    Name of the SSL certificate to be Imported on to BIGIP.
    certOcsp string
    Specifies the OCSP responder.
    issuerCert string
    Specifies the issuer certificate.
    keyContent string
    The content of the key.
    keyFullPath string
    full path of the SSL key on the BIGIP.
    keyName string
    Name of the SSL key to be Imported on to BIGIP.
    partition string
    Partition on to SSL certificate and key to be imported.
    passphrase string
    Passphrase on the SSL key.
    cert_content str
    The content of the cert.
    cert_full_path str
    full path of the SSL certificate on the BIGIP.
    cert_monitoring_type str
    Specifies the type of monitoring used.
    cert_name str
    Name of the SSL certificate to be Imported on to BIGIP.
    cert_ocsp str
    Specifies the OCSP responder.
    issuer_cert str
    Specifies the issuer certificate.
    key_content str
    The content of the key.
    key_full_path str
    full path of the SSL key on the BIGIP.
    key_name str
    Name of the SSL key to be Imported on to BIGIP.
    partition str
    Partition on to SSL certificate and key to be imported.
    passphrase str
    Passphrase on the SSL key.
    certContent String
    The content of the cert.
    certFullPath String
    full path of the SSL certificate on the BIGIP.
    certMonitoringType String
    Specifies the type of monitoring used.
    certName String
    Name of the SSL certificate to be Imported on to BIGIP.
    certOcsp String
    Specifies the OCSP responder.
    issuerCert String
    Specifies the issuer certificate.
    keyContent String
    The content of the key.
    keyFullPath String
    full path of the SSL key on the BIGIP.
    keyName String
    Name of the SSL key to be Imported on to BIGIP.
    partition String
    Partition on to SSL certificate and key to be imported.
    passphrase String
    Passphrase on the SSL key.

    Package Details

    Repository
    f5 BIG-IP pulumi/pulumi-f5bigip
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the bigip Terraform Provider.
    f5bigip logo
    f5 BIG-IP v3.17.6 published on Monday, Oct 28, 2024 by Pulumi