Create an FC WWPN alias
POST /network/fc/wwpn-aliases
Introduced In: 9.6
Creates an FC WWPN alias.
Required properties
- 
svm.uuidorsvm.name- Existing SVM in which to create the FC alias. - 
alias- Name of the FC alias. - 
wwpn- FC WWPN for which to create the alias. 
Related ONTAP commands
- 
vserver fcp wwpn-alias set 
Learn more
Parameters
| Name | Type | In | Required | Description | 
|---|---|---|---|---|
return_records  | 
boolean  | 
query  | 
False  | 
The default is false. If set to true, the records are returned. 
  | 
Request Body
| Name | Type | Description | 
|---|---|---|
alias  | 
string  | 
The FC WWPN alias. Required in POST.  | 
svm  | 
SVM, applies only to SVM-scoped objects.  | 
|
wwpn  | 
string  | 
The FC initiator WWPN. Required in POST.  | 
Example request
{
  "alias": "host1",
  "svm": {
    "name": "svm1",
    "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
  },
  "wwpn": "2f:a0:00:a0:98:0b:56:13"
}
Response
Status: 201, Created
| Name | Type | Description | 
|---|---|---|
num_records  | 
integer  | 
The number of records in the response.  | 
records  | 
array[wwpn_alias]  | 
Example response
{
  "num_records": 1,
  "records": [
    {
      "alias": "host1",
      "svm": {
        "name": "svm1",
        "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
      },
      "wwpn": "2f:a0:00:a0:98:0b:56:13"
    }
  ]
}
Headers
| Name | Description | Type | 
|---|---|---|
Location  | 
Useful for tracking the resource location  | 
string  | 
Error
Status: Default
ONTAP Error Response Codes
| Error Code | Description | 
|---|---|
2621462  | 
The specified SVM does not exist or cannot be accessed by this user.  | 
2621706  | 
The specified   | 
2621707  | 
No SVM was specified. Either   | 
5373982  | 
An invalid WWN was specified. The length is incorrect.  | 
5373983  | 
An invalid WWN was specified. The format is incorrect.  | 
5374869  | 
The alias already exists.  | 
Also see the table of common errors in the Response body overview section of this documentation.
Definitions
See Definitions
href
| Name | Type | Description | 
|---|---|---|
href  | 
string  | 
_links
svm
SVM, applies only to SVM-scoped objects.
| Name | Type | Description | 
|---|---|---|
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.  | 
wwpn_alias
A Fibre Channel (FC) world wide port name (WWPN) alias. A WWPN is a unique 64-bit identifier for an FC initiator. It is displayed as a 16-character hexadecimal value. SAN administrators may find it easier to identify FC initiators using an alias, especially in larger SANs.
| Name | Type | Description | 
|---|---|---|
alias  | 
string  | 
The FC WWPN alias. Required in POST.  | 
svm  | 
SVM, applies only to SVM-scoped objects.  | 
|
wwpn  | 
string  | 
The FC initiator WWPN. Required in POST.  | 
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.  |