Commit a64c3a77 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

update cmd

parent 7dc8e2f7
......@@ -312,7 +312,7 @@ void nrf_app::handle_get_nf_instances(
std::string instance_uri;
std::vector<struct in_addr> profile_addresses = {};
//use the first IP addr
//TODO: use the first IP addr
if (profile_addresses.size() > 0) {
instance_uri = std::string(inet_ntoa(*((struct in_addr *)&profile_addresses[0])));
......@@ -321,6 +321,7 @@ void nrf_app::handle_get_nf_instances(
void nrf_app::handle_get_nf_instance(const std::string &nf_instance_id,
std::shared_ptr<nrf_profile> &profile,
int &http_code, const uint8_t http_version,
curl -X PUT -H "Content-Type: application/json" -d @amf_registration.json
curl -X GET ""serviceId1"&limit=100"
curl -X GET "
curl -X PATCH -H "Content-Type: application/json" -d '[{"op":"replace","path":"/nfInstanceName", "value": "NEW NAME"}]'
curl -X POST -d '{"nfStatusNotificationUri":"", "subscrCond": {"NfTypeCond": {"nfType":"AMF"} } }'
curl -X POST -d '{"nfStatusNotificationUri":"", "subscrCond": {"NfInstanceIdCond": {"nfInstanceId":"AMF"} } }'
curl -X POST -d '{"nfStatusNotificationUri":"", "subscrCond": {"NfTypeCond": {"nfType":"AMF"} } }'
curl -X POST -H "Content-Type: application/json" "" -d '{"nfStatusNotificationUri":"", "subscrCond": {"NfTypeCond": {"nfType":"AMF"}}, "reqNotifEvents":["NF_REGISTERED", "NF_DEREGISTERED"], "validityTime":"20020131T235959" }'
curl -X PATCH -H "Content-Type: application/json" -d '[{"op":"replace","path":"/validityTime", "value": "20201231T235959"}]'
curl -X GET ""AMF"&requester-nf-type="AMF""
curl -X GET ""SMF"&requester-nf-type="AMF""
#Access Token
curl -d "grant_type=client_credentials&nfInstanceId=343a924e-6494-4927-860b-d45692c95c2d&scope=nsmf-pdusession" -H "Content-Type: application/x-www-form-urlencoded" -X POST
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment