Cria um ponto de montagem.
Descrição da operação
Ao chamar a operação CreateMountTarget para criar um ponto de montagem, alguns recursos são gerados de forma assíncrona. Após a operação CreateMountTarget ser bem-sucedida, invoque primeiro a operação DescribeMountTargets para consultar o status do ponto de montagem. Execute a operação de montagem do sistema de arquivos somente após o status do ponto de montagem mudar para Active. Caso contrário, a operação de montagem poderá falhar.
A invocação desta operação aciona a criação automática da função vinculada ao serviço necessária para a operação. Para mais informações, consulte Gerenciar a função vinculada ao serviço para NAS.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
nas:CreateMountTarget |
create |
*FileSystem
*VSwitch
|
|
Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| FileSystemId |
string |
Sim |
O ID do sistema de arquivos.
|
174494**** |
| AccessGroupName |
string |
Não |
O nome do grupo de permissões. Este parâmetro é obrigatório se o sistema de arquivos for um sistema de arquivos NAS de uso geral ou NAS Extreme. Grupo de permissões padrão: DEFAULT_VPC_GROUP_NAME (o grupo de permissões padrão para VPCs). |
vpc-test |
| NetworkType |
string |
Sim |
O tipo de rede do ponto de montagem. Defina o valor como Vpc, que indica uma nuvem privada virtual (VPC). Valores válidos:
|
Vpc |
| VpcId |
string |
Não |
O ID da VPC. Este parâmetro é obrigatório e válido apenas quando o tipo de rede é VPC. Por exemplo: Se NetworkType estiver definido como VPC, VpcId é obrigatório. |
vpc-2zesj9afh3y518k9o**** |
| VSwitchId |
string |
Não |
O ID do vSwitch. Este parâmetro é obrigatório e válido apenas quando o tipo de rede é VPC. Por exemplo: Se NetworkType estiver definido como VPC, VSwitchId é obrigatório. |
vsw-2zevmwkwyztjuoffg**** |
| SecurityGroupId |
string |
Não |
O ID do grupo de segurança. |
sg-bp1fg655nh68xyz9**** |
| EnableIpv6 |
boolean |
Não |
Especifica se deve ser criado um ponto de montagem IPv6. Valores válidos:
Nota
O IPv6 é suportado apenas por sistemas de arquivos NAS Extreme em todas as regiões da China continental. O sistema de arquivos deve ter o IPv6 ativado. |
true |
| DryRun |
boolean |
Não |
Especifica se deve ser verificada a existência de pontos de montagem. Apenas sistemas de arquivos CPFS são suportados. Um dry run verifica a validade dos parâmetros e o inventário sem criar realmente um ponto de montagem ou incorrer em taxas.
|
false |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
70EACC9C-D07A-4A34-ADA4-77506C42**** |
| MountTargetDomain |
string |
O ponto de montagem IPv4. |
174494b666-x****.cn-hangzhou.nas.aliyuncs.com |
| MountTargetExtra |
object |
As informações do ponto de montagem. |
|
| DualStackMountTargetDomain |
string |
O ponto de montagem de pilha dupla que suporta IPv4 e IPv6. |
174494b666-x****.dualstack.cn-hangzhou.nas.aliyuncs.com |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "70EACC9C-D07A-4A34-ADA4-77506C42****",
"MountTargetDomain": "174494b666-x****.cn-hangzhou.nas.aliyuncs.com",
"MountTargetExtra": {
"DualStackMountTargetDomain": "174494b666-x****.dualstack.cn-hangzhou.nas.aliyuncs.com"
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 202 | RequestAccepted | The request has been accepted by the server. | The request has been accepted by the server. |
| 400 | InvalidFileSystem.NotsupportedIPv6 | The file system does not support IPv6. | The file system does not support IPv6. |
| 400 | InvalidVSwitch.Ipv6NotTurnOn | The VSwitch you are currently using has not enabled the IPv6 function. Please enable this function first and try again. | |
| 400 | IdempotentParameterMismatch | The same client token was passed in to different parameters. | The same client token was passed in to different parameters. |
| 400 | MissingParameter.AccessGroupName | You must specify AccessGroupName when you create a standard or extreme file system mount target. | You must specify AccessGroupName when you create a standard or extreme file system mount target. |
| 400 | InvalidVSwitchId.IpNotEnough | The number of the specified VSwitch IP address is insufficient. | |
| 400 | InvalidParameter.ConflictVpcCidr | The specified VPC CIDR conflicts with the server. | The specified VPC CIDR conflicts with the server. |
| 400 | DryRunOperation | The request is validated with DryRun flag set. | The request is validated with DryRun flag set. |
| 400 | SubAccount.NoStandardSLRPermission | The RAM user does not have the permission to create service linked role AliyunServiceRoleForNasStandard. Please authorize the RAM user the permission ram:CreateServiceLinkedRole. | The RAM user does not have the permission to create service linked role AliyunServiceRoleForNasStandard. Please authorize the RAM user the permission ram:CreateServiceLinkedRole. |
| 403 | OperationDenied.InvalidState | The operation is not permitted when the status is processing. | The operation is not permitted when the status is processing. |
| 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 | InvalidMountTarget.AlreadyExisted | The specified mount target already exists. | The specified mount target already exists. |
| 403 | Resource.OutOfStock | The inventory of the specified zone is insufficient. | The inventory of the specified zone is insufficient. |
| 403 | OperationDenied.MountTargetExceedLimit | The maximum number of mount target in the specified file system is exceeded. | The maximum number of mount target in the specified file system is exceeded. |
| 404 | InvalidParameter.VswNotFound | The specified VSwitch does not exist. | |
| 404 | InvalidParameter.VpcNotFound | The specified VPC does not exist. | The specified VPC does not exist. |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | The specified file system does not exist. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.