patch
3 TopicsPatching additional TLS certificate to the existing virtual server
Hi, I am New to AS3. tried following json file to patch the new TLS certificate to the existing virtual server however its not working. can you let me know what is the correct procedure ? { "class":"AS3", "action":"patch", "patchBody":[ { "op":"add", "path":"/tenanat/Application/private-vip/front-cert", "value":{ "class":"TLS_Server", "certificates":[ { "certificate":"frontend-cert" } ], "ciphers":"DEFAULT", "frontend-cert":{ "class":"Certificate", "certificate":"-----BEGINCERTIFICATE-----fsdfsdfdshfd-----ENDCERTIFICATE-----\n", "privateKey":"-----BEGINPRIVATEKEY-----edfddsfdsfds-----ENDPRIVATEKEY-----\n" }, "private-vip":{ "layer4":"tcp", "class":"Service_HTTPS", "ServerTLS":"front-cert", "redirect80":false, "shareAddresses":true, "virtualAddresses":[ "192.168.1.x" ] } } } ] }419Views0likes1CommentSetting up RBAC using PATCH method
Hi All, I'm having trouble adding a user account to a role using PATCH method. Here is the relevant bit from iControl REST user guide. To add the user account to the role, use the PATCH method and specify the userReferences property with the link to the user account in the JSON body. Here is curl command used: curl -sk https://localhost/mgmt/shared/authz/roles/iControl_REST_API_User -H "Content-Type: application/json" -u admin:adminpw -X PATCH -d '{"op": "add", "path":"/userReferences", "value": [{"link": "https://localhost/mgmt/shared/authz/users/user1"}]}' | jq . The above command runs without any error, however the userReferences property is not added to iControl_REST_API_User role. curl -sk https://localhost/mgmt/shared/authz/roles/iControl_REST_API_User -H "Content-Type: application/json" -u admin:adminpw | jq . I have trimmed some of the output. { "name": "iControl_REST_API_User", "resources": [ { "resourceMask": "/mgmt/tm/wom/*/*/*/*/*/*/*", "restMethod": "DELETE" }, { "resourceMask": "/mgmt/tm/cm/*/*/*/*/*/*/*/*", "restMethod": "GET" }, { "resourceMask": "/mgmt/tm/net/*/*", "restMethod": "POST" }, { "resourceMask": "/mgmt/tm/actions/*/*/*/*/*/*/*", "restMethod": "DELETE" }, { "resourceMask": "/mgmt/tm/ltm/*/*/*/*/*/*/*", "restMethod": "PATCH" }, { "resourceMask": "/mgmt/tm/security/*/*/*/*/*/*", "restMethod": "PATCH" }, Let me know what I'm missing here Cheers, Bency248Views0likes1Comment