servercore_iam_saml_federation_certificate_v1
Manages SAML Federation Certificates for Servercore products using public API v1. Servercore products support Identity and Access Management (IAM). For more information about Federation Certificates, see the official Servercore documentation.
Example Usage
resource "servercore_iam_saml_federation_certificate_v1" "certificate" {
federation_id = servercore_iam_saml_federation_v1.federation_1.id
name = "certificate name"
description = "simple description"
data = file("${path.module}/federation_cert.crt")
}
Argument Reference
-
federation_id
— (Required) Unique identifier of the federation. -
name
— (Required) Certificate name. -
description
— (Optional) Certificate description. -
data
— (Required) Certificate data. Must begin with-----BEGIN CERTIFICATE-----
and end with-----END CERTIFICATE-----
.
Attributes Reference
-
account_id
— Servercore account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration. -
not_before
— Issue date of the certificate. -
not_after
— Expiration date of the certificate. -
fingerprint
— Fingerprint of the certificate.
Import
You can import a certificate:
export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=<username>
export OS_PASSWORD=<password>
export OS_SAML_FEDERATION_ID=<federation_id>
terraform import servercore_iam_saml_federation_certificate_v1.certificate_1 <certificate_id>
where:
-
<account_id>
— Servercore account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration. -
<username>
— Name of the service user. To get the name, in the Control panel, go to Identity & Access Management ⟶ User management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service Users. -
<password>
— Password of the service user. -
<federtaion_id>
— Unique identifier of the associated federation, for which the certificate is issued, for example,abc1bb378ac84e1234b869b77aadd2ab
. To get the federation ID, use Control Panel. -
<certificate_id>
— Unique identifier of the certificate.