Retrieve cloud targets in the cluster
GET /cloud/targets
Introduced In: 9.6
Retrieves the collection of cloud targets in the cluster.
Related ONTAP commands
-
storage aggregate object-store config show
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
cap_url |
string |
query |
False |
Filter by cap_url |
cluster.uuid |
string |
query |
False |
Filter by cluster.uuid
|
cluster.name |
string |
query |
False |
Filter by cluster.name
|
used |
integer |
query |
False |
Filter by used |
certificate_validation_enabled |
boolean |
query |
False |
Filter by certificate_validation_enabled |
uuid |
string |
query |
False |
Filter by uuid |
svm.uuid |
string |
query |
False |
Filter by svm.uuid |
svm.name |
string |
query |
False |
Filter by svm.name |
ssl_enabled |
boolean |
query |
False |
Filter by ssl_enabled |
server |
string |
query |
False |
Filter by server |
snapmirror_use |
string |
query |
False |
Filter by snapmirror_use |
owner |
string |
query |
False |
Filter by owner |
access_key |
string |
query |
False |
Filter by access_key |
container |
string |
query |
False |
Filter by container |
provider_type |
string |
query |
False |
Filter by provider_type |
azure_account |
string |
query |
False |
Filter by azure_account |
url_style |
string |
query |
False |
Filter by url_style
|
port |
integer |
query |
False |
Filter by port |
ipspace.uuid |
string |
query |
False |
Filter by ipspace.uuid |
ipspace.name |
string |
query |
False |
Filter by ipspace.name |
use_http_proxy |
boolean |
query |
False |
Filter by use_http_proxy
|
authentication_type |
string |
query |
False |
Filter by authentication_type |
name |
string |
query |
False |
Filter by name |
server_side_encryption |
string |
query |
False |
Filter by server_side_encryption
|
fields |
array[string] |
query |
False |
Specify the fields to return. |
max_records |
integer |
query |
False |
Limit the number of records returned. |
return_records |
boolean |
query |
False |
The default is true for GET calls. When set to false, only the number of records is returned.
|
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.
|
order_by |
array[string] |
query |
False |
Order results by specified fields and optional [asc |
Response
Status: 200, Ok
Name | Type | Description |
---|---|---|
_links |
||
num_records |
integer |
Number of records |
records |
array[cloud_target] |
Example response
{
"_links": {
"next": {
"href": "/api/resourcelink"
},
"self": {
"href": "/api/resourcelink"
}
},
"records": [
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"access_key": "string",
"authentication_type": "string",
"azure_account": "string",
"azure_private_key": "string",
"cap_url": "https://123.45.67.89:1234/CAP/api/v1/credentials?agency=myagency&mission=mymission&role=myrole",
"cluster": {
"name": "string",
"uuid": "string"
},
"container": "bucket1",
"ipspace": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "exchange",
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
},
"name": "string",
"owner": "string",
"provider_type": "string",
"secret_password": "string",
"server": "string",
"server_side_encryption": "string",
"snapmirror_use": "string",
"svm": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "svm1",
"uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
},
"url_style": "string",
"used": 0,
"uuid": "string"
}
]
}
Error
Status: Default, Error
Name | Type | Description |
---|---|---|
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 |
_links
Name | Type | Description |
---|---|---|
next |
||
self |
_links
Name | Type | Description |
---|---|---|
self |
cluster
Name | Type | Description |
---|---|---|
name |
string |
The name of the cluster that owns the cloud target. For POST, this accepts the name of the peer cluster only if the cluster is in switchover state. |
uuid |
string |
The UUID of the cluster that owns the cloud target. For POST, this accepts the UUID of the peer cluster only if the cluster is in switchover state. |
ipspace
IPspace to use in order to reach the cloud target.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
IPspace name |
uuid |
string |
IPspace UUID |
svm
This field is only applicable when used for SnapMirror. For POST and PATCH, SVM information is required for SnapMirror targets and not allowed for FabricPool targets.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
The name of the SVM. |
uuid |
string |
The unique identifier of the SVM. |
cloud_target
Name | Type | Description |
---|---|---|
_links |
||
access_key |
string |
Access key ID for AWS_S3 and other S3 compatible provider types. |
authentication_type |
string |
Authentication used to access the target. SnapMirror does not yet support CAP. Required in POST. |
azure_account |
string |
Azure account |
azure_private_key |
string |
Azure access key |
cap_url |
string |
This parameter is available only when auth-type is CAP. It specifies a full URL of the request to a CAP server for retrieving temporary credentials (access-key, secret-pasword, and session token) for accessing the object store. |
certificate_validation_enabled |
boolean |
Is SSL/TLS certificate validation enabled? The default value is true. This can only be modified for SGWS, IBM_COS, and ONTAP_S3 provider types.
|
cluster |
||
container |
string |
Data bucket/container name |
ipspace |
IPspace to use in order to reach the cloud target. |
|
name |
string |
Cloud target name |
owner |
string |
Owner of the target. Allowed values are FabricPool or SnapMirror. A target can be used by only one feature. |
port |
integer |
Port number of the object store that ONTAP uses when establishing a connection. Required in POST.
|
provider_type |
string |
Type of cloud provider. Allowed values depend on owner type. For FabricPool, AliCloud, AWS_S3, Azure_Cloud, GoggleCloud, IBM_COS, SGWS, and ONTAP_S3 are allowed. For SnapMirror, the valid values are AWS_S3 or SGWS.
|
secret_password |
string |
Secret access key for AWS_S3 and other S3 compatible provider types. |
server |
string |
Fully qualified domain name of the object store server. Required on POST. For Amazon S3, server name must be an AWS regional endpoint in the format s3.amazonaws.com or s3- |
server_side_encryption |
string |
Encryption of data at rest by the object store server for AWS_S3 and other S3 compatible provider types. This is an advanced property. In most cases it is best not to change default value of "sse_s3" for object store servers which support SSE-S3 encryption. The encryption is in addition to any encryption done by ONTAP at a volume or at an aggregate level. Note that changing this option does not change encryption of data which already exist in the object store.
|
snapmirror_use |
string |
Use of the cloud target by SnapMirror. |
ssl_enabled |
boolean |
SSL/HTTPS enabled or not |
svm |
This field is only applicable when used for SnapMirror. For POST and PATCH, SVM information is required for SnapMirror targets and not allowed for FabricPool targets. |
|
url_style |
string |
URL style used to access S3 bucket. |
use_http_proxy |
boolean |
Use HTTP proxy when connecting to the object store. |
used |
integer |
The amount of cloud space used by all the aggregates attached to the target, in bytes. This field is only populated for FabricPool targets. The value is recalculated once every 5 minutes. |
uuid |
string |
Cloud target UUID |
error_arguments
Name | Type | Description |
---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
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. |