Creates an access point.
Operation description
When you call the CreateAccessPoint operation to create an access point, some resources are generated asynchronously. Therefore, after the CreateAccessPoint operation is successfully called, call the DescribeAccessPoints or DescribeAccessPoint operation to query the status of the access point. Wait until the access point enters the Active state before you mount the file system. Otherwise, the mount operation may fail.
Only General-purpose NAS NFS file systems support this feature.
If you enable the RAM policy (EnabledRam), you must configure the corresponding RAM permissions. For more information, see Manage access points.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:CreateAccessPoint |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
The ID of the file system. |
31a8e4**** |
| AgenticSpaceId |
string |
No |
The ID of the AgenticSpace. Note
This parameter is required for Agentic file systems. |
agentic-229oypxjgpau2**** |
| AccessGroup |
string |
No |
The name of the permission group. This parameter is required when the target file system is a General-purpose NAS file system. Default permission group: DEFAULT_VPC_GROUP_NAME (the default permission group for VPCs). Note
This parameter is not supported for Agentic file systems. |
DEFAULT_VPC_GROUP_NAME |
| VswId |
string |
Yes |
The ID of the vSwitch. |
vsw-2zevmwkwyztjuoffg**** |
| VpcId |
string |
Yes |
The ID of the VPC. |
vpc-2zesj9afh3y518k9o**** |
| AccessPointName |
string |
No |
The name of the access point. |
test |
| RootDirectory |
string |
No |
The root directory of the access point. Default value: /. If the access point directory does not exist, you must also specify the OwnerUserId and OwnerGroupId parameters. Note
This parameter is not supported for Agentic file systems. |
/ |
| EnabledRam |
boolean |
No |
Specifies whether to enable the RAM policy. Valid values:
Note
After you enable the RAM policy for the access point, all Resource Access Management (RAM) users are denied by default from using the access point to mount and access data. You must grant the corresponding access permissions to the accounts so that they can mount and access data through the access point. If this feature is disabled, the access point allows anonymous mounts. For more information about how to configure access point permissions, see Configure access point policy. Note
For Agentic file systems, this parameter must be set to true. |
false |
| OwnerUserId |
integer |
No |
The ID of the owner user. This parameter is required when the RootDirectory directory does not exist. Note
This parameter is not supported for Agentic file systems. |
1 |
| OwnerGroupId |
integer |
No |
The ID of the owner user group. This parameter is required when the RootDirectory directory does not exist. Note
This parameter is not supported for Agentic file systems. |
1 |
| Permission |
string |
No |
The POSIX permissions. Default value: 0755. Limit: The value must be a four-digit octal number starting with 0. This parameter takes effect only after you specify the OwnerUserId and OwnerGroupId parameters. Note
This parameter is not supported for Agentic file systems. |
0755 |
| PosixUserId |
integer |
No |
The POSIX user ID. Note
This parameter is not supported for Agentic file systems. |
123 |
| PosixGroupId |
integer |
No |
The POSIX user group ID. Note
This parameter is not supported for Agentic file systems. |
123 |
| PosixSecondaryGroupIds |
string |
No |
The secondary user groups. Separate multiple user group IDs with commas (,). Note
This parameter is not supported for Agentic file systems. |
123,345 |
| Tag |
array<object> |
No |
The list of tags for the access point. |
|
|
object |
No |
The list of tags for the access point. |
||
| Key |
string |
No |
The tag key. Limits:
|
TestKey |
| Value |
string |
No |
The tag value. Limits:
|
TestValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| AccessPoint |
object |
The access point. |
|
| AccessPointDomain |
string |
The domain name of the access point. |
ap-ie15ydanoz.001014****-w****.cn-hangzhou.nas.aliyuncs.com |
| AccessPointId |
string |
The ID of the access point. |
ap-ie15yd**** |
| RequestId |
string |
The ID of the request. |
98696EF0-1607-4E9D-B01D-F20930B6**** |
Examples
Success response
JSON format
{
"AccessPoint": {
"AccessPointDomain": "ap-ie15ydanoz.001014****-w****.cn-hangzhou.nas.aliyuncs.com",
"AccessPointId": "ap-ie15yd****"
},
"RequestId": "98696EF0-1607-4E9D-B01D-F20930B6****\n"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRequest | The request is invalid. | Invalid request |
| 403 | InvalidProtocolType.NotSupported | The specified protocol type does not supported. | The specified protocol type is not supported. |
| 403 | InvalidRamRole.NotExist | The specified RAM role does not exist. | The specified RAM role does not exist. |
| 403 | InvalidRamRole.NoPermission | The specified RAM role does not have sufficient permission. | The specified RAM role does not have sufficient permission. |
| 403 | OperationDenied.AccessPointCountsExceeded | The maxium number of access point has reached its limits. | The access point of the current file system has reached the upper limit. |
| 404 | InvalidAccessGroup.NotFound | The specified AccessGroup does not exist. | The permission group that you specified does not exist or has been deleted. |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The specified file system does not exist. |
| 404 | InvalidVpc.NotFound | The specified Vpc is not found. | The specified VPC does not exist. Create a VPC first. |
| 404 | InvalidVswitch.NotFound | The specified VSwitch does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.