Developer Community

Reply
MVP Expert

ArubaOS: Set port name/description to blank (via API/REST)

Hi,

 

I search howto set to default the name/description of port (using PUT method on /rest/v4/port URI)

 

but look not possible...




PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info


PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info


PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)


PowerArubaIAP: Powershell Module to use Aruba Instant AP




ACMP 6.4 / ACMX #107 / ACCP 6.5
MVP

Re: ArubaOS: Set port name/description to blank (via API/REST)

Hey, 

 

Totally new to the ArubaOS API, but i like APIs so I gave it a shot.

 

But I had the same results as you, writing "" or even None/null-types gave me errors:

{"message":"Incomplete input: name"}

{"message":"Wrong type for name"}

 

And there seems to be no delete methods for this either (not sure if you can delete anything that is a sub-command).

 

 

Aranya AB, Sweden
ACMP, ACCA, CWNA, CWDP
MVP Expert

Re: ArubaOS: Set port name/description to blank (via API/REST)

Thanks for feedback... my code is not wrong ;-)

There is missing feature for this...

 

I known there is a AnyCLI but no a good solution for me...




PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info


PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info


PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)


PowerArubaIAP: Powershell Module to use Aruba Instant AP




ACMP 6.4 / ACMX #107 / ACCP 6.5
Frequent Contributor I

Re: ArubaOS: Set port name/description to blank (via API/REST)

It is not meant to be NULL

"name":
        {
            "description": "The name of the Port.", 
            "type": "string", 
            "maxLength": 64, 
            "minLength": 1, 
            "sql.unique": true
        },

Sven - AMFX #35
MVP Expert

Re: ArubaOS: Set port name/description to blank (via API/REST)


@dregoriuss wrote:

It is not meant to be NULL

"name":
        {
            "description": "The name of the Port.", 
            "type": "string", 
            "maxLength": 64, 
            "minLength": 1, 
            "sql.unique": true
        },

Bug on API ? :)




PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info


PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info


PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)


PowerArubaIAP: Powershell Module to use Aruba Instant AP




ACMP 6.4 / ACMX #107 / ACCP 6.5
Frequent Contributor I

Re: ArubaOS: Set port name/description to blank (via API/REST)

It is documented, so it‘s not a bug.
The delete option is just missing

Sven - AMFX #35
MVP Expert

Re: ArubaOS: Set port name/description to blank (via API/REST)


@dregoriuss wrote:
It is documented, so it‘s not a bug.
The delete option is just missing

it will be strange to get a DELETE for only remove a description name...

it is a wront definition for this field... i can be null




PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info


PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info


PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)


PowerArubaIAP: Powershell Module to use Aruba Instant AP




ACMP 6.4 / ACMX #107 / ACCP 6.5
Aruba Employee

Re: ArubaOS: Set port name/description to blank (via API/REST)

Currently its a bug in the REST API where we have to specify atleast a charecter  to update the port name using API. We will look into fixing it.

For now you may need to use anycli api option till that get fixed.

MVP Expert

Re: ArubaOS: Set port name/description to blank (via API/REST)


@rajani.abraham wrote:

Currently its a bug in the REST API where we have to specify atleast a charecter  to update the port name using API. We will look into fixing it.

For now you may need to use anycli api option till that get fixed.


Thanks for feedback.

There is a number of case/issue ? for following this ?




PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info


PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info


PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)


PowerArubaIAP: Powershell Module to use Aruba Instant AP




ACMP 6.4 / ACMX #107 / ACCP 6.5
MVP Expert

Re: ArubaOS: Set port name/description to blank (via API/REST)

same issue with DNS... it is complicated to remove DNS name or server... :(




PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info


PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info


PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)


PowerArubaIAP: Powershell Module to use Aruba Instant AP




ACMP 6.4 / ACMX #107 / ACCP 6.5
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: