1. Packages
  2. F5bigip Provider
  3. API Docs
  4. ssl
  5. Certificate
f5 BIG-IP v3.17.7 published on Wednesday, Dec 4, 2024 by Pulumi

f5bigip.ssl.Certificate

Explore with Pulumi AI

f5bigip logo
f5 BIG-IP v3.17.7 published on Wednesday, Dec 4, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as f5bigip from "@pulumi/f5bigip";
    import * as std from "@pulumi/std";
    
    const test_cert = new f5bigip.ssl.Certificate("test-cert", {
        name: "servercert.crt",
        content: std.file({
            input: "servercert.crt",
        }).then(invoke => invoke.result),
        partition: "Common",
    });
    
    import pulumi
    import pulumi_f5bigip as f5bigip
    import pulumi_std as std
    
    test_cert = f5bigip.ssl.Certificate("test-cert",
        name="servercert.crt",
        content=std.file(input="servercert.crt").result,
        partition="Common")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/ssl"
    	"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: "servercert.crt",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ssl.NewCertificate(ctx, "test-cert", &ssl.CertificateArgs{
    			Name:      pulumi.String("servercert.crt"),
    			Content:   pulumi.String(invokeFile.Result),
    			Partition: pulumi.String("Common"),
    		})
    		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 test_cert = new F5BigIP.Ssl.Certificate("test-cert", new()
        {
            Name = "servercert.crt",
            Content = Std.File.Invoke(new()
            {
                Input = "servercert.crt",
            }).Apply(invoke => invoke.Result),
            Partition = "Common",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.f5bigip.ssl.Certificate;
    import com.pulumi.f5bigip.ssl.CertificateArgs;
    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 test_cert = new Certificate("test-cert", CertificateArgs.builder()
                .name("servercert.crt")
                .content(StdFunctions.file(FileArgs.builder()
                    .input("servercert.crt")
                    .build()).result())
                .partition("Common")
                .build());
    
        }
    }
    
    resources:
      test-cert:
        type: f5bigip:ssl:Certificate
        properties:
          name: servercert.crt
          content:
            fn::invoke:
              Function: std:file
              Arguments:
                input: servercert.crt
              Return: result
          partition: Common
    

    Create Certificate Resource

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

    Constructor syntax

    new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
    @overload
    def Certificate(resource_name: str,
                    args: CertificateArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Certificate(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    content: Optional[str] = None,
                    name: Optional[str] = None,
                    full_path: Optional[str] = None,
                    issuer_cert: Optional[str] = None,
                    monitoring_type: Optional[str] = None,
                    ocsp: Optional[str] = None,
                    partition: Optional[str] = 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.
    
    

    Parameters

    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.

    Constructor example

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

    var certificateResource = new F5BigIP.Ssl.Certificate("certificateResource", new()
    {
        Content = "string",
        Name = "string",
        FullPath = "string",
        IssuerCert = "string",
        MonitoringType = "string",
        Ocsp = "string",
        Partition = "string",
    });
    
    example, err := ssl.NewCertificate(ctx, "certificateResource", &ssl.CertificateArgs{
    	Content:        pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	FullPath:       pulumi.String("string"),
    	IssuerCert:     pulumi.String("string"),
    	MonitoringType: pulumi.String("string"),
    	Ocsp:           pulumi.String("string"),
    	Partition:      pulumi.String("string"),
    })
    
    var certificateResource = new Certificate("certificateResource", CertificateArgs.builder()
        .content("string")
        .name("string")
        .fullPath("string")
        .issuerCert("string")
        .monitoringType("string")
        .ocsp("string")
        .partition("string")
        .build());
    
    certificate_resource = f5bigip.ssl.Certificate("certificateResource",
        content="string",
        name="string",
        full_path="string",
        issuer_cert="string",
        monitoring_type="string",
        ocsp="string",
        partition="string")
    
    const certificateResource = new f5bigip.ssl.Certificate("certificateResource", {
        content: "string",
        name: "string",
        fullPath: "string",
        issuerCert: "string",
        monitoringType: "string",
        ocsp: "string",
        partition: "string",
    });
    
    type: f5bigip:ssl:Certificate
    properties:
        content: string
        fullPath: string
        issuerCert: string
        monitoringType: string
        name: string
        ocsp: string
        partition: string
    

    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

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

    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
    IssuerCert string
    Specifies the issuer certificate.
    MonitoringType string
    Specifies the type of monitoring used.
    Ocsp string
    Specifies the OCSP responder.
    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
    IssuerCert string
    Specifies the issuer certificate.
    MonitoringType string
    Specifies the type of monitoring used.
    Ocsp string
    Specifies the OCSP responder.
    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
    issuerCert String
    Specifies the issuer certificate.
    monitoringType String
    Specifies the type of monitoring used.
    ocsp String
    Specifies the OCSP responder.
    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
    issuerCert string
    Specifies the issuer certificate.
    monitoringType string
    Specifies the type of monitoring used.
    ocsp string
    Specifies the OCSP responder.
    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
    issuer_cert str
    Specifies the issuer certificate.
    monitoring_type str
    Specifies the type of monitoring used.
    ocsp str
    Specifies the OCSP responder.
    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
    issuerCert String
    Specifies the issuer certificate.
    monitoringType String
    Specifies the type of monitoring used.
    ocsp String
    Specifies the OCSP responder.
    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 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,
            issuer_cert: Optional[str] = None,
            monitoring_type: Optional[str] = None,
            name: Optional[str] = None,
            ocsp: 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
    IssuerCert string
    Specifies the issuer certificate.
    MonitoringType string
    Specifies the type of monitoring used.
    Name string
    Name of the SSL Certificate to be Imported on to BIGIP
    Ocsp string
    Specifies the OCSP responder.
    Partition string
    Partition of ssl certificate
    Content string
    Content of certificate on Disk
    FullPath string
    Full Path Name of ssl certificate
    IssuerCert string
    Specifies the issuer certificate.
    MonitoringType string
    Specifies the type of monitoring used.
    Name string
    Name of the SSL Certificate to be Imported on to BIGIP
    Ocsp string
    Specifies the OCSP responder.
    Partition string
    Partition of ssl certificate
    content String
    Content of certificate on Disk
    fullPath String
    Full Path Name of ssl certificate
    issuerCert String
    Specifies the issuer certificate.
    monitoringType String
    Specifies the type of monitoring used.
    name String
    Name of the SSL Certificate to be Imported on to BIGIP
    ocsp String
    Specifies the OCSP responder.
    partition String
    Partition of ssl certificate
    content string
    Content of certificate on Disk
    fullPath string
    Full Path Name of ssl certificate
    issuerCert string
    Specifies the issuer certificate.
    monitoringType string
    Specifies the type of monitoring used.
    name string
    Name of the SSL Certificate to be Imported on to BIGIP
    ocsp string
    Specifies the OCSP responder.
    partition string
    Partition of ssl certificate
    content str
    Content of certificate on Disk
    full_path str
    Full Path Name of ssl certificate
    issuer_cert str
    Specifies the issuer certificate.
    monitoring_type str
    Specifies the type of monitoring used.
    name str
    Name of the SSL Certificate to be Imported on to BIGIP
    ocsp str
    Specifies the OCSP responder.
    partition str
    Partition of ssl certificate
    content String
    Content of certificate on Disk
    fullPath String
    Full Path Name of ssl certificate
    issuerCert String
    Specifies the issuer certificate.
    monitoringType String
    Specifies the type of monitoring used.
    name String
    Name of the SSL Certificate to be Imported on to BIGIP
    ocsp String
    Specifies the OCSP responder.
    partition String
    Partition of ssl certificate

    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.7 published on Wednesday, Dec 4, 2024 by Pulumi