Skip to main content

Create an export policy rule client

Contributors

POST /protocols/nfs/export-policies/{policy.id}/rules/{index}/clients

Introduced In: 9.6

Creates an export policy rule client

Required properties

  • policy.id - Existing export policy that contains export policy rules for the client being added.

  • index - Existing export policy rule for which to create an export client.

  • match - Base name for the export policy client.

  • vserver export-policy rule add-clientmatches

Parameters

Name Type In Required Description

policy.id

integer

path

True

Export Policy ID

index

integer

path

True

Export Rule Index

return_records

boolean

query

False

The default is false. If set to true, the records are returned.

  • Default value:

Request Body

Name Type Description

index

integer

Index of the rule within the export policy.

match

string

Client Match Hostname, IP Address, Netgroup, or Domain. You can specify the match as a string value in any of the following formats:

  • As a hostname; for instance, host1

  • As an IPv4 address; for instance, 10.1.12.24

  • As an IPv6 address; for instance, fd20:8b1e:b255:4071::100:1

  • As an IPv4 address with a subnet mask expressed as a number of bits; for instance, 10.1.12.0/24

  • As an IPv6 address with a subnet mask expressed as a number of bits; for instance, fd20:8b1e:b255:4071::/64

  • As an IPv4 address with a network mask; for instance, 10.1.16.0/255.255.255.0

  • As a netgroup, with the netgroup name preceded by the @ character; for instance, @eng

  • As a domain name preceded by the . character; for instance, .example.com

policy

policy

svm

svm

SVM, applies only to SVM-scoped objects.

Example request
{
  "index": 0,
  "match": "0.0.0.0/0",
  "svm": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "name": "svm1",
    "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
  }
}

Response

Status: 201, Created
Name Type Description

_links

_links

num_records

integer

Number of export rule client records

records

array[export_client]

Example response
{
  "_links": {
    "next": {
      "href": "/api/reso