Menu
AWS Storage Gateway Service
API Reference (API Version 2013-06-30)

DescribeNFSFileShares

Gets a description for one or more file shares from a file gateway. This operation is only supported in the file gateway type.

Request Syntax

{
   "FileShareARNList": [ "string" ]
}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

FileShareARNList

An array containing the Amazon Resource Name (ARN) of each file share to be described.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 10 items.

Length Constraints: Minimum length of 50. Maximum length of 500.

Required: Yes

Response Syntax

{
   "NFSFileShareInfoList": [ 
      { 
         "ClientList": [ "string" ],
         "DefaultStorageClass": "string",
         "FileShareARN": "string",
         "FileShareId": "string",
         "FileShareStatus": "string",
         "GatewayARN": "string",
         "GuessMIMETypeEnabled": boolean,
         "KMSEncrypted": boolean,
         "KMSKey": "string",
         "LocationARN": "string",
         "NFSFileShareDefaults": { 
            "DirectoryMode": "string",
            "FileMode": "string",
            "GroupId": number,
            "OwnerId": number
         },
         "Path": "string",
         "ReadOnly": boolean,
         "Role": "string",
         "Squash": "string"
      }
   ]
}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

NFSFileShareInfoList

An array containing a description for each requested file share.

Type: Array of NFSFileShareInfo objects

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServerError

An internal server error has occurred during the request. For more information, see the error and message fields.

HTTP Status Code: 400

InvalidGatewayRequestException

An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.

HTTP Status Code: 400

Example

Describe a File Share

In the following request, you get the description for a single file share identified by its Amazon Resource Name.

Sample Request


{"FileShareARNList":
    ["arn:aws:storagegateway:us-east-2:204469490176:share/share-XXXXXX"]
}

            

Sample Response


{"NfsFileShareInfoList":
  [
    {"DefaultStorageClass": "S3_STANDARD_IA",
     "FileShareARN": "arn:aws:storagegateway:us-east-2:111122223333:share/share-XXXXXXXX",
     "FileShareId": "share-XXXXXXXX",
     "FileShareStatus": "AVAILABLE",
     "GatewayARN": "arn:aws:storagegateway:us-east-2:111122223333:gateway/sgw-YYYYYYYY",
     "GuessMIMETypeEnabled": "true",
     "KmsEncrypted": false,
     "LocationARN": "arn:aws:s3:::my-role",
     "NfsFileShareDefaults":
      {"DirectoryMode": "0777",
       "FileMode": "0777",
       "GroupId": 500,
       "OwnerId": 500},
     "Path": "/my-role-alpha",
     "Role": "arn:aws:iam::111122223333:role/my-role"}
  ]
}            

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: