ibm.CisCertificateUpload
Explore with Pulumi AI
Provides an IBM Cloud Internet Services certificate upload resource. This resource is associated with an IBM Cloud Internet Services instance and a CIS domain resource. It allows to upload, update, and delete certificates of a domain of a CIS instance. For more information about CIS certificate upload, see Installing an origin certificate on your server.
Create CisCertificateUpload Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CisCertificateUpload(name: string, args: CisCertificateUploadArgs, opts?: CustomResourceOptions);
@overload
def CisCertificateUpload(resource_name: str,
args: CisCertificateUploadArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CisCertificateUpload(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate: Optional[str] = None,
cis_id: Optional[str] = None,
domain_id: Optional[str] = None,
private_key: Optional[str] = None,
bundle_method: Optional[str] = None,
cis_certificate_upload_id: Optional[str] = None,
priority: Optional[float] = None)
func NewCisCertificateUpload(ctx *Context, name string, args CisCertificateUploadArgs, opts ...ResourceOption) (*CisCertificateUpload, error)
public CisCertificateUpload(string name, CisCertificateUploadArgs args, CustomResourceOptions? opts = null)
public CisCertificateUpload(String name, CisCertificateUploadArgs args)
public CisCertificateUpload(String name, CisCertificateUploadArgs args, CustomResourceOptions options)
type: ibm:CisCertificateUpload
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 CisCertificateUploadArgs
- 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 CisCertificateUploadArgs
- 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 CisCertificateUploadArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CisCertificateUploadArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CisCertificateUploadArgs
- 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 cisCertificateUploadResource = new Ibm.CisCertificateUpload("cisCertificateUploadResource", new()
{
Certificate = "string",
CisId = "string",
DomainId = "string",
PrivateKey = "string",
BundleMethod = "string",
CisCertificateUploadId = "string",
Priority = 0,
});
example, err := ibm.NewCisCertificateUpload(ctx, "cisCertificateUploadResource", &ibm.CisCertificateUploadArgs{
Certificate: pulumi.String("string"),
CisId: pulumi.String("string"),
DomainId: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
BundleMethod: pulumi.String("string"),
CisCertificateUploadId: pulumi.String("string"),
Priority: pulumi.Float64(0),
})
var cisCertificateUploadResource = new CisCertificateUpload("cisCertificateUploadResource", CisCertificateUploadArgs.builder()
.certificate("string")
.cisId("string")
.domainId("string")
.privateKey("string")
.bundleMethod("string")
.cisCertificateUploadId("string")
.priority(0)
.build());
cis_certificate_upload_resource = ibm.CisCertificateUpload("cisCertificateUploadResource",
certificate="string",
cis_id="string",
domain_id="string",
private_key="string",
bundle_method="string",
cis_certificate_upload_id="string",
priority=0)
const cisCertificateUploadResource = new ibm.CisCertificateUpload("cisCertificateUploadResource", {
certificate: "string",
cisId: "string",
domainId: "string",
privateKey: "string",
bundleMethod: "string",
cisCertificateUploadId: "string",
priority: 0,
});
type: ibm:CisCertificateUpload
properties:
bundleMethod: string
certificate: string
cisCertificateUploadId: string
cisId: string
domainId: string
priority: 0
privateKey: string
CisCertificateUpload 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 CisCertificateUpload resource accepts the following input properties:
- Certificate string
- The intermediate(s) certificate key.
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Domain
Id string - The ID of the domain to add the rules certificate upload.
- Private
Key string - The certificate private key.
- Bundle
Method string - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - Cis
Certificate stringUpload Id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - Priority double
- The order or priority in which the certificate is used in a request.
- Certificate string
- The intermediate(s) certificate key.
- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Domain
Id string - The ID of the domain to add the rules certificate upload.
- Private
Key string - The certificate private key.
- Bundle
Method string - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - Cis
Certificate stringUpload Id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - Priority float64
- The order or priority in which the certificate is used in a request.
- certificate String
- The intermediate(s) certificate key.
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- domain
Id String - The ID of the domain to add the rules certificate upload.
- private
Key String - The certificate private key.
- bundle
Method String - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - cis
Certificate StringUpload Id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - priority Double
- The order or priority in which the certificate is used in a request.
- certificate string
- The intermediate(s) certificate key.
- cis
Id string - The ID of the IBM Cloud Internet Services instance.
- domain
Id string - The ID of the domain to add the rules certificate upload.
- private
Key string - The certificate private key.
- bundle
Method string - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - cis
Certificate stringUpload Id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - priority number
- The order or priority in which the certificate is used in a request.
- certificate str
- The intermediate(s) certificate key.
- cis_
id str - The ID of the IBM Cloud Internet Services instance.
- domain_
id str - The ID of the domain to add the rules certificate upload.
- private_
key str - The certificate private key.
- bundle_
method str - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - cis_
certificate_ strupload_ id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - priority float
- The order or priority in which the certificate is used in a request.
- certificate String
- The intermediate(s) certificate key.
- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- domain
Id String - The ID of the domain to add the rules certificate upload.
- private
Key String - The certificate private key.
- bundle
Method String - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - cis
Certificate StringUpload Id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - priority Number
- The order or priority in which the certificate is used in a request.
Outputs
All input properties are implicitly available as output properties. Additionally, the CisCertificateUpload resource produces the following output properties:
- Custom
Cert stringId - (String) The certificate upload rule ID.
- Expires
On string - (Timestamp) The expiry date and time of the certificate.
- Hosts List<string>
- hosts which the certificate uploaded to
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer string
- (String) The certificate issuer.
- Modified
On string - (Timestamp) The modified date and time of the certificate.
- Signature string
- (String) The certificate signature.
- Status string
- (String) The certificate status.
- Uploaded
On string - (Timestamp) The uploaded date and time of the certificate.
- Custom
Cert stringId - (String) The certificate upload rule ID.
- Expires
On string - (Timestamp) The expiry date and time of the certificate.
- Hosts []string
- hosts which the certificate uploaded to
- Id string
- The provider-assigned unique ID for this managed resource.
- Issuer string
- (String) The certificate issuer.
- Modified
On string - (Timestamp) The modified date and time of the certificate.
- Signature string
- (String) The certificate signature.
- Status string
- (String) The certificate status.
- Uploaded
On string - (Timestamp) The uploaded date and time of the certificate.
- custom
Cert StringId - (String) The certificate upload rule ID.
- expires
On String - (Timestamp) The expiry date and time of the certificate.
- hosts List<String>
- hosts which the certificate uploaded to
- id String
- The provider-assigned unique ID for this managed resource.
- issuer String
- (String) The certificate issuer.
- modified
On String - (Timestamp) The modified date and time of the certificate.
- signature String
- (String) The certificate signature.
- status String
- (String) The certificate status.
- uploaded
On String - (Timestamp) The uploaded date and time of the certificate.
- custom
Cert stringId - (String) The certificate upload rule ID.
- expires
On string - (Timestamp) The expiry date and time of the certificate.
- hosts string[]
- hosts which the certificate uploaded to
- id string
- The provider-assigned unique ID for this managed resource.
- issuer string
- (String) The certificate issuer.
- modified
On string - (Timestamp) The modified date and time of the certificate.
- signature string
- (String) The certificate signature.
- status string
- (String) The certificate status.
- uploaded
On string - (Timestamp) The uploaded date and time of the certificate.
- custom_
cert_ strid - (String) The certificate upload rule ID.
- expires_
on str - (Timestamp) The expiry date and time of the certificate.
- hosts Sequence[str]
- hosts which the certificate uploaded to
- id str
- The provider-assigned unique ID for this managed resource.
- issuer str
- (String) The certificate issuer.
- modified_
on str - (Timestamp) The modified date and time of the certificate.
- signature str
- (String) The certificate signature.
- status str
- (String) The certificate status.
- uploaded_
on str - (Timestamp) The uploaded date and time of the certificate.
- custom
Cert StringId - (String) The certificate upload rule ID.
- expires
On String - (Timestamp) The expiry date and time of the certificate.
- hosts List<String>
- hosts which the certificate uploaded to
- id String
- The provider-assigned unique ID for this managed resource.
- issuer String
- (String) The certificate issuer.
- modified
On String - (Timestamp) The modified date and time of the certificate.
- signature String
- (String) The certificate signature.
- status String
- (String) The certificate status.
- uploaded
On String - (Timestamp) The uploaded date and time of the certificate.
Look up Existing CisCertificateUpload Resource
Get an existing CisCertificateUpload 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?: CisCertificateUploadState, opts?: CustomResourceOptions): CisCertificateUpload
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bundle_method: Optional[str] = None,
certificate: Optional[str] = None,
cis_certificate_upload_id: Optional[str] = None,
cis_id: Optional[str] = None,
custom_cert_id: Optional[str] = None,
domain_id: Optional[str] = None,
expires_on: Optional[str] = None,
hosts: Optional[Sequence[str]] = None,
issuer: Optional[str] = None,
modified_on: Optional[str] = None,
priority: Optional[float] = None,
private_key: Optional[str] = None,
signature: Optional[str] = None,
status: Optional[str] = None,
uploaded_on: Optional[str] = None) -> CisCertificateUpload
func GetCisCertificateUpload(ctx *Context, name string, id IDInput, state *CisCertificateUploadState, opts ...ResourceOption) (*CisCertificateUpload, error)
public static CisCertificateUpload Get(string name, Input<string> id, CisCertificateUploadState? state, CustomResourceOptions? opts = null)
public static CisCertificateUpload get(String name, Output<String> id, CisCertificateUploadState state, CustomResourceOptions options)
resources: _: type: ibm:CisCertificateUpload 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.
- Bundle
Method string - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - Certificate string
- The intermediate(s) certificate key.
- Cis
Certificate stringUpload Id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Custom
Cert stringId - (String) The certificate upload rule ID.
- Domain
Id string - The ID of the domain to add the rules certificate upload.
- Expires
On string - (Timestamp) The expiry date and time of the certificate.
- Hosts List<string>
- hosts which the certificate uploaded to
- Issuer string
- (String) The certificate issuer.
- Modified
On string - (Timestamp) The modified date and time of the certificate.
- Priority double
- The order or priority in which the certificate is used in a request.
- Private
Key string - The certificate private key.
- Signature string
- (String) The certificate signature.
- Status string
- (String) The certificate status.
- Uploaded
On string - (Timestamp) The uploaded date and time of the certificate.
- Bundle
Method string - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - Certificate string
- The intermediate(s) certificate key.
- Cis
Certificate stringUpload Id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Custom
Cert stringId - (String) The certificate upload rule ID.
- Domain
Id string - The ID of the domain to add the rules certificate upload.
- Expires
On string - (Timestamp) The expiry date and time of the certificate.
- Hosts []string
- hosts which the certificate uploaded to
- Issuer string
- (String) The certificate issuer.
- Modified
On string - (Timestamp) The modified date and time of the certificate.
- Priority float64
- The order or priority in which the certificate is used in a request.
- Private
Key string - The certificate private key.
- Signature string
- (String) The certificate signature.
- Status string
- (String) The certificate status.
- Uploaded
On string - (Timestamp) The uploaded date and time of the certificate.
- bundle
Method String - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - certificate String
- The intermediate(s) certificate key.
- cis
Certificate StringUpload Id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - cis
Id String - The ID of the IBM Cloud Internet Services instance.
- custom
Cert StringId - (String) The certificate upload rule ID.
- domain
Id String - The ID of the domain to add the rules certificate upload.
- expires
On String - (Timestamp) The expiry date and time of the certificate.
- hosts List<String>
- hosts which the certificate uploaded to
- issuer String
- (String) The certificate issuer.
- modified
On String - (Timestamp) The modified date and time of the certificate.
- priority Double
- The order or priority in which the certificate is used in a request.
- private
Key String - The certificate private key.
- signature String
- (String) The certificate signature.
- status String
- (String) The certificate status.
- uploaded
On String - (Timestamp) The uploaded date and time of the certificate.
- bundle
Method string - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - certificate string
- The intermediate(s) certificate key.
- cis
Certificate stringUpload Id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - cis
Id string - The ID of the IBM Cloud Internet Services instance.
- custom
Cert stringId - (String) The certificate upload rule ID.
- domain
Id string - The ID of the domain to add the rules certificate upload.
- expires
On string - (Timestamp) The expiry date and time of the certificate.
- hosts string[]
- hosts which the certificate uploaded to
- issuer string
- (String) The certificate issuer.
- modified
On string - (Timestamp) The modified date and time of the certificate.
- priority number
- The order or priority in which the certificate is used in a request.
- private
Key string - The certificate private key.
- signature string
- (String) The certificate signature.
- status string
- (String) The certificate status.
- uploaded
On string - (Timestamp) The uploaded date and time of the certificate.
- bundle_
method str - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - certificate str
- The intermediate(s) certificate key.
- cis_
certificate_ strupload_ id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - cis_
id str - The ID of the IBM Cloud Internet Services instance.
- custom_
cert_ strid - (String) The certificate upload rule ID.
- domain_
id str - The ID of the domain to add the rules certificate upload.
- expires_
on str - (Timestamp) The expiry date and time of the certificate.
- hosts Sequence[str]
- hosts which the certificate uploaded to
- issuer str
- (String) The certificate issuer.
- modified_
on str - (Timestamp) The modified date and time of the certificate.
- priority float
- The order or priority in which the certificate is used in a request.
- private_
key str - The certificate private key.
- signature str
- (String) The certificate signature.
- status str
- (String) The certificate status.
- uploaded_
on str - (Timestamp) The uploaded date and time of the certificate.
- bundle
Method String - The certificate bundle method. The valid values are
ubiquitous
,optimal
,force
. - certificate String
- The intermediate(s) certificate key.
- cis
Certificate StringUpload Id - (String) The record ID. It is a combination of
<custom_cert_id>:<domain_id>:<cis_id>
attributes concatenated with:
. - cis
Id String - The ID of the IBM Cloud Internet Services instance.
- custom
Cert StringId - (String) The certificate upload rule ID.
- domain
Id String - The ID of the domain to add the rules certificate upload.
- expires
On String - (Timestamp) The expiry date and time of the certificate.
- hosts List<String>
- hosts which the certificate uploaded to
- issuer String
- (String) The certificate issuer.
- modified
On String - (Timestamp) The modified date and time of the certificate.
- priority Number
- The order or priority in which the certificate is used in a request.
- private
Key String - The certificate private key.
- signature String
- (String) The certificate signature.
- status String
- (String) The certificate status.
- uploaded
On String - (Timestamp) The uploaded date and time of the certificate.
Import
The ibm_cis_certificate_upload
resource can be imported by using the ID. The ID is formed from the certificate upload 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 upload ID is a 32 digit character string of the form:
489d96f0da6ed76251b475971b097205c
.
Syntax
$ pulumi import ibm:index/cisCertificateUpload:CisCertificateUpload ratelimit <custm_cert_id>:<domain-id>:<crn>
Example
$ pulumi import ibm:index/cisCertificateUpload:CisCertificateUpload certificate 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.