1. Packages
  2. Incapsula Provider
  3. API Docs
  4. ManagedCertificateSettings
incapsula 3.33.0 published on Wednesday, Apr 30, 2025 by imperva

incapsula.ManagedCertificateSettings

Explore with Pulumi AI

incapsula logo
incapsula 3.33.0 published on Wednesday, Apr 30, 2025 by imperva

    Provides an Incapsula Site’s managed certificate settings resource. The provider will configure or remove a managed certificate for the sites’ domains, based on this resource.
    Note: This resource is designed to work with sites represented by the “incapsula.SiteV3” resource only.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as incapsula from "@pulumi/incapsula";
    
    const example_managedCertificateSettings = new incapsula.ManagedCertificateSettings("example-managedCertificateSettings", {
        siteId: incapsula_site_v3["example-v3-site"].site_id,
        defaultValidationMethod: "CNAME",
    });
    
    import pulumi
    import pulumi_incapsula as incapsula
    
    example_managed_certificate_settings = incapsula.ManagedCertificateSettings("example-managedCertificateSettings",
        site_id=incapsula_site_v3["example-v3-site"]["site_id"],
        default_validation_method="CNAME")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/incapsula/v3/incapsula"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := incapsula.NewManagedCertificateSettings(ctx, "example-managedCertificateSettings", &incapsula.ManagedCertificateSettingsArgs{
    			SiteId:                  pulumi.Any(incapsula_site_v3.ExampleV3Site.Site_id),
    			DefaultValidationMethod: pulumi.String("CNAME"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Incapsula = Pulumi.Incapsula;
    
    return await Deployment.RunAsync(() => 
    {
        var example_managedCertificateSettings = new Incapsula.ManagedCertificateSettings("example-managedCertificateSettings", new()
        {
            SiteId = incapsula_site_v3.Example_v3_site.Site_id,
            DefaultValidationMethod = "CNAME",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.incapsula.ManagedCertificateSettings;
    import com.pulumi.incapsula.ManagedCertificateSettingsArgs;
    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 example_managedCertificateSettings = new ManagedCertificateSettings("example-managedCertificateSettings", ManagedCertificateSettingsArgs.builder()
                .siteId(incapsula_site_v3.example-v3-site().site_id())
                .defaultValidationMethod("CNAME")
                .build());
    
        }
    }
    
    resources:
      example-managedCertificateSettings:
        type: incapsula:ManagedCertificateSettings
        properties:
          siteId: ${incapsula_site_v3"example-v3-site"[%!s(MISSING)].site_id}
          defaultValidationMethod: CNAME
    

    Create ManagedCertificateSettings Resource

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

    Constructor syntax

    new ManagedCertificateSettings(name: string, args: ManagedCertificateSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedCertificateSettings(resource_name: str,
                                   args: ManagedCertificateSettingsArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedCertificateSettings(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   site_id: Optional[str] = None,
                                   account_id: Optional[float] = None,
                                   default_validation_method: Optional[str] = None,
                                   managed_certificate_settings_id: Optional[str] = None)
    func NewManagedCertificateSettings(ctx *Context, name string, args ManagedCertificateSettingsArgs, opts ...ResourceOption) (*ManagedCertificateSettings, error)
    public ManagedCertificateSettings(string name, ManagedCertificateSettingsArgs args, CustomResourceOptions? opts = null)
    public ManagedCertificateSettings(String name, ManagedCertificateSettingsArgs args)
    public ManagedCertificateSettings(String name, ManagedCertificateSettingsArgs args, CustomResourceOptions options)
    
    type: incapsula:ManagedCertificateSettings
    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 ManagedCertificateSettingsArgs
    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 ManagedCertificateSettingsArgs
    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 ManagedCertificateSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedCertificateSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedCertificateSettingsArgs
    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 managedCertificateSettingsResource = new Incapsula.ManagedCertificateSettings("managedCertificateSettingsResource", new()
    {
        SiteId = "string",
        AccountId = 0,
        DefaultValidationMethod = "string",
        ManagedCertificateSettingsId = "string",
    });
    
    example, err := incapsula.NewManagedCertificateSettings(ctx, "managedCertificateSettingsResource", &incapsula.ManagedCertificateSettingsArgs{
    	SiteId:                       pulumi.String("string"),
    	AccountId:                    pulumi.Float64(0),
    	DefaultValidationMethod:      pulumi.String("string"),
    	ManagedCertificateSettingsId: pulumi.String("string"),
    })
    
    var managedCertificateSettingsResource = new ManagedCertificateSettings("managedCertificateSettingsResource", ManagedCertificateSettingsArgs.builder()
        .siteId("string")
        .accountId(0)
        .defaultValidationMethod("string")
        .managedCertificateSettingsId("string")
        .build());
    
    managed_certificate_settings_resource = incapsula.ManagedCertificateSettings("managedCertificateSettingsResource",
        site_id="string",
        account_id=0,
        default_validation_method="string",
        managed_certificate_settings_id="string")
    
    const managedCertificateSettingsResource = new incapsula.ManagedCertificateSettings("managedCertificateSettingsResource", {
        siteId: "string",
        accountId: 0,
        defaultValidationMethod: "string",
        managedCertificateSettingsId: "string",
    });
    
    type: incapsula:ManagedCertificateSettings
    properties:
        accountId: 0
        defaultValidationMethod: string
        managedCertificateSettingsId: string
        siteId: string
    

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

    SiteId string
    Numeric identifier of the site to operate on.
    AccountId double
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    DefaultValidationMethod string
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    ManagedCertificateSettingsId string
    The id of the managed certificate settings resource.
    SiteId string
    Numeric identifier of the site to operate on.
    AccountId float64
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    DefaultValidationMethod string
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    ManagedCertificateSettingsId string
    The id of the managed certificate settings resource.
    siteId String
    Numeric identifier of the site to operate on.
    accountId Double
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    defaultValidationMethod String
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    managedCertificateSettingsId String
    The id of the managed certificate settings resource.
    siteId string
    Numeric identifier of the site to operate on.
    accountId number
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    defaultValidationMethod string
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    managedCertificateSettingsId string
    The id of the managed certificate settings resource.
    site_id str
    Numeric identifier of the site to operate on.
    account_id float
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    default_validation_method str
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    managed_certificate_settings_id str
    The id of the managed certificate settings resource.
    siteId String
    Numeric identifier of the site to operate on.
    accountId Number
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    defaultValidationMethod String
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    managedCertificateSettingsId String
    The id of the managed certificate settings resource.

    Outputs

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

    Get an existing ManagedCertificateSettings 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?: ManagedCertificateSettingsState, opts?: CustomResourceOptions): ManagedCertificateSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[float] = None,
            default_validation_method: Optional[str] = None,
            managed_certificate_settings_id: Optional[str] = None,
            site_id: Optional[str] = None) -> ManagedCertificateSettings
    func GetManagedCertificateSettings(ctx *Context, name string, id IDInput, state *ManagedCertificateSettingsState, opts ...ResourceOption) (*ManagedCertificateSettings, error)
    public static ManagedCertificateSettings Get(string name, Input<string> id, ManagedCertificateSettingsState? state, CustomResourceOptions? opts = null)
    public static ManagedCertificateSettings get(String name, Output<String> id, ManagedCertificateSettingsState state, CustomResourceOptions options)
    resources:  _:    type: incapsula:ManagedCertificateSettings    get:      id: ${id}
    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:
    AccountId double
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    DefaultValidationMethod string
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    ManagedCertificateSettingsId string
    The id of the managed certificate settings resource.
    SiteId string
    Numeric identifier of the site to operate on.
    AccountId float64
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    DefaultValidationMethod string
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    ManagedCertificateSettingsId string
    The id of the managed certificate settings resource.
    SiteId string
    Numeric identifier of the site to operate on.
    accountId Double
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    defaultValidationMethod String
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    managedCertificateSettingsId String
    The id of the managed certificate settings resource.
    siteId String
    Numeric identifier of the site to operate on.
    accountId number
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    defaultValidationMethod string
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    managedCertificateSettingsId string
    The id of the managed certificate settings resource.
    siteId string
    Numeric identifier of the site to operate on.
    account_id float
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    default_validation_method str
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    managed_certificate_settings_id str
    The id of the managed certificate settings resource.
    site_id str
    Numeric identifier of the site to operate on.
    accountId Number
    The account to operate on. If not specified, operation will be performed on the account identified by the authentication parameters.
    defaultValidationMethod String
    The default SSL validation method that will be used for new domains. Options are CNAME, DNS and EMAIL. Defaults to CNAME.
    managedCertificateSettingsId String
    The id of the managed certificate settings resource.
    siteId String
    Numeric identifier of the site to operate on.

    Import

    Managed certificate settings can be imported using the site_id, e.g.:

    $ pulumi import incapsula:index/managedCertificateSettings:ManagedCertificateSettings example-managed_certificate_settings site_id
    

    Or by using the account_id and site_id separated by /, e.g.:

    $ pulumi import incapsula:index/managedCertificateSettings:ManagedCertificateSettings example-managed_certificate_settings account_id/site_id
    

    The official docs for Manage Certificate settings API are located here: https://docs.imperva.com/bundle/cloud-application-security/page/certificatesUI-api-definition.htm

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    incapsula imperva/terraform-provider-incapsula
    License
    Notes
    This Pulumi package is based on the incapsula Terraform Provider.
    incapsula logo
    incapsula 3.33.0 published on Wednesday, Apr 30, 2025 by imperva