ONTAP Rest API Discussions

Manage Network Interface Service-Policies with Powershell Toolkit?

Matthias_Dietermann
1,506 Views

Hello,

 

I want to manage ONTAP 9.12.1 network interface service-policies with PowerShell Toolkit 9.13.1.

E.g. I want to add an IP address to the management-https service of a custom cluster service-policy.
Seems to me that such operations are not yet supported with PSTK.
But maybe I just have not found the proper cmdlet or the proper REST call

Has anyone experience with this?

 

Kind regards,

Matthias 

1 ACCEPTED SOLUTION

Matthias_Dietermann
1,477 Views

Found https://docs.netapp.com/us-en/ontap-restmap-9121/net.html#net-interface-service-policy-get-iter

net-interface-service-policy-add-service

PATCH /api/network/ip/service-policies/{uuid}

Usage: This ONTAPI call cannot be issued against Storage VM (SVM) management LIFs.

ONTAPI attribute REST attribute Comment

allowed-addresses

No REST Equivalent

allowed-address list defaults to 0.0.0.0/0 in REST

View solution in original post

2 REPLIES 2

Matthias_Dietermann
1,478 Views

Found https://docs.netapp.com/us-en/ontap-restmap-9121/net.html#net-interface-service-policy-get-iter

net-interface-service-policy-add-service

PATCH /api/network/ip/service-policies/{uuid}

Usage: This ONTAPI call cannot be issued against Storage VM (SVM) management LIFs.

ONTAPI attribute REST attribute Comment

allowed-addresses

No REST Equivalent

allowed-address list defaults to 0.0.0.0/0 in REST

JeffGeb
805 Views

I think the answer you're looking for is that the cmdlet Get-NcNetServicePolicy is added in newer Toolkit versions. Specifically, I have it available to me in version 9.14.1.2401 - I'm not sure in which version it was added, but it's definitely in that one.

Public