Skip to main content

Retrieve an SVM peer permission instance

Contributors

GET /svm/peer-permissions/{cluster_peer.uuid}/{svm.uuid}

Introduced In: 9.6

Retrieves the SVM peer permission instance.

  • vserver peer permission show

Example

The following example shows how to retrieve the parameters for an SVM peer permission.

GET "/api/svm/peer-permissions/d3268a74-ee76-11e8-a9bb-005056ac6dc9/8f467b93-f2f1-11e8-9027-005056ac81fc"

Parameters

Name Type In Required Description

cluster_peer.uuid

string

path

True

Peer cluster UUID

  • Introduced in: 9.7

svm.uuid

string

path

True

SVM UUID

fields

array[string]

query

False

Specify the fields to return.

return_timeout

integer

query

False

The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.

  • Default value: 1

  • Max value: 120

  • Min value: 0

Response

Status: 200, Ok
Name Type Description

_links

_links

applications

array[string]

A list of applications for an SVM peer relationship.

cluster_peer

cluster_peer

Peer cluster details

svm

svm

Local SVM permitted for peer relationship. To create peer permissions for all SVMs, specify the SVM name as "*".

Example response
{
  "_links": {
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "applications": [
    "snapmirror",
    "flexcache"
  ],
  "cluster_peer": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "name": "cluster2",
    "uuid": "ebe27c49-1adf-4496-8335-ab862aebebf2"
  },
  "svm": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "name": "svm1",
    "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
  }
}

Error

Status: Default

ONTAP Error Response Codes

Error codes Description

26345574

Failed to find the SVM or volume name with UUID.

Name Type Description

error

returned_error

Example error
{
  "error": {
    "arguments": [
      {
        "code": "string",
        "message": "string"
      }
    ],
    "code": "4",
    "message": "entry doesn't exist",
    "target": "uuid"
  }
}

Definitions

See Definitions

href

Name Type Description

href

string

Name Type Description

self

href

cluster_peer

Peer cluster details

Name Type Description

_links

_links

name

string

uuid

string

svm

Local SVM permitted for peer relationship. To create peer permissions for all SVMs, specify the SVM name as "*".

Name Type Description

_links

_links

name

string

The name of the SVM. This field cannot be specified in a PATCH method.

uuid

string

The unique identifier of the SVM. This field cannot be specified in a PATCH method.

error_arguments

Name Type Description

code

string

Argument code

message

string

Message argument

returned_error

Name Type Description

arguments

array[error_arguments]

Message arguments

code

string

Error code

message

string

Error message

target

string

The target parameter that caused the error.