Class CustomSsl
Provides a Cloudflare custom ssl resource.
Example Usage
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
class MyStack : Stack
{
public MyStack()
{
var config = new Config();
var cloudflareZoneId = config.Get("cloudflareZoneId") ?? "1d5fdc9e88c8a8c4518b068cd94331fe";
// Add a custom ssl certificate to the domain
var foossl = new Cloudflare.CustomSsl("foossl", new Cloudflare.CustomSslArgs
{
CustomSslOptions = new Cloudflare.Inputs.CustomSslCustomSslOptionsArgs
{
Bundle_method = "ubiquitous",
Certificate = "-----INSERT CERTIFICATE-----",
Geo_restrictions = "us",
Private_key = "-----INSERT PRIVATE KEY-----",
Type = "legacy_custom",
},
ZoneId = cloudflareZoneId,
});
}
}
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class CustomSsl : CustomResource
Constructors
View SourceCustomSsl(String, CustomSslArgs, CustomResourceOptions)
Create a CustomSsl resource with the given unique name, arguments, and options.
Declaration
public CustomSsl(string name, CustomSslArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| CustomSslArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCustomSslOptions
The certificate, private key and associated optional parameters, such as bundle_method, geo_restrictions, and type.
Declaration
public Output<CustomSslCustomSslOptions> CustomSslOptions { get; }
Property Value
| Type | Description |
|---|---|
| Output<CustomSslCustomSslOptions> |
CustomSslPriorities
Declaration
public Output<ImmutableArray<CustomSslCustomSslPriority>> CustomSslPriorities { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<CustomSslCustomSslPriority>> |
ExpiresOn
Declaration
public Output<string> ExpiresOn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Hosts
Declaration
public Output<ImmutableArray<string>> Hosts { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Issuer
Declaration
public Output<string> Issuer { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ModifiedOn
Declaration
public Output<string> ModifiedOn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Priority
Declaration
public Output<int> Priority { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Signature
Declaration
public Output<string> Signature { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Status
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UploadedOn
Declaration
public Output<string> UploadedOn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ZoneId
The DNS zone id to the custom ssl cert should be added.
Declaration
public Output<string> ZoneId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, CustomSslState, CustomResourceOptions)
Get an existing CustomSsl resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static CustomSsl Get(string name, Input<string> id, CustomSslState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| CustomSslState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| CustomSsl |