Forum Discussion

seamlessfirework's avatar
Jul 21, 2023

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? šŸ¤”

  • 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"
    }

     

     

     

  • xuwen's avatar
    xuwen
    Icon for Cumulonimbus rankCumulonimbus

    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 šŸ˜Š