Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

iControl REST / Change a setting in ASM logging profile

Hey guys,

I want to change the "maximumEntryLength" parameter in a ASM logging profile via REST. I built my URL in Postman like this

{{baseurl}}/mgmt/tm/security/log/profile/log-webservices/application

with the JSON body

 

{
    "kind": "tm:security:log:profile:application:applicationcollectionstate",
    "items": [
        {
            "maximumEntryLength": "10k"
        }
    ]
}

 

The response is

 

{
    "code": 403,
    "message": "Operation is not supported on property /security/log/profile/log-webservices/application.",
    "errorStack": [],
    "apiError": 1
}

 

I followed the the API guide here: https://clouddocs.f5.com/api/icontrol-rest/APIRef_tm_security_log_profile_application.html. I also tried a PUT or PATCH but the API tells me a 403. What am I doing wrong here? 🤔

1 ACCEPTED SOLUTION

xuwen
MVP
MVP

try this,i use postman works well, maximumEntryLength from "2k" change to "10k"

 

PATCH https://192.168.5.110/mgmt/tm/security/log/profile/log-webservices/application/~Common~log-webservices

JSON Body:
{
    "maximumEntryLength": "10k"
}

 

 

 

View solution in original post

2 REPLIES 2

xuwen
MVP
MVP

try this,i use postman works well, maximumEntryLength from "2k" change to "10k"

 

PATCH https://192.168.5.110/mgmt/tm/security/log/profile/log-webservices/application/~Common~log-webservices

JSON Body:
{
    "maximumEntryLength": "10k"
}

 

 

 

Hey xuwen,

Thanks for your reply. The missing exact location of the profile with the ~ was the point it did not work out. Unfortunately the documentation has no example how to PATCH an existing profile. That would be nice. On the other hand we have this community 😊