APIGateways
An API gateway consists of the generic rules and configurations of an API Gateway.
This tag groups all operations for apigateways.
This endpoint enables retrieving all APIGateways using pagination and optional filters.
The first element (of the total list of elements) to include in the response. Use together with limit for pagination.
0
Example: 0
The maximum number of elements to return. Use together with offset for pagination.
100
Example: 100
The field to order the results by. If not provided, the results will be ordered by the default field.
-createdDate
Possible values: GET /gateways HTTP/1.1
Host: apigateway.de-txl.ionos.com
Authorization: Bearer JWT
Accept: */*
{
"id": "274004e3-6f41-5468-862f-64a7b3445c18",
"type": "collection",
"href": "/gateways",
"items": [
{
"id": "0620c174-dd3c-5eb4-87c8-e2b516553a00",
"type": "gateway",
"href": "/gateways/0620c174-dd3c-5eb4-87c8-e2b516553a00",
"metadata": {
"createdDate": "2020-12-10T13:37:50+01:00",
"createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedDate": "2020-12-11T13:37:50+01:00",
"lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
"status": "AVAILABLE",
"statusMessage": null,
"publicEndpoint": "jf8u4tgr73sd-ag.87uhr654gq90.apigateway.de-txl.ionos.com"
},
"properties": {
"name": "APIGateway-1",
"logs": false,
"metrics": false,
"customDomains": [
{
"name": "api.example.com",
"certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003"
}
],
"cache": {
"enable": true,
"httpMethods": [
"GET"
],
"httpCodes": [
200
],
"override": false
}
}
}
],
"offset": 0,
"limit": 42,
"_links": {
"prev": "http://PREVIOUS-PAGE-URI",
"self": "http://THIS-PAGE-URI",
"next": "http://NEXT-PAGE-URI"
}
}
Creates a new Gateway.
The full Gateway needs to be provided to create the object. Optional data will be filled with defaults or left empty.
Metadata
POST /gateways HTTP/1.1
Host: apigateway.de-txl.ionos.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 262
{
"metadata": {},
"properties": {
"name": "APIGateway-1",
"logs": false,
"metrics": false,
"customDomains": [
{
"name": "api.example.com",
"certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003"
}
],
"cache": {
"enable": true,
"httpMethods": [
"GET"
],
"httpCodes": [
200
],
"override": false
}
}
}
{
"id": "0620c174-dd3c-5eb4-87c8-e2b516553a00",
"type": "gateway",
"href": "/gateways/0620c174-dd3c-5eb4-87c8-e2b516553a00",
"metadata": {
"createdDate": "2020-12-10T13:37:50+01:00",
"createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedDate": "2020-12-11T13:37:50+01:00",
"lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
"status": "AVAILABLE",
"statusMessage": null,
"publicEndpoint": "jf8u4tgr73sd-ag.87uhr654gq90.apigateway.de-txl.ionos.com"
},
"properties": {
"name": "APIGateway-1",
"logs": false,
"metrics": false,
"customDomains": [
{
"name": "api.example.com",
"certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003"
}
],
"cache": {
"enable": true,
"httpMethods": [
"GET"
],
"httpCodes": [
200
],
"override": false
}
}
}
Returns the Gateway by ID.
The ID (UUID) of the Gateway.
0620c174-dd3c-5eb4-87c8-e2b516553a00
GET /gateways/{apigatewayId} HTTP/1.1
Host: apigateway.de-txl.ionos.com
Authorization: Bearer JWT
Accept: */*
{
"id": "0620c174-dd3c-5eb4-87c8-e2b516553a00",
"type": "gateway",
"href": "/gateways/0620c174-dd3c-5eb4-87c8-e2b516553a00",
"metadata": {
"createdDate": "2020-12-10T13:37:50+01:00",
"createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedDate": "2020-12-11T13:37:50+01:00",
"lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
"status": "AVAILABLE",
"statusMessage": null,
"publicEndpoint": "jf8u4tgr73sd-ag.87uhr654gq90.apigateway.de-txl.ionos.com"
},
"properties": {
"name": "APIGateway-1",
"logs": false,
"metrics": false,
"customDomains": [
{
"name": "api.example.com",
"certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003"
}
],
"cache": {
"enable": true,
"httpMethods": [
"GET"
],
"httpCodes": [
200
],
"override": false
}
}
}
Ensures that the Gateway with the provided ID is created or modified. The full Gateway needs to be provided to ensure (either update or create) the Gateway. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.
The ID (UUID) of the Gateway.
0620c174-dd3c-5eb4-87c8-e2b516553a00
The ID (UUID) of the Gateway.
0620c174-dd3c-5eb4-87c8-e2b516553a00
Metadata
PUT /gateways/{apigatewayId} HTTP/1.1
Host: apigateway.de-txl.ionos.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 306
{
"id": "0620c174-dd3c-5eb4-87c8-e2b516553a00",
"metadata": {},
"properties": {
"name": "APIGateway-1",
"logs": false,
"metrics": false,
"customDomains": [
{
"name": "api.example.com",
"certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003"
}
],
"cache": {
"enable": true,
"httpMethods": [
"GET"
],
"httpCodes": [
200
],
"override": false
}
}
}
{
"id": "0620c174-dd3c-5eb4-87c8-e2b516553a00",
"type": "gateway",
"href": "/gateways/0620c174-dd3c-5eb4-87c8-e2b516553a00",
"metadata": {
"createdDate": "2020-12-10T13:37:50+01:00",
"createdBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedDate": "2020-12-11T13:37:50+01:00",
"lastModifiedBy": "ionos:identity:::users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"resourceURN": "ionos:<product>:<location>:<contract>:<resource-path>",
"status": "AVAILABLE",
"statusMessage": null,
"publicEndpoint": "jf8u4tgr73sd-ag.87uhr654gq90.apigateway.de-txl.ionos.com"
},
"properties": {
"name": "APIGateway-1",
"logs": false,
"metrics": false,
"customDomains": [
{
"name": "api.example.com",
"certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003"
}
],
"cache": {
"enable": true,
"httpMethods": [
"GET"
],
"httpCodes": [
200
],
"override": false
}
}
}
Deletes the specified Gateway.
The ID (UUID) of the Gateway.
0620c174-dd3c-5eb4-87c8-e2b516553a00
DELETE /gateways/{apigatewayId} HTTP/1.1
Host: apigateway.de-txl.ionos.com
Authorization: Bearer JWT
Accept: */*
No content
Was this helpful?