Download OpenAPI specification:Download
API Gateway is an application that acts as a "front door" for backend services and APIs, handling client requests and routing them to the appropriate backend.
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.
offset | integer <int32> >= 0 Default: 0 The first element (of the total list of elements) to include in the response. Use together with limit for pagination. |
limit | integer <int32> [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with offset for pagination. |
orderBy | string Default: "-createdDate" Enum: "-createdDate" "-lastModifiedDate" "-name" "name" "createdDate" "lastModifiedDate" The field to order the results by. If not provided, the results will be ordered by the default field. |
{- "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"
}
]
}
}
], - "offset": 0,
- "limit": 42,
- "_links": {
}
}
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.
Gateway to create.
object Metadata | |
required | object (Gateway) An API gateway consists of the generic rules and configurations of an API Gateway. |
{- "metadata": { },
- "properties": {
- "name": "APIGateway-1",
- "logs": false,
- "metrics": false,
- "customDomains": [
- {
- "name": "api.example.com",
- "certificateId": "5a029f4a-72e5-11ec-90d6-0242ac120003"
}
]
}
}
{- "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"
}
]
}
}
Returns the Gateway by ID.
apigatewayId required | string <uuid> Example: 0620c174-dd3c-5eb4-87c8-e2b516553a00 The ID (UUID) of the Gateway. |
{- "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"
}
]
}
}
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.
apigatewayId required | string <uuid> Example: 0620c174-dd3c-5eb4-87c8-e2b516553a00 The ID (UUID) of the Gateway. |
update Gateway
id required | string <uuid> The ID (UUID) of the Gateway. |
object Metadata | |
required | object (Gateway) An API gateway consists of the generic rules and configurations of an API Gateway. |
{- "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"
}
]
}
}
{- "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"
}
]
}
}
Deletes the specified Gateway.
apigatewayId required | string <uuid> Example: 0620c174-dd3c-5eb4-87c8-e2b516553a00 The ID (UUID) of the Gateway. |
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "err-1234",
- "message": "Error message example"
}
]
}
A route is a rule that maps an incoming request to a specific backend service.
This tag groups all operations for routes.
This endpoint enables retrieving all Routes using pagination and optional filters.
apigatewayId required | string <uuid> Example: 0620c174-dd3c-5eb4-87c8-e2b516553a00 The ID (UUID) of the Gateway. |
offset | integer <int32> >= 0 Default: 0 The first element (of the total list of elements) to include in the response. Use together with limit for pagination. |
limit | integer <int32> [ 1 .. 1000 ] Default: 100 Example: limit=100 The maximum number of elements to return. Use together with offset for pagination. |
orderBy | string Default: "-createdDate" Enum: "-createdDate" "-lastModifiedDate" "-name" "name" "createdDate" "lastModifiedDate" The field to order the results by. If not provided, the results will be ordered by the default field. |
{- "id": "38ec142f-7b7b-5707-83ba-4db7f8286cfb",
- "type": "collection",
- "href": "/gateways/{apigatewayId}/routes",
- "items": [
- {
- "id": "50982018-bb17-5cb9-bcd4-97f8bbc7dc23",
- "type": "route",
- "href": "/gateways/{apigatewayId}/routes/50982018-bb17-5cb9-bcd4-97f8bbc7dc23",
- "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": "example-route",
- "type": "http",
- "paths": [
- "/foo/*",
- "/bar"
], - "methods": [
- "GET",
- "POST"
], - "websocket": false,
- "upstreams": [
- {
- "scheme": "http",
- "loadbalancer": "roundrobin",
- "host": "www.example.com",
- "port": 80,
- "weight": 100
}
]
}
}
], - "offset": 0,
- "limit": 42,
- "_links": {
}
}
Creates a new Route.
The full Route needs to be provided to create the object. Optional data will be filled with defaults or left empty.
apigatewayId required | string <uuid> Example: 0620c174-dd3c-5eb4-87c8-e2b516553a00 The ID (UUID) of the Gateway. |
Route to create.
object Metadata | |
required | object (Route) A route is a rule that maps an incoming request to a specific backend service. |
{- "metadata": { },
- "properties": {
- "name": "example-route",
- "type": "http",
- "paths": [
- "/foo/*",
- "/bar"
], - "methods": [
- "GET",
- "POST"
], - "websocket": false,
- "upstreams": [
- {
- "scheme": "http",
- "loadbalancer": "roundrobin",
- "host": "www.example.com",
- "port": 80,
- "weight": 100
}
]
}
}
{- "id": "50982018-bb17-5cb9-bcd4-97f8bbc7dc23",
- "type": "route",
- "href": "/gateways/{apigatewayId}/routes/50982018-bb17-5cb9-bcd4-97f8bbc7dc23",
- "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": "example-route",
- "type": "http",
- "paths": [
- "/foo/*",
- "/bar"
], - "methods": [
- "GET",
- "POST"
], - "websocket": false,
- "upstreams": [
- {
- "scheme": "http",
- "loadbalancer": "roundrobin",
- "host": "www.example.com",
- "port": 80,
- "weight": 100
}
]
}
}
Returns the Route by ID.
apigatewayId required | string <uuid> Example: 0620c174-dd3c-5eb4-87c8-e2b516553a00 The ID (UUID) of the Gateway. |
routeId required | string <uuid> Example: 50982018-bb17-5cb9-bcd4-97f8bbc7dc23 The ID (UUID) of the Route. |
{- "id": "50982018-bb17-5cb9-bcd4-97f8bbc7dc23",
- "type": "route",
- "href": "/gateways/{apigatewayId}/routes/50982018-bb17-5cb9-bcd4-97f8bbc7dc23",
- "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": "example-route",
- "type": "http",
- "paths": [
- "/foo/*",
- "/bar"
], - "methods": [
- "GET",
- "POST"
], - "websocket": false,
- "upstreams": [
- {
- "scheme": "http",
- "loadbalancer": "roundrobin",
- "host": "www.example.com",
- "port": 80,
- "weight": 100
}
]
}
}
Ensures that the Route with the provided ID is created or modified. The full Route needs to be provided to ensure (either update or create) the Route. Non present data will only be filled with defaults or left empty, but not take previous values into consideration.
apigatewayId required | string <uuid> Example: 0620c174-dd3c-5eb4-87c8-e2b516553a00 The ID (UUID) of the Gateway. |
routeId required | string <uuid> Example: 50982018-bb17-5cb9-bcd4-97f8bbc7dc23 The ID (UUID) of the Route. |
update Route
id required | string <uuid> The ID (UUID) of the Route. |
object Metadata | |
required | object (Route) A route is a rule that maps an incoming request to a specific backend service. |
{- "id": "50982018-bb17-5cb9-bcd4-97f8bbc7dc23",
- "metadata": { },
- "properties": {
- "name": "example-route",
- "type": "http",
- "paths": [
- "/foo/*",
- "/bar"
], - "methods": [
- "GET",
- "POST"
], - "websocket": false,
- "upstreams": [
- {
- "scheme": "http",
- "loadbalancer": "roundrobin",
- "host": "www.example.com",
- "port": 80,
- "weight": 100
}
]
}
}
{- "id": "50982018-bb17-5cb9-bcd4-97f8bbc7dc23",
- "type": "route",
- "href": "/gateways/{apigatewayId}/routes/50982018-bb17-5cb9-bcd4-97f8bbc7dc23",
- "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": "example-route",
- "type": "http",
- "paths": [
- "/foo/*",
- "/bar"
], - "methods": [
- "GET",
- "POST"
], - "websocket": false,
- "upstreams": [
- {
- "scheme": "http",
- "loadbalancer": "roundrobin",
- "host": "www.example.com",
- "port": 80,
- "weight": 100
}
]
}
}
Deletes the specified Route.
apigatewayId required | string <uuid> Example: 0620c174-dd3c-5eb4-87c8-e2b516553a00 The ID (UUID) of the Gateway. |
routeId required | string <uuid> Example: 50982018-bb17-5cb9-bcd4-97f8bbc7dc23 The ID (UUID) of the Route. |
{- "httpStatus": 400,
- "messages": [
- {
- "errorCode": "err-1234",
- "message": "Error message example"
}
]
}