Creating an Ingress Domain Name Suffix
Function
Create an ingress domain name suffix.
URI
POST /v1/{project_id}/cae/ingress-configs
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. See Obtaining a Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token.
|
X-Enterprise-Project-ID |
No |
String |
Enterprise project ID.
NOTE:
For details about how to obtain enterprise project IDs and enterprise project features, see Enterprise Management User Guide.
|
X-Environment-ID |
Yes |
String |
Environment ID.
|
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
api_version |
Yes |
String |
API version. Fixed value: v1. |
kind |
Yes |
String |
API type. Fixed value: IngressConfig. |
spec |
Yes |
spec object |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
id |
No |
String |
Domain name suffix ID. This parameter is mandatory for modifying the domain name suffix. |
domain_name |
Yes |
String |
Domain name suffix, starting with *. |
tls_cert_id |
No |
String |
Domain name certificate ID. This parameter is mandatory when a self-owned domain name certificate is used. |
redirect |
No |
Boolean |
Whether to redirect. When HTTP is used for access, HTTPS is automatically redirected. The default value is false. If no domain name certificate is selected, false must be transferred. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
api_version |
String |
API version. |
kind |
String |
API kind. |
spec |
spec object |
Example Requests
Create an ingress domain name suffix.
POST https://{endpoint}/v1/{project_id}/cae/ingress-configs { "api_version" : "v1", "kind" : "IngressConfig", "spec" : { "domain_name" : "*.test.com", "tls_cert_id" : "2743d600-e2a6-7c4e-ca0d-0ab571653be6", "redirect" : false } }
Example Responses
Status code: 200
OK
{ "api_version" : "v1", "kind" : "IngressConfig", "spec" : { "id" : "74d858ef-c924-41cf-a1a9-19f63139e5d7", "domain_name" : "*.test.com", "tls_cert_id" : "2743d600-e2a6-7c4e-ca0d-0ab571653be6", "redirect" : false, "created_at" : "2025-01-01T01:01:01.100000Z", "updated_at" : "2025-01-01T01:01:01.100000Z" } }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot