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-----`,
});
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-----""")
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
})
}
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-----",
});
});
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());
}
}
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-----
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 string
- The unique name of the resource.
- args CisOriginCertificateOrderArgs
- 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 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 string
- The unique name of the resource.
- args CisOriginCertificateOrderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CisOriginCertificateOrderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var cisOriginCertificateOrderResource = new CisOriginCertificateOrder("cisOriginCertificateOrderResource", CisOriginCertificateOrderArgs.builder()
.cisId("string")
.csr("string")
.domainId("string")
.hostnames("string")
.requestType("string")
.requestedValidity(0)
.cisOriginCertificateOrderId("string")
.build());
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")
const cisOriginCertificateOrderResource = new ibm.CisOriginCertificateOrder("cisOriginCertificateOrderResource", {
cisId: "string",
csr: "string",
domainId: "string",
hostnames: ["string"],
requestType: "string",
requestedValidity: 0,
cisOriginCertificateOrderId: "string",
});
type: ibm:CisOriginCertificateOrder
properties:
cisId: string
cisOriginCertificateOrderId: string
csr: string
domainId: string
hostnames:
- string
requestType: string
requestedValidity: 0
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:
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Csr string
- The Certificate Signing Request.
- Domain
Id string - The ID of the domain.
- Hostnames List<string>
- Hosts for which certificates need to be ordered
- Request
Type string - The type of the certificate. Allowed values are
origin-rsa
,origin-ecc
andkeyless-certificate
. - Requested
Validity double - Validty days for the order. Allowed values are
7
,30
,90
,365
,730
,1095
,5475
. - Cis
Origin stringCertificate Order Id - (String) The record ID, which is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
.
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Csr string
- The Certificate Signing Request.
- Domain
Id string - The ID of the domain.
- Hostnames []string
- Hosts for which certificates need to be ordered
- Request
Type string - The type of the certificate. Allowed values are
origin-rsa
,origin-ecc
andkeyless-certificate
. - Requested
Validity float64 - Validty days for the order. Allowed values are
7
,30
,90
,365
,730
,1095
,5475
. - Cis
Origin stringCertificate Order Id - (String) The record ID, which is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
.
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- csr String
- The Certificate Signing Request.
- domain
Id String - The ID of the domain.
- hostnames List<String>
- Hosts for which certificates need to be ordered
- request
Type String - The type of the certificate. Allowed values are
origin-rsa
,origin-ecc
andkeyless-certificate
. - requested
Validity Double - Validty days for the order. Allowed values are
7
,30
,90
,365
,730
,1095
,5475
. - cis
Origin StringCertificate Order Id - (String) The record ID, which is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
.
- cis
Id string - The ID of the IBM Cloud Internet Services instance.
- csr string
- The Certificate Signing Request.
- domain
Id string - The ID of the domain.
- hostnames string[]
- Hosts for which certificates need to be ordered
- request
Type string - The type of the certificate. Allowed values are
origin-rsa
,origin-ecc
andkeyless-certificate
. - requested
Validity number - Validty days for the order. Allowed values are
7
,30
,90
,365
,730
,1095
,5475
. - cis
Origin stringCertificate Order Id - (String) The record ID, which is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
.
- cis_
id str - The ID of the IBM Cloud Internet Services instance.
- csr str
- The Certificate Signing Request.
- domain_
id str - The ID of the domain.
- hostnames Sequence[str]
- Hosts for which certificates need to be ordered
- request_
type str - The type of the certificate. Allowed values are
origin-rsa
,origin-ecc
andkeyless-certificate
. - requested_
validity float - Validty days for the order. Allowed values are
7
,30
,90
,365
,730
,1095
,5475
. - cis_
origin_ strcertificate_ order_ id - (String) The record ID, which is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
.
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- csr String
- The Certificate Signing Request.
- domain
Id String - The ID of the domain.
- hostnames List<String>
- Hosts for which certificates need to be ordered
- request
Type String - The type of the certificate. Allowed values are
origin-rsa
,origin-ecc
andkeyless-certificate
. - requested
Validity Number - Validty days for the order. Allowed values are
7
,30
,90
,365
,730
,1095
,5475
. - cis
Origin StringCertificate Order Id - (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
- Certificate
Id string - (String) The certificate ID.
- Expires
On string - Expiration date of the certificate
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Key string - Certificate private key
- Certificate string
- Certificate
- Certificate
Id string - (String) The certificate ID.
- Expires
On string - Expiration date of the certificate
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Key string - Certificate private key
- certificate String
- Certificate
- certificate
Id String - (String) The certificate ID.
- expires
On String - Expiration date of the certificate
- id String
- The provider-assigned unique ID for this managed resource.
- private
Key String - Certificate private key
- certificate string
- Certificate
- certificate
Id string - (String) The certificate ID.
- expires
On string - Expiration date of the certificate
- id string
- The provider-assigned unique ID for this managed resource.
- private
Key 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
- certificate
Id String - (String) The certificate ID.
- expires
On String - Expiration date of the certificate
- id String
- The provider-assigned unique ID for this managed resource.
- private
Key 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
- 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.
- Certificate string
- Certificate
- Certificate
Id string - (String) The certificate ID.
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Cis
Origin stringCertificate Order Id - (String) The record ID, which is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
. - Csr string
- The Certificate Signing Request.
- Domain
Id string - The ID of the domain.
- Expires
On string - Expiration date of the certificate
- Hostnames List<string>
- Hosts for which certificates need to be ordered
- Private
Key string - Certificate private key
- Request
Type string - The type of the certificate. Allowed values are
origin-rsa
,origin-ecc
andkeyless-certificate
. - Requested
Validity double - Validty days for the order. Allowed values are
7
,30
,90
,365
,730
,1095
,5475
.
- Certificate string
- Certificate
- Certificate
Id string - (String) The certificate ID.
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Cis
Origin stringCertificate Order Id - (String) The record ID, which is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
. - Csr string
- The Certificate Signing Request.
- Domain
Id string - The ID of the domain.
- Expires
On string - Expiration date of the certificate
- Hostnames []string
- Hosts for which certificates need to be ordered
- Private
Key string - Certificate private key
- Request
Type string - The type of the certificate. Allowed values are
origin-rsa
,origin-ecc
andkeyless-certificate
. - Requested
Validity float64 - Validty days for the order. Allowed values are
7
,30
,90
,365
,730
,1095
,5475
.
- certificate String
- Certificate
- certificate
Id String - (String) The certificate ID.
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- cis
Origin StringCertificate Order Id - (String) The record ID, which is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
. - csr String
- The Certificate Signing Request.
- domain
Id String - The ID of the domain.
- expires
On String - Expiration date of the certificate
- hostnames List<String>
- Hosts for which certificates need to be ordered
- private
Key String - Certificate private key
- request
Type String - The type of the certificate. Allowed values are
origin-rsa
,origin-ecc
andkeyless-certificate
. - requested
Validity Double - Validty days for the order. Allowed values are
7
,30
,90
,365
,730
,1095
,5475
.
- certificate string
- Certificate
- certificate
Id string - (String) The certificate ID.
- cis
Id string - The ID of the IBM Cloud Internet Services instance.
- cis
Origin stringCertificate Order Id - (String) The record ID, which is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
. - csr string
- The Certificate Signing Request.
- domain
Id string - The ID of the domain.
- expires
On string - Expiration date of the certificate
- hostnames string[]
- Hosts for which certificates need to be ordered
- private
Key string - Certificate private key
- request
Type string - The type of the certificate. Allowed values are
origin-rsa
,origin-ecc
andkeyless-certificate
. - requested
Validity 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_ strcertificate_ order_ id - (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
andkeyless-certificate
. - requested_
validity float - Validty days for the order. Allowed values are
7
,30
,90
,365
,730
,1095
,5475
.
- certificate String
- Certificate
- certificate
Id String - (String) The certificate ID.
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- cis
Origin StringCertificate Order Id - (String) The record ID, which is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
. - csr String
- The Certificate Signing Request.
- domain
Id String - The ID of the domain.
- expires
On String - Expiration date of the certificate
- hostnames List<String>
- Hosts for which certificates need to be ordered
- private
Key String - Certificate private key
- request
Type String - The type of the certificate. Allowed values are
origin-rsa
,origin-ecc
andkeyless-certificate
. - requested
Validity 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::
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.