You need to enable JavaScript to run this app.
导航

CreateMountPoint

最近更新时间2022.09.19 20:53:12

首次发布时间2022.09.19 20:53:12

调用 CreateMountPoint 接口创建挂载点。

请求参数

名称
类型是否必选示例值说明
FSIdStringenas-cnbj1c789dca****文件系统 ID。

VpcId

String

vpc-2feug19z3tgqo5oxruvg6****

私有网络 ID。

说明

您可以调用 DescribeVpcs 接口查询私有网络 ID。

SubnetId

String

subnet-3cj8h1e5kij286c6rrt5m****

子网 ID。

说明

您可以调用 DescribeSubnets 接口查询指定可用区内的所有子网 ID。

PGroupIdStringpgroup-default权限组 ID。

MountPointName

String

mount1

挂载点名称。命名规范如下:

  • 不能以数字、中划线(-)开头。

  • 只能包含中文、字母、数字、下划线(_)和中划线(-)。

  • 长度需要在 1~128 个字符内。

返回数据

名称类型示例值说明
MountPointIdStringmount-e6ec****挂载点 ID。

请求示例

POST /?Action=CreateMountPoint&Version=2021-01-01 HTTP/1.1
Content-Type: application/json
Host: filenas.volcengineapi.com
X-Date: 20210328T100802Z
Authorization: HMAC-SHA256 Credential=AK*********************/20210328/cn-beijing/filenas/request, SignedHeaders=x-date, Signature=*********************

{
    "FSId": "enas-cnbj1c789dca****",
    "VpcId": "vpc-2feug19z3tgqo5oxruvg6****",
    "SubnetId": "subnet-3cj8h1e5kij286c6rrt5m****",
    "PGroupId": "pgroup-default",
    "MountPointName": "mount1"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202209161825090102080171332140****",
        "Action": "CreateMountPoint",
        "Version": "2021-01-01",
        "Service": "FileNAS",
        "Region": "cn-beijing"
    },
    "Result": {
        "MountPointId": "mount-e6ec****"
    }
}