F5 BIG-IP

Pulumi Official
Package maintained by Pulumi
v3.8.0 published on Tuesday, May 31, 2022 by Pulumi

Certificate

f5bigip.ssl.Certificate This resource will import SSL certificates on BIG-IP LTM. Certificates can be imported from certificate files on the local disk, in PEM format

Example Usage

using System.IO;
using Pulumi;
using F5BigIP = Pulumi.F5BigIP;

class MyStack : Stack
{
    public MyStack()
    {
        var test_cert = new F5BigIP.Ssl.Certificate("test-cert", new F5BigIP.Ssl.CertificateArgs
        {
            Name = "servercert.crt",
            Content = File.ReadAllText("servercert.crt"),
            Partition = "Common",
        });
    }

}
package main

import (
	"io/ioutil"

	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/ssl"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := ioutil.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ssl.NewCertificate(ctx, "test-cert", &ssl.CertificateArgs{
			Name:      pulumi.String("servercert.crt"),
			Content:   readFileOrPanic("servercert.crt"),
			Partition: pulumi.String("Common"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_f5bigip as f5bigip

test_cert = f5bigip.ssl.Certificate("test-cert",
    name="servercert.crt",
    content=(lambda path: open(path).read())("servercert.crt"),
    partition="Common")
import * as pulumi from "@pulumi/pulumi";
import * as f5bigip from "@pulumi/f5bigip";
import * from "fs";

const test_cert = new f5bigip.ssl.Certificate("test-cert", {
    name: "servercert.crt",
    content: fs.readFileSync("servercert.crt"),
    partition: "Common",
});

Coming soon!

Create a Certificate Resource

new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
@overload
def Certificate(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                content: Optional[str] = None,
                full_path: Optional[str] = None,
                name: Optional[str] = None,
                partition: Optional[str] = None)
@overload
def Certificate(resource_name: str,
                args: CertificateArgs,
                opts: Optional[ResourceOptions] = None)
func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
public Certificate(String name, CertificateArgs args)
public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
type: f5bigip:ssl:Certificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

Certificate 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 Certificate resource accepts the following input properties:

Content string

Content of certificate on Disk

Name string

Name of the SSL Certificate to be Imported on to BIGIP

FullPath string

Full Path Name of ssl certificate

Partition string

Partition of ssl certificate

Content string

Content of certificate on Disk

Name string

Name of the SSL Certificate to be Imported on to BIGIP

FullPath string

Full Path Name of ssl certificate

Partition string

Partition of ssl certificate

content String

Content of certificate on Disk

name String

Name of the SSL Certificate to be Imported on to BIGIP

fullPath String

Full Path Name of ssl certificate

partition String

Partition of ssl certificate

content string

Content of certificate on Disk

name string

Name of the SSL Certificate to be Imported on to BIGIP

fullPath string

Full Path Name of ssl certificate

partition string

Partition of ssl certificate

content str

Content of certificate on Disk

name str

Name of the SSL Certificate to be Imported on to BIGIP

full_path str

Full Path Name of ssl certificate

partition str

Partition of ssl certificate

content String

Content of certificate on Disk

name String

Name of the SSL Certificate to be Imported on to BIGIP

fullPath String

Full Path Name of ssl certificate

partition String

Partition of ssl certificate

Outputs

All input properties are implicitly available as output properties. Additionally, the Certificate 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 an Existing Certificate Resource

Get an existing Certificate 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?: CertificateState, opts?: CustomResourceOptions): Certificate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        content: Optional[str] = None,
        full_path: Optional[str] = None,
        name: Optional[str] = None,
        partition: Optional[str] = None) -> Certificate
func GetCertificate(ctx *Context, name string, id IDInput, state *CertificateState, opts ...ResourceOption) (*Certificate, error)
public static Certificate Get(string name, Input<string> id, CertificateState? state, CustomResourceOptions? opts = null)
public static Certificate get(String name, Output<String> id, CertificateState 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:
Content string

Content of certificate on Disk

FullPath string

Full Path Name of ssl certificate

Name string

Name of the SSL Certificate to be Imported on to BIGIP

Partition string

Partition of ssl certificate

Content string

Content of certificate on Disk

FullPath string

Full Path Name of ssl certificate

Name string

Name of the SSL Certificate to be Imported on to BIGIP

Partition string

Partition of ssl certificate

content String

Content of certificate on Disk

fullPath String

Full Path Name of ssl certificate

name String

Name of the SSL Certificate to be Imported on to BIGIP

partition String

Partition of ssl certificate

content string

Content of certificate on Disk

fullPath string

Full Path Name of ssl certificate

name string

Name of the SSL Certificate to be Imported on to BIGIP

partition string

Partition of ssl certificate

content str

Content of certificate on Disk

full_path str

Full Path Name of ssl certificate

name str

Name of the SSL Certificate to be Imported on to BIGIP

partition str

Partition of ssl certificate

content String

Content of certificate on Disk

fullPath String

Full Path Name of ssl certificate

name String

Name of the SSL Certificate to be Imported on to BIGIP

partition String

Partition of ssl certificate

Package Details

Repository
https://github.com/pulumi/pulumi-f5bigip
License
Apache-2.0
Notes

This Pulumi package is based on the bigip Terraform Provider.