f5bigip.SslKeyCert
Explore with Pulumi AI
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:
- Cert
Content string - The content of the cert.
- Cert
Name string - Name of the SSL certificate to be Imported on to BIGIP.
- Key
Content string - The content of the key.
- Key
Name string - Name of the SSL key to be Imported on to BIGIP.
- Cert
Full stringPath - full path of the SSL certificate on the BIGIP.
- Cert
Monitoring stringType - Specifies the type of monitoring used.
- Cert
Ocsp string - Specifies the OCSP responder.
- Issuer
Cert string - Specifies the issuer certificate.
- Key
Full stringPath - 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 string - The content of the cert.
- Cert
Name string - Name of the SSL certificate to be Imported on to BIGIP.
- Key
Content string - The content of the key.
- Key
Name string - Name of the SSL key to be Imported on to BIGIP.
- Cert
Full stringPath - full path of the SSL certificate on the BIGIP.
- Cert
Monitoring stringType - Specifies the type of monitoring used.
- Cert
Ocsp string - Specifies the OCSP responder.
- Issuer
Cert string - Specifies the issuer certificate.
- Key
Full stringPath - 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 String - The content of the cert.
- cert
Name String - Name of the SSL certificate to be Imported on to BIGIP.
- key
Content String - The content of the key.
- key
Name String - Name of the SSL key to be Imported on to BIGIP.
- cert
Full StringPath - full path of the SSL certificate on the BIGIP.
- cert
Monitoring StringType - Specifies the type of monitoring used.
- cert
Ocsp String - Specifies the OCSP responder.
- issuer
Cert String - Specifies the issuer certificate.
- key
Full StringPath - 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 string - The content of the cert.
- cert
Name string - Name of the SSL certificate to be Imported on to BIGIP.
- key
Content string - The content of the key.
- key
Name string - Name of the SSL key to be Imported on to BIGIP.
- cert
Full stringPath - full path of the SSL certificate on the BIGIP.
- cert
Monitoring stringType - Specifies the type of monitoring used.
- cert
Ocsp string - Specifies the OCSP responder.
- issuer
Cert string - Specifies the issuer certificate.
- key
Full stringPath - 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_ strpath - full path of the SSL certificate on the BIGIP.
- cert_
monitoring_ strtype - Specifies the type of monitoring used.
- cert_
ocsp str - Specifies the OCSP responder.
- issuer_
cert str - Specifies the issuer certificate.
- key_
full_ strpath - 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.
- cert
Content String - The content of the cert.
- cert
Name String - Name of the SSL certificate to be Imported on to BIGIP.
- key
Content String - The content of the key.
- key
Name String - Name of the SSL key to be Imported on to BIGIP.
- cert
Full StringPath - full path of the SSL certificate on the BIGIP.
- cert
Monitoring StringType - Specifies the type of monitoring used.
- cert
Ocsp String - Specifies the OCSP responder.
- issuer
Cert String - Specifies the issuer certificate.
- key
Full StringPath - 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.
- Cert
Content string - The content of the cert.
- Cert
Full stringPath - full path of the SSL certificate on the BIGIP.
- Cert
Monitoring stringType - Specifies the type of monitoring used.
- Cert
Name string - Name of the SSL certificate to be Imported on to BIGIP.
- Cert
Ocsp string - Specifies the OCSP responder.
- Issuer
Cert string - Specifies the issuer certificate.
- Key
Content string - The content of the key.
- Key
Full stringPath - full path of the SSL key on the BIGIP.
- Key
Name 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 string - The content of the cert.
- Cert
Full stringPath - full path of the SSL certificate on the BIGIP.
- Cert
Monitoring stringType - Specifies the type of monitoring used.
- Cert
Name string - Name of the SSL certificate to be Imported on to BIGIP.
- Cert
Ocsp string - Specifies the OCSP responder.
- Issuer
Cert string - Specifies the issuer certificate.
- Key
Content string - The content of the key.
- Key
Full stringPath - full path of the SSL key on the BIGIP.
- Key
Name 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 String - The content of the cert.
- cert
Full StringPath - full path of the SSL certificate on the BIGIP.
- cert
Monitoring StringType - Specifies the type of monitoring used.
- cert
Name String - Name of the SSL certificate to be Imported on to BIGIP.
- cert
Ocsp String - Specifies the OCSP responder.
- issuer
Cert String - Specifies the issuer certificate.
- key
Content String - The content of the key.
- key
Full StringPath - full path of the SSL key on the BIGIP.
- key
Name 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 string - The content of the cert.
- cert
Full stringPath - full path of the SSL certificate on the BIGIP.
- cert
Monitoring stringType - Specifies the type of monitoring used.
- cert
Name string - Name of the SSL certificate to be Imported on to BIGIP.
- cert
Ocsp string - Specifies the OCSP responder.
- issuer
Cert string - Specifies the issuer certificate.
- key
Content string - The content of the key.
- key
Full stringPath - full path of the SSL key on the BIGIP.
- key
Name 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_ strpath - full path of the SSL certificate on the BIGIP.
- cert_
monitoring_ strtype - 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_ strpath - 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.
- cert
Content String - The content of the cert.
- cert
Full StringPath - full path of the SSL certificate on the BIGIP.
- cert
Monitoring StringType - Specifies the type of monitoring used.
- cert
Name String - Name of the SSL certificate to be Imported on to BIGIP.
- cert
Ocsp String - Specifies the OCSP responder.
- issuer
Cert String - Specifies the issuer certificate.
- key
Content String - The content of the key.
- key
Full StringPath - full path of the SSL key on the BIGIP.
- key
Name 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.