Skip to main content
NetApp Knowledge Base

REST call for cluster peering does not return peer applications

Views:
67
Visibility:
Public
Votes:
1
Category:
ontap-9
Specialty:
CORE
Last Updated:

Applies to

  • ONTAP
  • RESTAPI

Issue

REST API GET on /api/cluster/peers endpoint is not returning "peer_applications" & "initial_allowed_svms".

 

- Example given from swagger tool shows that the values are expected;

==============================================================================================

- Example response from swagger tool

{
  "_links": {
    "next": {
      "href": "/api/resourcelink"
    },
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "num_records": 0,
  "records": [
    {
     "encryption": {
        "proposed": "tls_psk",
        "state": "tls_psk"
      },
      "initial_allowed_svms": [  <<<<<<<<==================================================
        {
          "_links": {
            "self": {
              "href": "/api/resourcelink"
            }
          },
          "name": "svm1",
          "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
        }
      ],
      "name": "cluster2",
      "peer_applications": [     <<<<<<<<==================================================
        "snapmirror",
        "flexcache"
      ],
    }
  ]
}

==============================================================================================

- Below is an example of an actual REST call response. Note the missing fields;

==============================================================================================

root@centos:/mnt# curl -k -u admin -X GET
"https://10.216.4.40/api/cluster/peers?fields=*" -H "accept: application/json"
Enter host password for user 'admin':
{
  "records": [
    {
      "uuid": "301b43a9-636c-11ed-933d-00a098c2095e",
      "name": "aff700-2n-rtp-1",
      "version": {
        "full": "NetApp Release 9.6: Wed Jul 10 16:25:33 UTC 2019",
        "generation": 9,
        "major": 6,
        "minor": 0
      },
      "status": {
        "state": "available",
        "update_time": "2022-11-15T15:08:57-05:00"
      },
      "ipspace": {
        "uuid": "cdf4cbd2-890d-11ec-9a96-005056a0e0a9",
        "name": "Default"
      },
      "remote": {
        "name": "aff700-2n-rtp-1",
        "serial_number": "1-80-000011",
        "ip_addresses": [
          "10.61.74.55",
          "10.61.74.54"
        ]
      },
      "authentication": {
        "in_use": "ok",
        "state": "ok"
      },
      "encryption": {
        "state": "tls_psk"
      }
    },

==============================================================================================

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.

 

  • Was this article helpful?