NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Rest API Discussions

Manage Network Interface Service-Policies with Powershell Toolkit?

Matthias_Dietermann
3,278 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
3,249 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
3,250 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
2,577 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