Create Certificate Domain Group
API Description
Full Endpoint URL: https://api.flightcontrol.dev/v1/services/{serviceId}/domain-certificate-groups
Method | Path |
---|---|
POST | /v1/services/{serviceId}/domain-certificate-groups |
Headers | |
---|---|
Authorization | Bearer [API key] |
Path Parameters
Parameter | Type | Description |
---|---|---|
serviceId | string | The service unique CUID. Can be found in Flightcontrol’s dashboard. |
Request
Body | |||
---|---|---|---|
Parameter | Required | Type | Description |
name | Yes if useDefaultCloudfront = false | string | The name of the domain group. Not applicable to the default cloudfront group. |
domains | Yes | string[] | List of domains to be included in the group. |
useDefaultCloudfront | No | boolean | Whether to use the default CloudFront from the service. Setting to false creates a new CloudFront distribution. |
Example:
Using default cloudfront:
{
"domains": ["app.example.com", "www.example.com"],
"useDefaultCloudfront": true
}
Creating a new cloudfront:
{
"name": "New Domain Group",
"domains": ["app.example.com", "www.example.com"],
"useDefaultCloudfront": false
}
Response Example
{
"id": "cm7lm3g0h0002127peb5n54k0",
"name": "New Domain Group",
"status": "DRAFT",
"isDefaultCertificateGroup": false,
"cloudfrontDistributionId": null,
"certificate": null
}