AnsweredAssumed Answered

PAPI cannot create a new edge hostname for SHARED_CERT

Question asked by Scott Mullins on Feb 9, 2018
Latest reply on Feb 27, 2018 by Jeff Brown

When will it be possible to use PAPI to create a new edge hostname that is for "shared certificates"?

 

This is using the httpie akamai plugin.

 

http  -v --pretty format PUT :/papi/v1/properties/<property ID>/versions/1/hostnames contractId==<contract ID> groupId==<group ID>  < edgehostname_ztest_setproperty.json
PUT /papi/v1/properties/prp_434166/versions/1/hostnames?contractId=<contract ID>&groupId=<group ID> HTTP/1.1
Accept: application/json, */*
Accept-Encoding: gzip, deflate
Authorization:
Connection: keep-alive
Content-Length: 256
Content-Type: application/json
Host:
User-Agent: HTTPie/0.9.9

 

[
    {
        "cnameFrom": "ztestupgrade-comcastorigin-thumbnail.akamaized.net",
        "cnameTo": "ztestupgrade-comcastorigin-thumbnail.akamaized.net",
        "cnameType": "SHARED_CERT",
        "edgeHostnameId": 2807845
    }
]

 

HTTP/1.1 501 Not Implemented
Connection: close
Content-Encoding: gzip
Content-Language: en
Content-Length: 353
Content-Type: application/problem+json
Date: Fri, 26 Jan 2018 20:11:21 GMT
Server: Apache-Coyote/1.1
Vary: Accept-Encoding

 

{
    "detail": "We only support cnameType==`EDGE_HOSTNAME`, but you provided `SHARED_CERT` for [0]/cnameType.",
    "instance": "https://akab-hlmx5x2dt4zq7fci-xe6fumklam7qqjf2.luna.akamaiapis.net/papi/v1/properties/<property ID>/versions/1/hostnames?contractId=<contract ID>&groupId=<group ID>#d8980d8c-fb48-4703-869f-9e19543c816b",
    "status": 501,
    "title": "Unsupported `cnameType`",
    "type": "https://problems.luna.akamaiapis.net/papi/v0/property-version-hostname/unsupported-cnametype"
}

Outcomes