Protocols SAN fcp services endpoint overview
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
Overview
A Fibre Channel Protocol (FC Protocol) service defines the properties of the FC Protocol target for an SVM. There can be at most one FC Protocol service for an SVM. An SVM FC Protocol service must be created before FC Protocol initiators can log in to the SVM.
The FC Protocol service REST API allows you to create, update, delete, and discover FC services for SVMs.
Performance monitoring
Performance of the SVM can be monitored by the metric.*
and statistics.*
properties. These show the performance of the SVM in terms of IOPS, latency, and throughput. The metric.*
properties denote an average whereas statistics.*
properties denote a real-time monotonically increasing value aggregated across all nodes.
Examples
Creating an FC Protocol service for an SVM
The simplest way to create an FC Protocol service is to specify only the SVM, either by name or UUID. By default, the new FC Protocol service is enabled.
In this example, the return_records
query parameter is used to retrieve the new FC Protocol service object in the REST response.
# The API: POST /api/protocols/san/fcp/services # The call: curl -X POST 'https://<mgmt-ip>/api/protocols/san/fcp/services?return_records=true' -H 'Accept: application/hal+json' -d '{ "svm": { "name": "svm1" } }' # The response: { "num_records": 1, "records": [ { "svm": { "uuid": "5c659d90-c01a-11e8-88ed-005056bbb24b", "name": "svm1", "_links": { "self": { "href": "/api/svm/svms/5c659d90-c01a-11e8-88ed-005056bbb24b" } } }, "enabled": true, "target": { "name": "20:00:00:50:56:bb:b2:4b" }, "_links": { "self": { "href": "/api/protocols/san/fcp/services/5c659d90-c01a-11e8-88ed-005056bbb24b" } } } ] }
Retrieving FC Protocol services for all SVMs in the cluster
# The API: GET /api/protocols/san/fcp/services # The call: curl -X GET 'https://<mgmt-ip>/api/protocols/san/fcp/services' -H 'Accept: application/hal+json' # The response: { "records": [ { "svm": { "uuid": "5c659d90-c01a-11e8-88ed-005056bbb24b", "name": "svm1", "_links": { "self": { "href": "/api/svm/svms/5c659d90-c01a-11e8-88ed-005056bbb24b" } } }, "_links": { "self": { "href": "/api/protocols/san/fcp/services/5c659d90-c01a-11e8-88ed-005056bbb24b" } } }, { "svm": { "uuid": "6011f874-c01a-11e8-88ed-005056bbb24b", "name": "svm2", "_links": { "self": { "href": "/api/svm/svms/6011f874-c01a-11e8-88ed-005056bbb24b" } } }, "_links": { "self": { "href": "/api/protocols/san/fcp/services/6011f874-c01a-11e8-88ed-005056bbb24b" } } } ], "num_records": 2, "_links": { "self": { "href": "/api/protocols/san/fcp/services" } } }
Retrieving details for a specific FC Protocol service
The FC Protocol service is identified by the UUID of its SVM.
# The API: GET /api/protocols/san/fcp/services/{svm.uuid} # The call: curl -X GET 'https://<mgmt-ip>/api/protocols/san/fcp/services/5c659d90-c01a-11e8-88ed-005056bbb24b' -H 'Accept: application/hal+json' # The response: { "svm": { "uuid": "5c659d90-c01a-11e8-88ed-005056bbb24b", "name": "svm1", "_links": { "self": { "href": "/api/svm/svms/5c659d90-c01a-11e8-88ed-005056bbb24b" } } }, "enabled": true, "target": { "name": "20:00:00:50:56:bb:b2:4b" }, "_links": { "self": { "href": "/api/protocols/san/fcp/services/5c659d90-c01a-11e8-88ed-005056bbb24b" } } }
Disabling an FC Protocol service
Disabling an FC Protocol service shuts down all active FC Protocol logins for the SVM and prevents new FC Protocol logins.
The FC Protocol service to update is identified by the UUID of its SVM.
# The API: PATCH /api/protocols/san/fcp/services/{svm.uuid} # The call: curl -X PATCH 'https://<mgmt-ip>/api/protocols/san/fcp/services/5c659d90-c01a-11e8-88ed-005056bbb24b' -H 'Accept: application/hal+json' -d '{ "enabled": "false" }'
You can retrieve the FC Protocol service to confirm the change.
In this example, the fields
query parameter is used to limit the response to the enabled
property and FC Protocol service identifiers.
# The API: GET /api/protocols/san/fcp/services/{svm.uuid} # The call: curl -X GET 'https://<mgmt-ip>/api/protocols/san/fcp/services/5c659d90-c01a-11e8-88ed-005056bbb24b?fields=enabled' -H 'Accept: application/hal+json' # The response: { "svm": { "uuid": "5c659d90-c01a-11e8-88ed-005056bbb24b", "name": "svm1", "_links": { "self": { "href": "/api/svm/svms/5c659d90-c01a-11e8-88ed-005056bbb24b" } } }, "enabled": false, "_links": { "self": { "href": "/api/protocols/san/fcp/services/5c659d90-c01a-11e8-88ed-005056bbb24b" } } }
Deleting an FC Protocol service
The FC Protocol service must be disabled before it can be deleted.
The FC Protocol service to delete is identified by the UUID of its SVM.
# The API: DELETE /api/protocols/san/fcp/services/{svm.uuid} # The call: curl -X DELETE 'https://<mgmt-ip>/api/protocols/san/fcp/services/5c659d90-c01a-11e8-88ed-005056bbb24b' -H 'Accept: application/hal+json'