Read Statuses of an Event Type

With this method, you can retrieve statuses of the specified event type.

Request

URI: /ES/v2/EventTypes('<event type name>')/Statuses

Operation Type: CRUD

HTTP Method: GET

Permissions: <tde>.r

Request Parameters

Parameter Required Data Type Description
Name Yes String Name of the event type

Request Example

/ES/v2/EventTypes('core.automobiles:ExceededTemperature')/Statuses

Response

Response Status and Error Codes

Code Description
200 Statuses of the specified event type retrieved successfully.

Payload

Format: JSON

Media types supported are JSON and XML. The JSON for this method has the structure as depicted in the following examples.

Example 1

/ES/v2/EventTypes('core.automobiles:ExceededTemperature')/Statuses

Retrieves statuses of the specified event type

{
    "d": {
        "results": [
            {
                "__metadata": {
                    "id": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('Open')",
                    "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('Open')",
                    "type": "com.sap.appiot.es.Status"
                },
                "EventStatus": "Open",
                "LanguageCode": "en",
                "Description": "Open Status",
                "Descriptions": {
                    "__deferred": {
                        "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('Open')/Descriptions"
                    }
                }
            },
            {
                "__metadata": {
                    "id": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('InProcess')",
                    "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('InProcess')",
                    "type": "com.sap.appiot.es.Status"
                },
                "EventStatus": "InProcess",
                "LanguageCode": "en",
                "Description": "In process Status",
                "Descriptions": {
                    "__deferred": {
                        "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('InProcess')/Descriptions"
                    }
                }
            },
            {
                "__metadata": {
                    "id": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('Completed')",
                    "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('Completed')",
                    "type": "com.sap.appiot.es.Status"
                },
                "EventStatus": "Completed",
                "LanguageCode": "en",
                "Description": "Completed Status",
                "Descriptions": {
                    "__deferred": {
                        "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('Completed')/Descriptions"
                    }
                }
            }
        ]
    }
}

Example 2

/ES/v2/EventTypes('core.automobiles:ExceededTemperature')/Statuses?$expand=Descriptions

Retrieves statuses along with the expanded list of descriptions for the specified event type

{
    "d": {
        "results": [
            {
                "__metadata": {
                    "id": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('Open')",
                    "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('Open')",
                    "type": "com.sap.appiot.es.Status"
                },
                "EventStatus": "Open",
                "LanguageCode": null,
                "Description": null,
                "Descriptions": {
                    "results": [
                        {
                            "__metadata": {
                                "id": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Descriptions('en')",
                                "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Descriptions('en')",
                                "type": "com.sap.appiot.es.Descriptions"
                            },
                            "LanguageCode": "en",
                            "Description": "Open Status"
                        }
                    ]
                }
            },
            {
                "__metadata": {
                    "id": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('InProcess')",
                    "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('InProcess')",
                    "type": "com.sap.appiot.es.Status"
                },
                "EventStatus": "InProcess",
                "LanguageCode": null,
                "Description": null,
                "Descriptions": {
                    "results": [
                        {
                            "__metadata": {
                                "id": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Descriptions('en')",
                                "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Descriptions('en')",
                                "type": "com.sap.appiot.es.Descriptions"
                            },
                            "LanguageCode": "en",
                            "Description": "In process Status"
                        }
                    ]
                }
            },
            {
                "__metadata": {
                    "id": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('Completed')",
                    "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Statuses('Completed')",
                    "type": "com.sap.appiot.es.Status"
                },
                "EventStatus": "Completed",
                "LanguageCode": null,
                "Description": null,
                "Descriptions": {
                    "results": [
                        {
                            "__metadata": {
                                "id": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Descriptions('en')",
                                "uri": "https://events-sap-ci.cfapps.sap.hana.ondemand.com:443/ES/v2/Descriptions('en')",
                                "type": "com.sap.appiot.es.Descriptions"
                            },
                            "LanguageCode": "en",
                            "Description": "Completed Status"
                        }
                    ]
                }
            }
        ]
    }
}