curl --request POST \
--url https://api.ravion.com/acm-certificates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"awsAccountId": "<string>",
"awsRegion": "<string>",
"domains": [
"<string>"
],
"moduleInstanceId": "<string>",
"name": "<string>",
"targetArn": "<string>",
"targetDnsName": "<string>",
"targetZoneId": "<string>",
"wildcard": true
}
'import requests
url = "https://api.ravion.com/acm-certificates"
payload = {
"awsAccountId": "<string>",
"awsRegion": "<string>",
"domains": ["<string>"],
"moduleInstanceId": "<string>",
"name": "<string>",
"targetArn": "<string>",
"targetDnsName": "<string>",
"targetZoneId": "<string>",
"wildcard": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
awsAccountId: '<string>',
awsRegion: '<string>',
domains: ['<string>'],
moduleInstanceId: '<string>',
name: '<string>',
targetArn: '<string>',
targetDnsName: '<string>',
targetZoneId: '<string>',
wildcard: true
})
};
fetch('https://api.ravion.com/acm-certificates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ravion.com/acm-certificates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'awsAccountId' => '<string>',
'awsRegion' => '<string>',
'domains' => [
'<string>'
],
'moduleInstanceId' => '<string>',
'name' => '<string>',
'targetArn' => '<string>',
'targetDnsName' => '<string>',
'targetZoneId' => '<string>',
'wildcard' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ravion.com/acm-certificates"
payload := strings.NewReader("{\n \"awsAccountId\": \"<string>\",\n \"awsRegion\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"moduleInstanceId\": \"<string>\",\n \"name\": \"<string>\",\n \"targetArn\": \"<string>\",\n \"targetDnsName\": \"<string>\",\n \"targetZoneId\": \"<string>\",\n \"wildcard\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ravion.com/acm-certificates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"awsAccountId\": \"<string>\",\n \"awsRegion\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"moduleInstanceId\": \"<string>\",\n \"name\": \"<string>\",\n \"targetArn\": \"<string>\",\n \"targetDnsName\": \"<string>\",\n \"targetZoneId\": \"<string>\",\n \"wildcard\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ravion.com/acm-certificates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"awsAccountId\": \"<string>\",\n \"awsRegion\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"moduleInstanceId\": \"<string>\",\n \"name\": \"<string>\",\n \"targetArn\": \"<string>\",\n \"targetDnsName\": \"<string>\",\n \"targetZoneId\": \"<string>\",\n \"wildcard\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"awsAccountId": "<string>",
"awsRegion": "<string>",
"domainNames": [
"<string>"
],
"id": "<string>",
"moduleInstanceId": "<string>",
"status": "<string>",
"validationRecords": [
{
"name": "<string>",
"ownership": "<string>",
"type": "<string>",
"value": "<string>"
}
],
"arn": "<string>",
"domainName": "<string>",
"name": "<string>",
"pendingArn": "<string>",
"targetArn": "<string>",
"targetDnsName": "<string>",
"targetZoneId": "<string>",
"wildcard": true
}
}{
"code": "<string>",
"message": "<string>",
"action": {
"label": "<string>",
"url": "<string>"
},
"description": "<string>",
"details": [
{
"render": "<string>",
"title": "<string>",
"items": [
"<string>"
],
"object": {}
}
],
"isInternal": true,
"metadata": {},
"requestId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"action": {
"label": "<string>",
"url": "<string>"
},
"description": "<string>",
"details": [
{
"render": "<string>",
"title": "<string>",
"items": [
"<string>"
],
"object": {}
}
],
"isInternal": true,
"metadata": {},
"requestId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"action": {
"label": "<string>",
"url": "<string>"
},
"description": "<string>",
"details": [
{
"render": "<string>",
"title": "<string>",
"items": [
"<string>"
],
"object": {}
}
],
"isInternal": true,
"metadata": {},
"requestId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"action": {
"label": "<string>",
"url": "<string>"
},
"description": "<string>",
"details": [
{
"render": "<string>",
"title": "<string>",
"items": [
"<string>"
],
"object": {}
}
],
"isInternal": true,
"metadata": {},
"requestId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"action": {
"label": "<string>",
"url": "<string>"
},
"description": "<string>",
"details": [
{
"render": "<string>",
"title": "<string>",
"items": [
"<string>"
],
"object": {}
}
],
"isInternal": true,
"metadata": {},
"requestId": "<string>"
}Create AcmCertificate
Provision a managed certificate and begin issuance. The returned id is stable across future rotations. POST /acm-certificates in the Ravion API reference.
curl --request POST \
--url https://api.ravion.com/acm-certificates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"awsAccountId": "<string>",
"awsRegion": "<string>",
"domains": [
"<string>"
],
"moduleInstanceId": "<string>",
"name": "<string>",
"targetArn": "<string>",
"targetDnsName": "<string>",
"targetZoneId": "<string>",
"wildcard": true
}
'import requests
url = "https://api.ravion.com/acm-certificates"
payload = {
"awsAccountId": "<string>",
"awsRegion": "<string>",
"domains": ["<string>"],
"moduleInstanceId": "<string>",
"name": "<string>",
"targetArn": "<string>",
"targetDnsName": "<string>",
"targetZoneId": "<string>",
"wildcard": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
awsAccountId: '<string>',
awsRegion: '<string>',
domains: ['<string>'],
moduleInstanceId: '<string>',
name: '<string>',
targetArn: '<string>',
targetDnsName: '<string>',
targetZoneId: '<string>',
wildcard: true
})
};
fetch('https://api.ravion.com/acm-certificates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ravion.com/acm-certificates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'awsAccountId' => '<string>',
'awsRegion' => '<string>',
'domains' => [
'<string>'
],
'moduleInstanceId' => '<string>',
'name' => '<string>',
'targetArn' => '<string>',
'targetDnsName' => '<string>',
'targetZoneId' => '<string>',
'wildcard' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ravion.com/acm-certificates"
payload := strings.NewReader("{\n \"awsAccountId\": \"<string>\",\n \"awsRegion\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"moduleInstanceId\": \"<string>\",\n \"name\": \"<string>\",\n \"targetArn\": \"<string>\",\n \"targetDnsName\": \"<string>\",\n \"targetZoneId\": \"<string>\",\n \"wildcard\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ravion.com/acm-certificates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"awsAccountId\": \"<string>\",\n \"awsRegion\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"moduleInstanceId\": \"<string>\",\n \"name\": \"<string>\",\n \"targetArn\": \"<string>\",\n \"targetDnsName\": \"<string>\",\n \"targetZoneId\": \"<string>\",\n \"wildcard\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ravion.com/acm-certificates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"awsAccountId\": \"<string>\",\n \"awsRegion\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"moduleInstanceId\": \"<string>\",\n \"name\": \"<string>\",\n \"targetArn\": \"<string>\",\n \"targetDnsName\": \"<string>\",\n \"targetZoneId\": \"<string>\",\n \"wildcard\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"awsAccountId": "<string>",
"awsRegion": "<string>",
"domainNames": [
"<string>"
],
"id": "<string>",
"moduleInstanceId": "<string>",
"status": "<string>",
"validationRecords": [
{
"name": "<string>",
"ownership": "<string>",
"type": "<string>",
"value": "<string>"
}
],
"arn": "<string>",
"domainName": "<string>",
"name": "<string>",
"pendingArn": "<string>",
"targetArn": "<string>",
"targetDnsName": "<string>",
"targetZoneId": "<string>",
"wildcard": true
}
}{
"code": "<string>",
"message": "<string>",
"action": {
"label": "<string>",
"url": "<string>"
},
"description": "<string>",
"details": [
{
"render": "<string>",
"title": "<string>",
"items": [
"<string>"
],
"object": {}
}
],
"isInternal": true,
"metadata": {},
"requestId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"action": {
"label": "<string>",
"url": "<string>"
},
"description": "<string>",
"details": [
{
"render": "<string>",
"title": "<string>",
"items": [
"<string>"
],
"object": {}
}
],
"isInternal": true,
"metadata": {},
"requestId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"action": {
"label": "<string>",
"url": "<string>"
},
"description": "<string>",
"details": [
{
"render": "<string>",
"title": "<string>",
"items": [
"<string>"
],
"object": {}
}
],
"isInternal": true,
"metadata": {},
"requestId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"action": {
"label": "<string>",
"url": "<string>"
},
"description": "<string>",
"details": [
{
"render": "<string>",
"title": "<string>",
"items": [
"<string>"
],
"object": {}
}
],
"isInternal": true,
"metadata": {},
"requestId": "<string>"
}{
"code": "<string>",
"message": "<string>",
"action": {
"label": "<string>",
"url": "<string>"
},
"description": "<string>",
"details": [
{
"render": "<string>",
"title": "<string>",
"items": [
"<string>"
],
"object": {}
}
],
"isInternal": true,
"metadata": {},
"requestId": "<string>"
}Body
Inputs to provision a managed certificate.
Id of the Ravion AWS account (aws_*) to issue the certificate against.
AWS region to issue the certificate in.
How the certificate will be used (see CertRole).
shared_wildcard, instance The fully-qualified domain names the certificate should cover (for the instance role). Maximum 10.
Id of the module instance this certificate belongs to. Optional for a runner call (the instance is derived from the run); required for a service-account API key. Must belong to your organization.
Leaf name for a shared_wildcard certificate; the resulting apex is <name>.<apex>.
ARN of the resource to attach the certificate to. Leave empty for a shared default certificate the listener references directly.
For a shared_wildcard certificate, the DNS name *.<apex> should route to (typically the load balancer's DNS name). When set, Ravion publishes the *.<apex> record.
For a shared_wildcard certificate, the hosted zone id of the routing target.
Whether the certificate should cover a wildcard (*.<apex>).
Response
The request has succeeded and a new resource has been created as a result.
The full state of a managed certificate.
Show child attributes
Show child attributes
Was this page helpful?