Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
Answers

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:

{"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":11316902,"kind":":resterrorresponse"}

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?

0
Rate this Question
Comments on this Question
Comment made 1 month ago by Ronak Patel 2

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.

0
Comment made 1 month ago by jaikumar_f5 1929

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

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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://<host>/mgmt/tm/sys/folder -d '{"subPath": "/", "fullPath": "/fw_objs", "name": "fw_objs" }'

0