Forum Discussion
Can't access some of the rest endpoints for setup
I'm trying to setup a big-ip instance via the api endpoints but for some reason, some of them I can't access.
For example, I was able to setup the licensing part with these endpoints: https://devcentral.f5.com/wiki/iWorkflow.APIRef_tm_shared_licensing_activation.ashx
but then when i try to create a partition via these endpoints: https://devcentral.f5.com/wiki/iWorkflow.APIRef_device_big-ip_auth_partition_create.ashx
I get this error:
$1
I also get a similar error for some endpoints but not others. I'm not sure exactly what I'm doing wrong or have I setup something wrong?
- jaikumar_f5
Noctilucent
Hi Ronak,
Please try the below, where fw_objs is the partition name here.
curl -sku admin:admin -H "Content-Type: application/json" -X POST https:///mgmt/tm/sys/folder -d '{"subPath": "/", "fullPath": "/fw_objs", "name": "fw_objs" }'
- Ronak_Patel_385
Nimbostratus
I got the same error with that as well
curl -H "X-F5-Auth-Token: $F5_TOKEN" --request POST \ > --insecure \ > --data '{"subPath": "/", "fullPath": "/test1", "name": "test1" }' \ > https://"$F5_ADDR"/mgmt/device/big-ip/auth/partition/create {"code":400,"message":"URI path /mgmt/device/big-ip/auth/partition/create not registered. Please verify URI is supported and wait for /available suffix to be responsive.","restOperationId":11440420,"kind":":resterrorresponse"}
is that the same as when going into the UI under "users" and "partition list" and then creating one? Thats what I'm trying to do via the API.
- jaikumar_f5
Noctilucent
Is that the end point I'm making when creating the partition,see my endpoint in the answer below, you are still making it to mgmt/device/big-ip/auth/partition/create
It should be /mgmt/tm/sys/folder
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com