axapi v3 – accessing non-shared partition objects

Community Forum Forums Thunder and AX Series General axapi v3 – accessing non-shared partition objects

This topic contains 2 replies, has 2 voices, and was last updated by avatar toddmason 3 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15572
    avatar
    toddmason
    Member

    Anyone,

    With axapi v3 how does one access the non-shared partition objects?

    Specifically I can see and access shared partition objects/files bw-list, etc. but cannot figure out how to get to objects from other partitions:

    GET to => https://10.x.x.x/axapi/v3/file/bw-list/oper
    yields shared partition bw-list files:
    {
    “bw-list”: {
    “oper”: {
    “file-list”: [
    {
    “file”: “bwlist”,
    “url”: “Local”,
    “ref-count”: 0,
    “period”: 0,
    “update-times”: 1,
    “parse-errors”: 0,
    “error-line”: “”
    }
    ]
    },
    “a10-url”: “/axapi/v3/file/bw-list/oper”
    }
    }

    What uri is used to get to other partitions?

    Same is true for exporting running-config; it only gets the shared partition.
    POST with
    {
    “export”: {
    “running-config”:”true”,
    “use-mgmt-port”:”true”,
    “store-name”: “vmdev01”
    }
    }

    to => https://10.x.x.x/axapi/v3/export
    yields:
    {
    “response”: {
    “status”: “OK”,
    “msg”: “File copied successfully”
    }
    }

    Thanks for any thoughts anyone. I’m not seeing anything about partitions in the aXAPI ref document.

    #15582
    avatar
    HelpingHand
    Member

    Try making a POST call to https://10.x.x.x/axapi/v3/active-partition/partition_name
    with an empty body

    #15592
    avatar
    toddmason
    Member

    Awesome, that was it. Thank you.

    I guess need to think a little more “command line”-ish

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.