1. Packages
  2. Ibm Provider
  3. API Docs
  4. CisOriginCertificateOrder
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.CisOriginCertificateOrder

Explore with Pulumi AI

Provides an IBM Cloud Internet Services origin certificate order resource. This resource is associated with an IBM Cloud Internet Services instance and a CIS domain resource. It allows you to order and delete dedicated advanced certificates of a domain of a CIS instance. For more information about CIS certificate orderering, see managing origin certificates.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const test = new ibm.CisOriginCertificateOrder("test", {
    cisId: data.ibm_cis.cis.id,
    domainId: data.ibm_cis_domain.cis_domain.domain_id,
    hostnames: ["example.com"],
    requestType: "origin-rsa",
    requestedValidity: 5475,
    csr: `-----BEGIN CERTIFICATE REQUEST-----
MIICxzCC***TA67sdbcQ==
-----END CERTIFICATE REQUEST-----`,
});
Copy
import pulumi
import pulumi_ibm as ibm

test = ibm.CisOriginCertificateOrder("test",
    cis_id=data["ibm_cis"]["cis"]["id"],
    domain_id=data["ibm_cis_domain"]["cis_domain"]["domain_id"],
    hostnames=["example.com"],
    request_type="origin-rsa",
    requested_validity=5475,
    csr="""-----BEGIN CERTIFICATE REQUEST-----
MIICxzCC***TA67sdbcQ==
-----END CERTIFICATE REQUEST-----""")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.NewCisOriginCertificateOrder(ctx, "test", &ibm.CisOriginCertificateOrderArgs{
			CisId:    pulumi.Any(data.Ibm_cis.Cis.Id),
			DomainId: pulumi.Any(data.Ibm_cis_domain.Cis_domain.Domain_id),
			Hostnames: pulumi.StringArray{
				pulumi.String("example.com"),
			},
			RequestType:       pulumi.String("origin-rsa"),
			RequestedValidity: pulumi.Float64(5475),
			Csr:               pulumi.String("-----BEGIN CERTIFICATE REQUEST-----\nMIICxzCC***TA67sdbcQ==\n-----END CERTIFICATE REQUEST-----"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var test = new Ibm.CisOriginCertificateOrder("test", new()
    {
        CisId = data.Ibm_cis.Cis.Id,
        DomainId = data.Ibm_cis_domain.Cis_domain.Domain_id,
        Hostnames = new[]
        {
            "example.com",
        },
        RequestType = "origin-rsa",
        RequestedValidity = 5475,
        Csr = @"-----BEGIN CERTIFICATE REQUEST-----
MIICxzCC***TA67sdbcQ==
-----END CERTIFICATE REQUEST-----",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.CisOriginCertificateOrder;
import com.pulumi.ibm.CisOriginCertificateOrderArgs;
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 = new CisOriginCertificateOrder("test", CisOriginCertificateOrderArgs.builder()
            .cisId(data.ibm_cis().cis().id())
            .domainId(data.ibm_cis_domain().cis_domain().domain_id())
            .hostnames("example.com")
            .requestType("origin-rsa")
            .requestedValidity(5475)
            .csr("""
-----BEGIN CERTIFICATE REQUEST-----
MIICxzCC***TA67sdbcQ==
-----END CERTIFICATE REQUEST-----            """)
            .build());

    }
}
Copy
resources:
  test:
    type: ibm:CisOriginCertificateOrder
    properties:
      cisId: ${data.ibm_cis.cis.id}
      domainId: ${data.ibm_cis_domain.cis_domain.domain_id}
      hostnames:
        - example.com
      requestType: origin-rsa
      requestedValidity: 5475
      csr: |-
        -----BEGIN CERTIFICATE REQUEST-----
        MIICxzCC***TA67sdbcQ==
        -----END CERTIFICATE REQUEST-----        
Copy

Create CisOriginCertificateOrder Resource

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

Constructor syntax

new CisOriginCertificateOrder(name: string, args: CisOriginCertificateOrderArgs, opts?: CustomResourceOptions);
@overload
def CisOriginCertificateOrder(resource_name: str,
                              args: CisOriginCertificateOrderArgs,
                              opts: Optional[ResourceOptions] = None)

@overload
def CisOriginCertificateOrder(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              cis_id: Optional[str] = None,
                              csr: Optional[str] = None,
                              domain_id: Optional[str] = None,
                              hostnames: Optional[Sequence[str]] = None,
                              request_type: Optional[str] = None,
                              requested_validity: Optional[float] = None,
                              cis_origin_certificate_order_id: Optional[str] = None)
func NewCisOriginCertificateOrder(ctx *Context, name string, args CisOriginCertificateOrderArgs, opts ...ResourceOption) (*CisOriginCertificateOrder, error)
public CisOriginCertificateOrder(string name, CisOriginCertificateOrderArgs args, CustomResourceOptions? opts = null)
public CisOriginCertificateOrder(String name, CisOriginCertificateOrderArgs args)
public CisOriginCertificateOrder(String name, CisOriginCertificateOrderArgs args, CustomResourceOptions options)
type: ibm:CisOriginCertificateOrder
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CisOriginCertificateOrderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CisOriginCertificateOrderArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CisOriginCertificateOrderArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CisOriginCertificateOrderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CisOriginCertificateOrderArgs
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 cisOriginCertificateOrderResource = new Ibm.CisOriginCertificateOrder("cisOriginCertificateOrderResource", new()
{
    CisId = "string",
    Csr = "string",
    DomainId = "string",
    Hostnames = new[]
    {
        "string",
    },
    RequestType = "string",
    RequestedValidity = 0,
    CisOriginCertificateOrderId = "string",
});
Copy
example, err := ibm.NewCisOriginCertificateOrder(ctx, "cisOriginCertificateOrderResource", &ibm.CisOriginCertificateOrderArgs{
	CisId:    pulumi.String("string"),
	Csr:      pulumi.String("string"),
	DomainId: pulumi.String("string"),
	Hostnames: pulumi.StringArray{
		pulumi.String("string"),
	},
	RequestType:                 pulumi.String("string"),
	RequestedValidity:           pulumi.Float64(0),
	CisOriginCertificateOrderId: pulumi.String("string"),
})
Copy
var cisOriginCertificateOrderResource = new CisOriginCertificateOrder("cisOriginCertificateOrderResource", CisOriginCertificateOrderArgs.builder()
    .cisId("string")
    .csr("string")
    .domainId("string")
    .hostnames("string")
    .requestType("string")
    .requestedValidity(0)
    .cisOriginCertificateOrderId("string")
    .build());
Copy
cis_origin_certificate_order_resource = ibm.CisOriginCertificateOrder("cisOriginCertificateOrderResource",
    cis_id="string",
    csr="string",
    domain_id="string",
    hostnames=["string"],
    request_type="string",
    requested_validity=0,
    cis_origin_certificate_order_id="string")
Copy
const cisOriginCertificateOrderResource = new ibm.CisOriginCertificateOrder("cisOriginCertificateOrderResource", {
    cisId: "string",
    csr: "string",
    domainId: "string",
    hostnames: ["string"],
    requestType: "string",
    requestedValidity: 0,
    cisOriginCertificateOrderId: "string",
});
Copy
type: ibm:CisOriginCertificateOrder
properties:
    cisId: string
    cisOriginCertificateOrderId: string
    csr: string
    domainId: string
    hostnames:
        - string
    requestType: string
    requestedValidity: 0
Copy

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

CisId This property is required. string
The ID of the IBM Cloud Internet Services instance.
Csr This property is required. string
The Certificate Signing Request.
DomainId This property is required. string
The ID of the domain.
Hostnames This property is required. List<string>
Hosts for which certificates need to be ordered
RequestType This property is required. string
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
RequestedValidity This property is required. double
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.
CisOriginCertificateOrderId string
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.
CisId This property is required. string
The ID of the IBM Cloud Internet Services instance.
Csr This property is required. string
The Certificate Signing Request.
DomainId This property is required. string
The ID of the domain.
Hostnames This property is required. []string
Hosts for which certificates need to be ordered
RequestType This property is required. string
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
RequestedValidity This property is required. float64
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.
CisOriginCertificateOrderId string
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.
cisId This property is required. String
The ID of the IBM Cloud Internet Services instance.
csr This property is required. String
The Certificate Signing Request.
domainId This property is required. String
The ID of the domain.
hostnames This property is required. List<String>
Hosts for which certificates need to be ordered
requestType This property is required. String
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
requestedValidity This property is required. Double
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.
cisOriginCertificateOrderId String
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.
cisId This property is required. string
The ID of the IBM Cloud Internet Services instance.
csr This property is required. string
The Certificate Signing Request.
domainId This property is required. string
The ID of the domain.
hostnames This property is required. string[]
Hosts for which certificates need to be ordered
requestType This property is required. string
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
requestedValidity This property is required. number
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.
cisOriginCertificateOrderId string
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.
cis_id This property is required. str
The ID of the IBM Cloud Internet Services instance.
csr This property is required. str
The Certificate Signing Request.
domain_id This property is required. str
The ID of the domain.
hostnames This property is required. Sequence[str]
Hosts for which certificates need to be ordered
request_type This property is required. str
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
requested_validity This property is required. float
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.
cis_origin_certificate_order_id str
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.
cisId This property is required. String
The ID of the IBM Cloud Internet Services instance.
csr This property is required. String
The Certificate Signing Request.
domainId This property is required. String
The ID of the domain.
hostnames This property is required. List<String>
Hosts for which certificates need to be ordered
requestType This property is required. String
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
requestedValidity This property is required. Number
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.
cisOriginCertificateOrderId String
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.

Outputs

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

Certificate string
Certificate
CertificateId string
(String) The certificate ID.
ExpiresOn string
Expiration date of the certificate
Id string
The provider-assigned unique ID for this managed resource.
PrivateKey string
Certificate private key
Certificate string
Certificate
CertificateId string
(String) The certificate ID.
ExpiresOn string
Expiration date of the certificate
Id string
The provider-assigned unique ID for this managed resource.
PrivateKey string
Certificate private key
certificate String
Certificate
certificateId String
(String) The certificate ID.
expiresOn String
Expiration date of the certificate
id String
The provider-assigned unique ID for this managed resource.
privateKey String
Certificate private key
certificate string
Certificate
certificateId string
(String) The certificate ID.
expiresOn string
Expiration date of the certificate
id string
The provider-assigned unique ID for this managed resource.
privateKey string
Certificate private key
certificate str
Certificate
certificate_id str
(String) The certificate ID.
expires_on str
Expiration date of the certificate
id str
The provider-assigned unique ID for this managed resource.
private_key str
Certificate private key
certificate String
Certificate
certificateId String
(String) The certificate ID.
expiresOn String
Expiration date of the certificate
id String
The provider-assigned unique ID for this managed resource.
privateKey String
Certificate private key

Look up Existing CisOriginCertificateOrder Resource

Get an existing CisOriginCertificateOrder 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?: CisOriginCertificateOrderState, opts?: CustomResourceOptions): CisOriginCertificateOrder
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        certificate: Optional[str] = None,
        certificate_id: Optional[str] = None,
        cis_id: Optional[str] = None,
        cis_origin_certificate_order_id: Optional[str] = None,
        csr: Optional[str] = None,
        domain_id: Optional[str] = None,
        expires_on: Optional[str] = None,
        hostnames: Optional[Sequence[str]] = None,
        private_key: Optional[str] = None,
        request_type: Optional[str] = None,
        requested_validity: Optional[float] = None) -> CisOriginCertificateOrder
func GetCisOriginCertificateOrder(ctx *Context, name string, id IDInput, state *CisOriginCertificateOrderState, opts ...ResourceOption) (*CisOriginCertificateOrder, error)
public static CisOriginCertificateOrder Get(string name, Input<string> id, CisOriginCertificateOrderState? state, CustomResourceOptions? opts = null)
public static CisOriginCertificateOrder get(String name, Output<String> id, CisOriginCertificateOrderState state, CustomResourceOptions options)
resources:  _:    type: ibm:CisOriginCertificateOrder    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Certificate string
Certificate
CertificateId string
(String) The certificate ID.
CisId string
The ID of the IBM Cloud Internet Services instance.
CisOriginCertificateOrderId string
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.
Csr string
The Certificate Signing Request.
DomainId string
The ID of the domain.
ExpiresOn string
Expiration date of the certificate
Hostnames List<string>
Hosts for which certificates need to be ordered
PrivateKey string
Certificate private key
RequestType string
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
RequestedValidity double
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.
Certificate string
Certificate
CertificateId string
(String) The certificate ID.
CisId string
The ID of the IBM Cloud Internet Services instance.
CisOriginCertificateOrderId string
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.
Csr string
The Certificate Signing Request.
DomainId string
The ID of the domain.
ExpiresOn string
Expiration date of the certificate
Hostnames []string
Hosts for which certificates need to be ordered
PrivateKey string
Certificate private key
RequestType string
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
RequestedValidity float64
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.
certificate String
Certificate
certificateId String
(String) The certificate ID.
cisId String
The ID of the IBM Cloud Internet Services instance.
cisOriginCertificateOrderId String
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.
csr String
The Certificate Signing Request.
domainId String
The ID of the domain.
expiresOn String
Expiration date of the certificate
hostnames List<String>
Hosts for which certificates need to be ordered
privateKey String
Certificate private key
requestType String
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
requestedValidity Double
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.
certificate string
Certificate
certificateId string
(String) The certificate ID.
cisId string
The ID of the IBM Cloud Internet Services instance.
cisOriginCertificateOrderId string
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.
csr string
The Certificate Signing Request.
domainId string
The ID of the domain.
expiresOn string
Expiration date of the certificate
hostnames string[]
Hosts for which certificates need to be ordered
privateKey string
Certificate private key
requestType string
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
requestedValidity number
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.
certificate str
Certificate
certificate_id str
(String) The certificate ID.
cis_id str
The ID of the IBM Cloud Internet Services instance.
cis_origin_certificate_order_id str
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.
csr str
The Certificate Signing Request.
domain_id str
The ID of the domain.
expires_on str
Expiration date of the certificate
hostnames Sequence[str]
Hosts for which certificates need to be ordered
private_key str
Certificate private key
request_type str
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
requested_validity float
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.
certificate String
Certificate
certificateId String
(String) The certificate ID.
cisId String
The ID of the IBM Cloud Internet Services instance.
cisOriginCertificateOrderId String
(String) The record ID, which is a combination of <certificate_id>,<domain_id>,<cis_id> attributes concatenated with :.
csr String
The Certificate Signing Request.
domainId String
The ID of the domain.
expiresOn String
Expiration date of the certificate
hostnames List<String>
Hosts for which certificates need to be ordered
privateKey String
Certificate private key
requestType String
The type of the certificate. Allowed values are origin-rsa, origin-ecc and keyless-certificate.
requestedValidity Number
Validty days for the order. Allowed values are 7, 30, 90, 365, 730, 1095, 5475.

Import

Example

terraform

$ pulumi import ibm:index/cisOriginCertificateOrder:CisOriginCertificateOrder test certificate_order 484582976896327736468082847548136290560450732393:9caf68812ae9b3f0377fdf986751a78f:crn:v1:bluemix:public:internet-svcs:global:a/4ea1882a2d3401ed1e459979941966ea:31fa970d-51d0-4b05-893e-251cba75a7b3::
Copy

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

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.