Certificate

class oci.waas.models.Certificate(**kwargs)

Bases: object

The details of the SSL certificate. Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a Certificate. This constant has a value of "ACTIVE"

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a Certificate. This constant has a value of "CREATING"

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a Certificate. This constant has a value of "DELETED"

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a Certificate. This constant has a value of "DELETING"

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a Certificate. This constant has a value of "FAILED"

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a Certificate. This constant has a value of "UPDATING"

__init__(**kwargs)

Initializes a new Certificate object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) -- The value to assign to the id property of this Certificate.
  • compartment_id (str) -- The value to assign to the compartment_id property of this Certificate.
  • display_name (str) -- The value to assign to the display_name property of this Certificate.
  • issued_by (str) -- The value to assign to the issued_by property of this Certificate.
  • subject_name (CertificateSubjectName) -- The value to assign to the subject_name property of this Certificate.
  • issuer_name (CertificateIssuerName) -- The value to assign to the issuer_name property of this Certificate.
  • serial_number (str) -- The value to assign to the serial_number property of this Certificate.
  • version (int) -- The value to assign to the version property of this Certificate.
  • signature_algorithm (str) -- The value to assign to the signature_algorithm property of this Certificate.
  • time_not_valid_before (datetime) -- The value to assign to the time_not_valid_before property of this Certificate.
  • time_not_valid_after (datetime) -- The value to assign to the time_not_valid_after property of this Certificate.
  • public_key_info (CertificatePublicKeyInfo) -- The value to assign to the public_key_info property of this Certificate.
  • extensions (list[CertificateExtensions]) -- The value to assign to the extensions property of this Certificate.
  • freeform_tags (dict(str, str)) -- The value to assign to the freeform_tags property of this Certificate.
  • defined_tags (dict(str, dict(str, object))) -- The value to assign to the defined_tags property of this Certificate.
  • lifecycle_state (str) -- The value to assign to the lifecycle_state property of this Certificate. Allowed values for this property are: "CREATING", "ACTIVE", "FAILED", "UPDATING", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • time_created (datetime) -- The value to assign to the time_created property of this Certificate.
compartment_id

[Required] Gets the compartment_id of this Certificate. The OCID of the certificate's compartment.

Returns:The compartment_id of this Certificate.
Return type:str
defined_tags

Gets the defined_tags of this Certificate. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {"Operations": {"CostCenter": "42"}}

Returns:The defined_tags of this Certificate.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this Certificate. The user-friendly name of the certificate.

Returns:The display_name of this Certificate.
Return type:str
extensions

Gets the extensions of this Certificate. Additional attributes associated with users or public keys for managing relationships between Certificate Authorities.

Returns:The extensions of this Certificate.
Return type:list[CertificateExtensions]
freeform_tags

Gets the freeform_tags of this Certificate. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {"Department": "Finance"}

Returns:The freeform_tags of this Certificate.
Return type:dict(str, str)
id

[Required] Gets the id of this Certificate. The OCID of the certificate.

Returns:The id of this Certificate.
Return type:str
issued_by

Gets the issued_by of this Certificate.

Returns:The issued_by of this Certificate.
Return type:str
issuer_name

Gets the issuer_name of this Certificate.

Returns:The issuer_name of this Certificate.
Return type:CertificateIssuerName
lifecycle_state

Gets the lifecycle_state of this Certificate. The current lifecycle state of the SSL certificate.

Allowed values for this property are: "CREATING", "ACTIVE", "FAILED", "UPDATING", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The lifecycle_state of this Certificate.
Return type:str
public_key_info

Gets the public_key_info of this Certificate.

Returns:The public_key_info of this Certificate.
Return type:CertificatePublicKeyInfo
serial_number

[Required] Gets the serial_number of this Certificate. A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate.

Returns:The serial_number of this Certificate.
Return type:str
signature_algorithm

[Required] Gets the signature_algorithm of this Certificate. The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate.

Returns:The signature_algorithm of this Certificate.
Return type:str
subject_name

Gets the subject_name of this Certificate.

Returns:The subject_name of this Certificate.
Return type:CertificateSubjectName
time_created

Gets the time_created of this Certificate. The date and time the certificate was created, expressed in RFC 3339 timestamp format.

Returns:The time_created of this Certificate.
Return type:datetime
time_not_valid_after

[Required] Gets the time_not_valid_after of this Certificate. The date and time the certificate will expire, expressed in RFC 3339 timestamp format.

Returns:The time_not_valid_after of this Certificate.
Return type:datetime
time_not_valid_before

[Required] Gets the time_not_valid_before of this Certificate. The date and time the certificate will become valid, expressed in RFC 3339 timestamp format.

Returns:The time_not_valid_before of this Certificate.
Return type:datetime
version

[Required] Gets the version of this Certificate. The version of the encoded certificate.

Returns:The version of this Certificate.
Return type:int