Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tnmtechnologies/2eca8780021f5da5dd63480bdbc0a748 to your computer and use it in GitHub Desktop.
Save tnmtechnologies/2eca8780021f5da5dd63480bdbc0a748 to your computer and use it in GitHub Desktop.
[Nnrf_NFManagement] example of a 400 response of a PUT request containing invalid attribute values in body (R15.2.0)
PUT /nnrf-nfm/v1/nf-instances/80fd9293-7bc9-4fdf-8888-4a72e9f751d4 HTTP/1.1
Host: vdev-newedge0001.b-com.local:8180
Connection: keep-alive
Content-Length: 1634
accept: application/json
DNT: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
Content-Type: application/json
Origin: http://vdev-newedge0001.b-com.local:8180
Referer: http://vdev-newedge0001.b-com.local:8180/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
{
"nfInstanceId": "80fd9293-7bc9-4fdf-8888-4a72e9f751d4",
"nfType": "AMF",
"nfStatus": "REGISTERED",
"heartBeatTimer": 200,
"plmnList": null,
"sNssais": null,
"nsiList": null,
"fqdn": "amf0.5gc.mncX.mccY.3gppnetwork.org",
"interPlmnFqdn": null,
"ipv4Addresses": [],
"ipv6Addresses": null,
"allowedPlmns": null,
"allowedNfTypes": [ "SMF" ],
"allowedNfDomains": null,
"allowedNssais": null,
"priority": 32767,
"capacity": 32767,
"load": -1,
"locality": "the locality value",
"udrInfo": null,
"udmInfo": null,
"ausfInfo": null,
"amfInfo": null,
"smfInfo": null,
"upfInfo": null,
"pcfInfo": null,
"bsfInfo": null,
"chfInfo": null,
"nrfInfo": null,
"customInfo": "the customInfo value",
"recoveryTime": "2020-04-27T18:26:50.833Z",
"nfServicePersistence": null,
"nfServices": [
{
"serviceInstanceId": "0ffd8c5f-9b15-48bf-8ba5-67ebfccaf392",
"serviceName": "namf-comm",
"versions": [
{
"apiVersionInUri": "v1",
"apiFullVersion": "1.0.0",
"expiry": "2022-05-11T12:27:22.703Z"
}
],
"scheme": "https",
"nfServiceStatus": "REGISTERED",
"fqdn": null,
"interPlmnFqdn": null,
"ipEndPoints": null,
"apiPrefix": null,
"defaultNotificationSubscriptions": null,
"allowedPlmns": null,
"allowedNfTypes": null,
"allowedNfDomains": null,
"allowedNssais": null,
"priority": -1,
"capacity": 32767,
"load": 20,
"recoveryTime": "2020-04-27T18:26:50.958Z",
"chfServiceInfo": null,
"supportedFeatures": "xyz"
}
]
}
HTTP/1.1 400 Bad Request
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type, Authorization, Accept, Accept-Language
Content-Type: application/problem+json
Content-Length: 575
Access-Control-Allow-Methods: GET, PUT, POST, PATCH, DELETE, OPTIONS
Date: Tue, 12 May 2020 16:35:12 GMT
{
"type":"ConstraintViolationException",
"title":"Constraint violation",
"status":400,
"detail":"4 constraint violation(s) occurred during method validation",
"instance":null,
"cause":"4 constraint violation(s) occurred during method validation",
"invalidParams":[
{
"param":"nfServices[0].priority=-1",
"reason":"must be greater than or equal to 0"
},
{
"param":"load=-1",
"reason":"must be greater than or equal to 0"
},
{
"param":"ipv4Addresses=[]",
"reason":"size must be between 1 and 2147483647"
},
{
"param":"nfServices[0].supportedFeatures=xyz",
"reason":"must match \"^[A-Fa-f0-9]*$\""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment