ibm.CisCertificateOrder
Explore with Pulumi AI
Provides an IBM Cloud Internet Services certificate order resource. This resource is associated with an IBM Cloud Internet Services instance and a CIS domain resource. It allows to order and delete dedicated certificates of a domain of a CIS instance. For more information about CIS certificate order, see managing origin certificates.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const test = new ibm.CisCertificateOrder("test", {
cisId: data.ibm_cis.cis.id,
domainId: data.ibm_cis_domain.cis_domain.domain_id,
hosts: ["example.com"],
});
import pulumi
import pulumi_ibm as ibm
test = ibm.CisCertificateOrder("test",
cis_id=data["ibm_cis"]["cis"]["id"],
domain_id=data["ibm_cis_domain"]["cis_domain"]["domain_id"],
hosts=["example.com"])
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.NewCisCertificateOrder(ctx, "test", &ibm.CisCertificateOrderArgs{
CisId: pulumi.Any(data.Ibm_cis.Cis.Id),
DomainId: pulumi.Any(data.Ibm_cis_domain.Cis_domain.Domain_id),
Hosts: pulumi.StringArray{
pulumi.String("example.com"),
},
})
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.CisCertificateOrder("test", new()
{
CisId = data.Ibm_cis.Cis.Id,
DomainId = data.Ibm_cis_domain.Cis_domain.Domain_id,
Hosts = new[]
{
"example.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.CisCertificateOrder;
import com.pulumi.ibm.CisCertificateOrderArgs;
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 CisCertificateOrder("test", CisCertificateOrderArgs.builder()
.cisId(data.ibm_cis().cis().id())
.domainId(data.ibm_cis_domain().cis_domain().domain_id())
.hosts("example.com")
.build());
}
}
resources:
test:
type: ibm:CisCertificateOrder
properties:
cisId: ${data.ibm_cis.cis.id}
domainId: ${data.ibm_cis_domain.cis_domain.domain_id}
hosts:
- example.com
Create CisCertificateOrder Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CisCertificateOrder(name: string, args: CisCertificateOrderArgs, opts?: CustomResourceOptions);
@overload
def CisCertificateOrder(resource_name: str,
args: CisCertificateOrderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CisCertificateOrder(resource_name: str,
opts: Optional[ResourceOptions] = None,
cis_id: Optional[str] = None,
domain_id: Optional[str] = None,
hosts: Optional[Sequence[str]] = None,
cis_certificate_order_id: Optional[str] = None,
type: Optional[str] = None)
func NewCisCertificateOrder(ctx *Context, name string, args CisCertificateOrderArgs, opts ...ResourceOption) (*CisCertificateOrder, error)
public CisCertificateOrder(string name, CisCertificateOrderArgs args, CustomResourceOptions? opts = null)
public CisCertificateOrder(String name, CisCertificateOrderArgs args)
public CisCertificateOrder(String name, CisCertificateOrderArgs args, CustomResourceOptions options)
type: ibm:CisCertificateOrder
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 CisCertificateOrderArgs
- 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 CisCertificateOrderArgs
- 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 CisCertificateOrderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CisCertificateOrderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CisCertificateOrderArgs
- 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 cisCertificateOrderResource = new Ibm.CisCertificateOrder("cisCertificateOrderResource", new()
{
CisId = "string",
DomainId = "string",
Hosts = new[]
{
"string",
},
CisCertificateOrderId = "string",
Type = "string",
});
example, err := ibm.NewCisCertificateOrder(ctx, "cisCertificateOrderResource", &ibm.CisCertificateOrderArgs{
CisId: pulumi.String("string"),
DomainId: pulumi.String("string"),
Hosts: pulumi.StringArray{
pulumi.String("string"),
},
CisCertificateOrderId: pulumi.String("string"),
Type: pulumi.String("string"),
})
var cisCertificateOrderResource = new CisCertificateOrder("cisCertificateOrderResource", CisCertificateOrderArgs.builder()
.cisId("string")
.domainId("string")
.hosts("string")
.cisCertificateOrderId("string")
.type("string")
.build());
cis_certificate_order_resource = ibm.CisCertificateOrder("cisCertificateOrderResource",
cis_id="string",
domain_id="string",
hosts=["string"],
cis_certificate_order_id="string",
type="string")
const cisCertificateOrderResource = new ibm.CisCertificateOrder("cisCertificateOrderResource", {
cisId: "string",
domainId: "string",
hosts: ["string"],
cisCertificateOrderId: "string",
type: "string",
});
type: ibm:CisCertificateOrder
properties:
cisCertificateOrderId: string
cisId: string
domainId: string
hosts:
- string
type: string
CisCertificateOrder 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 CisCertificateOrder resource accepts the following input properties:
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Domain
Id string - The ID of the domain.
- Hosts List<string>
- The hosts for the certificates to be ordered.
- Cis
Certificate stringOrder Id - (String) The record ID. It is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
. - Type string
- certificate type
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Domain
Id string - The ID of the domain.
- Hosts []string
- The hosts for the certificates to be ordered.
- Cis
Certificate stringOrder Id - (String) The record ID. It is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
. - Type string
- certificate type
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- domain
Id String - The ID of the domain.
- hosts List<String>
- The hosts for the certificates to be ordered.
- cis
Certificate StringOrder Id - (String) The record ID. It is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
. - type String
- certificate type
- cis
Id string - The ID of the IBM Cloud Internet Services instance.
- domain
Id string - The ID of the domain.
- hosts string[]
- The hosts for the certificates to be ordered.
- cis
Certificate stringOrder Id - (String) The record ID. It is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
. - type string
- certificate type
- cis_
id str - The ID of the IBM Cloud Internet Services instance.
- domain_
id str - The ID of the domain.
- hosts Sequence[str]
- The hosts for the certificates to be ordered.
- cis_
certificate_ strorder_ id - (String) The record ID. It is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
. - type str
- certificate type
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- domain
Id String - The ID of the domain.
- hosts List<String>
- The hosts for the certificates to be ordered.
- cis
Certificate StringOrder Id - (String) The record ID. It is a combination of
<certificate_id>,<domain_id>,<cis_id>
attributes concatenated with:
. - type String
- certificate type
Outputs
All input properties are implicitly available as output properties. Additionally, the CisCertificateOrder resource produces the following output properties:
- Certificate
Id string - (String) The certificate ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- (String) The certificate status.
- Certificate
Id string - (String) The certificate ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- (String) The certificate status.
- certificate
Id String - (String) The certificate ID.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- (String) The certificate status.
- certificate
Id string - (String) The certificate ID.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- (String) The certificate status.
- certificate_
id str - (String) The certificate ID.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- (String) The certificate status.
- certificate
Id String - (String) The certificate ID.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- (String) The certificate status.
Look up Existing CisCertificateOrder Resource
Get an existing CisCertificateOrder 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?: CisCertificateOrderState, opts?: CustomResourceOptions): CisCertificateOrder
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None,
cis_certificate_order_id: Optional[str] = None,
cis_id: Optional[str] = None,
domain_id: Optional[str] = None,
hosts: Optional[Sequence[str]] = None,
status: Optional[str] = None,
type: Optional[str] = None) -> CisCertificateOrder
func GetCisCertificateOrder(ctx *Context, name string, id IDInput, state *CisCertificateOrderState, opts ...ResourceOption) (*CisCertificateOrder, error)
public static CisCertificateOrder Get(string name, Input<string> id, CisCertificateOrderState? state, CustomResourceOptions? opts = null)
public static CisCertificateOrder get(String name, Output<String> id, CisCertificateOrderState state, CustomResourceOptions options)
resources: _: type: ibm:CisCertificateOrder 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
Id string - (String) The certificate ID.
- Cis
Certificate stringOrder Id - (String) The record ID. It 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.
- Domain
Id string - The ID of the domain.
- Hosts List<string>
- The hosts for the certificates to be ordered.
- Status string
- (String) The certificate status.
- Type string
- certificate type
- Certificate
Id string - (String) The certificate ID.
- Cis
Certificate stringOrder Id - (String) The record ID. It 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.
- Domain
Id string - The ID of the domain.
- Hosts []string
- The hosts for the certificates to be ordered.
- Status string
- (String) The certificate status.
- Type string
- certificate type
- certificate
Id String - (String) The certificate ID.
- cis
Certificate StringOrder Id - (String) The record ID. It 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.
- domain
Id String - The ID of the domain.
- hosts List<String>
- The hosts for the certificates to be ordered.
- status String
- (String) The certificate status.
- type String
- certificate type
- certificate
Id string - (String) The certificate ID.
- cis
Certificate stringOrder Id - (String) The record ID. It 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.
- domain
Id string - The ID of the domain.
- hosts string[]
- The hosts for the certificates to be ordered.
- status string
- (String) The certificate status.
- type string
- certificate type
- certificate_
id str - (String) The certificate ID.
- cis_
certificate_ strorder_ id - (String) The record ID. It 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.
- domain_
id str - The ID of the domain.
- hosts Sequence[str]
- The hosts for the certificates to be ordered.
- status str
- (String) The certificate status.
- type str
- certificate type
- certificate
Id String - (String) The certificate ID.
- cis
Certificate StringOrder Id - (String) The record ID. It 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.
- domain
Id String - The ID of the domain.
- hosts List<String>
- The hosts for the certificates to be ordered.
- status String
- (String) The certificate status.
- type String
- certificate type
Import
The ibm_cis_certificate_order
resource can be imported using the ID. The ID is formed from the certificate ID, the domain ID of the domain and the CRN Concatenated by using a :
character.
The domain ID and CRN is located on the Overview page of the IBM Cloud Internet Services instance of the console domain heading, or by using the ibmcloud cis
command line commands.
Domain ID is a 32 digit character string of the form:
9caf68812ae9b3f0377fdf986751a78f
CRN is a 120 digit character string of the form:
crn:v1:bluemix:public:internet-svcs:global:a/4ea1882a2d3401ed1e459979941966ea:31fa970d-51d0-4b05-893e-251cba75a7b3::
Certificate ID is a 32 digit character string of the form:
489d96f0da6ed76251b475971b097205c
.
Syntax
$ pulumi import ibm:index/cisCertificateOrder:CisCertificateOrder myorg <certificate_id>:<domain-id>:<crn>
Example
$ pulumi import ibm:index/cisCertificateOrder:CisCertificateOrder myorg certificate_order 48996f0da6ed76251b475971b097205c: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.