This service operation is provided by the NEF for NF service consumers to explicitly subscribe the notification of ECS Address Configuration Information.
Figure 4.5.2.2.2-1 illustrates the creation of a Individual ECS Address Configuration Information Subscription.
In order to subscribe to ECS Address Configuration Information, the NF service consumersshall send an
Nnef_ECSAddress_Subscribe request using the HTTP POST method to the NEF with
"{apiRoot}/nnef-ecs-addr-cfg-info/<apiVersion>/subscriptions" as request URI as shown in step 1 of
Figure 4.5.2.2.2-1. The HTTP POST message shall include EcsAddrCfgInfoSub data structure as request body. The EcsAddrCfgInfoSub data structure shall include:
-
the notification URI in the "notifUri" attribute;
-
the notification correlation identifier in the "notifCorrId" attribute;
and may include:
-
the identification(s) of DNN in "dnns" attribute;
-
the identification(s) of network slice in "snssais" attribute;
-
an indicator to immediately report the currently available ECS Address Configuration Information in "immRepInd" attribute;
Upon receipt of the HTTP request from the NF service consumers, the NEF shall interact with the UDR by invoking the
Nudr_DataRepository service as described in
TS 29.504 to retrieve and subscribethe ECS Address Configuration Information in the application data in the UDR.
After receiving a successful response from the UDR, the NEF shall create a new subscription and assign a subscription identifier for the
"Individual ECS Address Configuration Information Subscription" resource. Then the NEF shall send an HTTP
"201 Created" response with EcsAddrCfgInfoSub data structure as response body and a Location header field containing the URI of the created individual subscription resource to the NF service consumer.
If the immediate report indication is included in the subscription request, the NEF shall include the currently available ECS Address Configuration Information in
"immReports" attribute in the response body.
If errors occur when processing the HTTP POST request or receiving an error code from the UDR, the NEF shall send an HTTP error response as specified in
clause 5.4.7.
Figure 4.5.2.2.3-1 illustrates the modification of an existing subscription.
To modify an existing subscription to event notifications, the NF service consumer shall send an HTTP PUT/PATCH request with:
"{apiRoot}/nnef-ecs-addr-cfg-info/<apiVersion>/subscriptions/{subscriptionId}" as request URI, as shown in step 1 of
Figure 4.5.2.2.3-1, where
"{subscriptionId}" is the subscription ID of the existing subscription. The EcsAddrCfgInfoSub data structure is included as PUT request body as described in
clause 4.5.2.2.2 or the EcsAddrCfgInfoSubPatch data structure is included as PATCH request body as defined in
clause 5.4.6.2.4.
Upon successful reception of an HTTP PUT/PATCH request with:
"{apiRoot}/nnef-ecs-addr-cfg-info/<apiVersion>/subscriptions/{subscriptionId}" as request URI and EcsAddrCfgInfoSub/EcsAddrCfgInfoSubPatch data structure as request body, the NEF shall interact with the UDR by invoking the
Nudr_DataRepository service as described in
TS 29.504 to retrieve and subscribethe ECS Address Configuration Information in the application data in the UDR.
After receiving a successful response from the UDR, the NEF shall:
-
send HTTP "200 OK" response (as shown in Figure 4.5.2.2.3-1, step 2a) with a response body containing a representation of the updated subscription in the EcsAddrCfgInfoSub data type; or
-
send HTTP "204 No Content" response (as shown in Figure 4.5.2.2.3-1, step 2b).
If the immediate report indication is included in the subscription request, the NEF shall include the current available ECS Address Configuration Information in the response body.
If the received HTTP PUT/PATCH request needs to be redirected, the NEF shall send an HTTP redirect response as specified in
clause 6.10.9 of TS 29.500.
If errors occur when processing the HTTP PUT/PATCH request or receiving an error code from the UDR, the NEF shall send an HTTP error response as specified in
clause 5.4.7.