1. Packages
  2. Incapsula Provider
  3. API Docs
  4. CertificateSigningRequest
incapsula 3.32.1 published on Monday, Apr 14, 2025 by imperva

incapsula.CertificateSigningRequest

Explore with Pulumi AI

incapsula logo
incapsula 3.32.1 published on Monday, Apr 14, 2025 by imperva

    Provides a Incapsula Certificate Signing Request resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as incapsula from "@pulumi/incapsula";
    
    const certificate_signing_request = new incapsula.CertificateSigningRequest("certificate-signing-request", {
        siteId: incapsula_site["example-site"].id,
        domain: "sandwich.au",
        email: "test@sandwich.au",
        country: "AU",
        state: "QLD",
        city: "BNE",
        organization: "Tacos Pty Ltd",
        organizationUnit: "Kitchen",
    });
    
    import pulumi
    import pulumi_incapsula as incapsula
    
    certificate_signing_request = incapsula.CertificateSigningRequest("certificate-signing-request",
        site_id=incapsula_site["example-site"]["id"],
        domain="sandwich.au",
        email="test@sandwich.au",
        country="AU",
        state="QLD",
        city="BNE",
        organization="Tacos Pty Ltd",
        organization_unit="Kitchen")
    
    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.NewCertificateSigningRequest(ctx, "certificate-signing-request", &incapsula.CertificateSigningRequestArgs{
    			SiteId:           pulumi.Any(incapsula_site.ExampleSite.Id),
    			Domain:           pulumi.String("sandwich.au"),
    			Email:            pulumi.String("test@sandwich.au"),
    			Country:          pulumi.String("AU"),
    			State:            pulumi.String("QLD"),
    			City:             pulumi.String("BNE"),
    			Organization:     pulumi.String("Tacos Pty Ltd"),
    			OrganizationUnit: pulumi.String("Kitchen"),
    		})
    		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 certificate_signing_request = new Incapsula.CertificateSigningRequest("certificate-signing-request", new()
        {
            SiteId = incapsula_site.Example_site.Id,
            Domain = "sandwich.au",
            Email = "test@sandwich.au",
            Country = "AU",
            State = "QLD",
            City = "BNE",
            Organization = "Tacos Pty Ltd",
            OrganizationUnit = "Kitchen",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.incapsula.CertificateSigningRequest;
    import com.pulumi.incapsula.CertificateSigningRequestArgs;
    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 certificate_signing_request = new CertificateSigningRequest("certificate-signing-request", CertificateSigningRequestArgs.builder()
                .siteId(incapsula_site.example-site().id())
                .domain("sandwich.au")
                .email("test@sandwich.au")
                .country("AU")
                .state("QLD")
                .city("BNE")
                .organization("Tacos Pty Ltd")
                .organizationUnit("Kitchen")
                .build());
    
        }
    }
    
    resources:
      certificate-signing-request:
        type: incapsula:CertificateSigningRequest
        properties:
          siteId: ${incapsula_site"example-site"[%!s(MISSING)].id}
          domain: sandwich.au
          email: test@sandwich.au
          country: AU
          state: QLD
          city: BNE
          organization: Tacos Pty Ltd
          organizationUnit: Kitchen
    

    Create CertificateSigningRequest Resource

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

    Constructor syntax

    new CertificateSigningRequest(name: string, args: CertificateSigningRequestArgs, opts?: CustomResourceOptions);
    @overload
    def CertificateSigningRequest(resource_name: str,
                                  args: CertificateSigningRequestArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def CertificateSigningRequest(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  site_id: Optional[str] = None,
                                  certificate_signing_request_id: Optional[str] = None,
                                  city: Optional[str] = None,
                                  country: Optional[str] = None,
                                  domain: Optional[str] = None,
                                  email: Optional[str] = None,
                                  organization: Optional[str] = None,
                                  organization_unit: Optional[str] = None,
                                  state: Optional[str] = None)
    func NewCertificateSigningRequest(ctx *Context, name string, args CertificateSigningRequestArgs, opts ...ResourceOption) (*CertificateSigningRequest, error)
    public CertificateSigningRequest(string name, CertificateSigningRequestArgs args, CustomResourceOptions? opts = null)
    public CertificateSigningRequest(String name, CertificateSigningRequestArgs args)
    public CertificateSigningRequest(String name, CertificateSigningRequestArgs args, CustomResourceOptions options)
    
    type: incapsula:CertificateSigningRequest
    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 CertificateSigningRequestArgs
    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 CertificateSigningRequestArgs
    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 CertificateSigningRequestArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CertificateSigningRequestArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CertificateSigningRequestArgs
    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 certificateSigningRequestResource = new Incapsula.CertificateSigningRequest("certificateSigningRequestResource", new()
    {
        SiteId = "string",
        CertificateSigningRequestId = "string",
        City = "string",
        Country = "string",
        Domain = "string",
        Email = "string",
        Organization = "string",
        OrganizationUnit = "string",
        State = "string",
    });
    
    example, err := incapsula.NewCertificateSigningRequest(ctx, "certificateSigningRequestResource", &incapsula.CertificateSigningRequestArgs{
    	SiteId:                      pulumi.String("string"),
    	CertificateSigningRequestId: pulumi.String("string"),
    	City:                        pulumi.String("string"),
    	Country:                     pulumi.String("string"),
    	Domain:                      pulumi.String("string"),
    	Email:                       pulumi.String("string"),
    	Organization:                pulumi.String("string"),
    	OrganizationUnit:            pulumi.String("string"),
    	State:                       pulumi.String("string"),
    })
    
    var certificateSigningRequestResource = new CertificateSigningRequest("certificateSigningRequestResource", CertificateSigningRequestArgs.builder()
        .siteId("string")
        .certificateSigningRequestId("string")
        .city("string")
        .country("string")
        .domain("string")
        .email("string")
        .organization("string")
        .organizationUnit("string")
        .state("string")
        .build());
    
    certificate_signing_request_resource = incapsula.CertificateSigningRequest("certificateSigningRequestResource",
        site_id="string",
        certificate_signing_request_id="string",
        city="string",
        country="string",
        domain="string",
        email="string",
        organization="string",
        organization_unit="string",
        state="string")
    
    const certificateSigningRequestResource = new incapsula.CertificateSigningRequest("certificateSigningRequestResource", {
        siteId: "string",
        certificateSigningRequestId: "string",
        city: "string",
        country: "string",
        domain: "string",
        email: "string",
        organization: "string",
        organizationUnit: "string",
        state: "string",
    });
    
    type: incapsula:CertificateSigningRequest
    properties:
        certificateSigningRequestId: string
        city: string
        country: string
        domain: string
        email: string
        organization: string
        organizationUnit: string
        siteId: string
        state: string
    

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

    SiteId string
    Numeric identifier of the site to operate on.
    CertificateSigningRequestId string
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    City string
    The city where your organization is located.
    Country string
    The two-letter ISO code for the country where your organization is located.
    Domain string
    The common name. For example: example.com
    Email string
    The Email address. For example: joe@example.com
    Organization string
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    OrganizationUnit string
    The division of your organization handling the certificate. For example, IT Department.
    State string
    The state/region where your organization is located. This should not be abbreviated.
    SiteId string
    Numeric identifier of the site to operate on.
    CertificateSigningRequestId string
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    City string
    The city where your organization is located.
    Country string
    The two-letter ISO code for the country where your organization is located.
    Domain string
    The common name. For example: example.com
    Email string
    The Email address. For example: joe@example.com
    Organization string
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    OrganizationUnit string
    The division of your organization handling the certificate. For example, IT Department.
    State string
    The state/region where your organization is located. This should not be abbreviated.
    siteId String
    Numeric identifier of the site to operate on.
    certificateSigningRequestId String
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    city String
    The city where your organization is located.
    country String
    The two-letter ISO code for the country where your organization is located.
    domain String
    The common name. For example: example.com
    email String
    The Email address. For example: joe@example.com
    organization String
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    organizationUnit String
    The division of your organization handling the certificate. For example, IT Department.
    state String
    The state/region where your organization is located. This should not be abbreviated.
    siteId string
    Numeric identifier of the site to operate on.
    certificateSigningRequestId string
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    city string
    The city where your organization is located.
    country string
    The two-letter ISO code for the country where your organization is located.
    domain string
    The common name. For example: example.com
    email string
    The Email address. For example: joe@example.com
    organization string
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    organizationUnit string
    The division of your organization handling the certificate. For example, IT Department.
    state string
    The state/region where your organization is located. This should not be abbreviated.
    site_id str
    Numeric identifier of the site to operate on.
    certificate_signing_request_id str
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    city str
    The city where your organization is located.
    country str
    The two-letter ISO code for the country where your organization is located.
    domain str
    The common name. For example: example.com
    email str
    The Email address. For example: joe@example.com
    organization str
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    organization_unit str
    The division of your organization handling the certificate. For example, IT Department.
    state str
    The state/region where your organization is located. This should not be abbreviated.
    siteId String
    Numeric identifier of the site to operate on.
    certificateSigningRequestId String
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    city String
    The city where your organization is located.
    country String
    The two-letter ISO code for the country where your organization is located.
    domain String
    The common name. For example: example.com
    email String
    The Email address. For example: joe@example.com
    organization String
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    organizationUnit String
    The division of your organization handling the certificate. For example, IT Department.
    state String
    The state/region where your organization is located. This should not be abbreviated.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CertificateSigningRequest resource produces the following output properties:

    CsrContent string
    (String) The certificate request data.
    Id string
    The provider-assigned unique ID for this managed resource.
    CsrContent string
    (String) The certificate request data.
    Id string
    The provider-assigned unique ID for this managed resource.
    csrContent String
    (String) The certificate request data.
    id String
    The provider-assigned unique ID for this managed resource.
    csrContent string
    (String) The certificate request data.
    id string
    The provider-assigned unique ID for this managed resource.
    csr_content str
    (String) The certificate request data.
    id str
    The provider-assigned unique ID for this managed resource.
    csrContent String
    (String) The certificate request data.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CertificateSigningRequest Resource

    Get an existing CertificateSigningRequest 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?: CertificateSigningRequestState, opts?: CustomResourceOptions): CertificateSigningRequest
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            certificate_signing_request_id: Optional[str] = None,
            city: Optional[str] = None,
            country: Optional[str] = None,
            csr_content: Optional[str] = None,
            domain: Optional[str] = None,
            email: Optional[str] = None,
            organization: Optional[str] = None,
            organization_unit: Optional[str] = None,
            site_id: Optional[str] = None,
            state: Optional[str] = None) -> CertificateSigningRequest
    func GetCertificateSigningRequest(ctx *Context, name string, id IDInput, state *CertificateSigningRequestState, opts ...ResourceOption) (*CertificateSigningRequest, error)
    public static CertificateSigningRequest Get(string name, Input<string> id, CertificateSigningRequestState? state, CustomResourceOptions? opts = null)
    public static CertificateSigningRequest get(String name, Output<String> id, CertificateSigningRequestState state, CustomResourceOptions options)
    resources:  _:    type: incapsula:CertificateSigningRequest    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:
    CertificateSigningRequestId string
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    City string
    The city where your organization is located.
    Country string
    The two-letter ISO code for the country where your organization is located.
    CsrContent string
    (String) The certificate request data.
    Domain string
    The common name. For example: example.com
    Email string
    The Email address. For example: joe@example.com
    Organization string
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    OrganizationUnit string
    The division of your organization handling the certificate. For example, IT Department.
    SiteId string
    Numeric identifier of the site to operate on.
    State string
    The state/region where your organization is located. This should not be abbreviated.
    CertificateSigningRequestId string
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    City string
    The city where your organization is located.
    Country string
    The two-letter ISO code for the country where your organization is located.
    CsrContent string
    (String) The certificate request data.
    Domain string
    The common name. For example: example.com
    Email string
    The Email address. For example: joe@example.com
    Organization string
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    OrganizationUnit string
    The division of your organization handling the certificate. For example, IT Department.
    SiteId string
    Numeric identifier of the site to operate on.
    State string
    The state/region where your organization is located. This should not be abbreviated.
    certificateSigningRequestId String
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    city String
    The city where your organization is located.
    country String
    The two-letter ISO code for the country where your organization is located.
    csrContent String
    (String) The certificate request data.
    domain String
    The common name. For example: example.com
    email String
    The Email address. For example: joe@example.com
    organization String
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    organizationUnit String
    The division of your organization handling the certificate. For example, IT Department.
    siteId String
    Numeric identifier of the site to operate on.
    state String
    The state/region where your organization is located. This should not be abbreviated.
    certificateSigningRequestId string
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    city string
    The city where your organization is located.
    country string
    The two-letter ISO code for the country where your organization is located.
    csrContent string
    (String) The certificate request data.
    domain string
    The common name. For example: example.com
    email string
    The Email address. For example: joe@example.com
    organization string
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    organizationUnit string
    The division of your organization handling the certificate. For example, IT Department.
    siteId string
    Numeric identifier of the site to operate on.
    state string
    The state/region where your organization is located. This should not be abbreviated.
    certificate_signing_request_id str
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    city str
    The city where your organization is located.
    country str
    The two-letter ISO code for the country where your organization is located.
    csr_content str
    (String) The certificate request data.
    domain str
    The common name. For example: example.com
    email str
    The Email address. For example: joe@example.com
    organization str
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    organization_unit str
    The division of your organization handling the certificate. For example, IT Department.
    site_id str
    Numeric identifier of the site to operate on.
    state str
    The state/region where your organization is located. This should not be abbreviated.
    certificateSigningRequestId String
    (String) At the moment, only one active certificate can be stored. This exported value is always set to site_id.
    city String
    The city where your organization is located.
    country String
    The two-letter ISO code for the country where your organization is located.
    csrContent String
    (String) The certificate request data.
    domain String
    The common name. For example: example.com
    email String
    The Email address. For example: joe@example.com
    organization String
    The legal name of your organization. This should not be abbreviated or include suffixes such as Inc., Corp., or LLC.
    organizationUnit String
    The division of your organization handling the certificate. For example, IT Department.
    siteId String
    Numeric identifier of the site to operate on.
    state String
    The state/region where your organization is located. This should not be abbreviated.

    Package Details

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