简体   繁体   English

列出 EFS 中的根目录路径

[英]List out Root Directory path in EFS

So trying to list accesspoints via aws cli along with RootDirectory Path:因此,尝试通过 aws cli 列出访问点以及 RootDirectory 路径:

Here is the output of command:这是命令的output:

aws efs describe-access-points --region="us-east-1" aws efs describe-access-points --region="us-east-1"

{
"AccessPoints": [
    {
        "ClientToken": "console-3d1f4938-4969-48c2-98e5-a0bcb24ab",
        "Name": "Root-Dummy",
        "Tags": [
            {
                "Key": "Name",
                "Value": "Root-Dummy"
            }
        ],
        "AccessPointId": "fsap-0333cca0bcb24ab",
        "AccessPointArn": "arn:aws:elasticfilesystem:us-east-1:1234567:access-point/fsap-0333cca0bcb24ab",
        "FileSystemId": "fs-dffb782e",
        "RootDirectory": {
            "Path": "/"
        },
        "OwnerId": "1234567",
        "LifeCycleState": "available"
    },
    {
        "ClientToken": "console-789851e7f-5423-4179-bad0-9a5eddd774c80",
        "Name": "dummy-app",
        "Tags": [
            {
                "Key": "Name",
                "Value": "dummy-app"
            }
        ],
        "AccessPointId": "fsap-03443cca0bcb24ab",
        "AccessPointArn": "arn:aws:elasticfilesystem:us-east-1:1234567:access-point/fsap-03443cca0bcb24ab",
        "FileSystemId": "fs-dffb782e",
        "RootDirectory": {
            "Path": "/export/apps/dummy"
        },
        "OwnerId": "1234567",
        "LifeCycleState": "available"
    }
]

}

tried with below but no luck with RootDirectory Path--The command listing out all access points fine if i take out the RootDirectory from the below command尝试了下面但没有运气 RootDirectory 路径 - 如果我从下面的命令中取出 RootDirectory,则列出所有访问点的命令很好

aws efs describe-access-points --query "AccessPoints[*].{AccessPointId:AccessPointId, FileSystemID:FileSystemId, LifeCycleState:LifeCycleState, OwnerId:OwnerId,  Name:Name}, RootDirectory[*].{Path:Path}" --region="us-east-1" --output table

Looking for some inputs here where i can list accespoint ids and even Root Directory Path values在这里寻找一些输入,我可以在其中列出访问点 ID 甚至根目录路径值

I got it..this gives the required output我明白了..这给出了所需的 output

aws efs describe-access-points --query "AccessPoints[*].{AccessPointId:AccessPointId, FileSystemID:FileSystemId, LifeCycleState:LifeCycleState, OwnerId:OwnerId,  Name:Name, Path:RootDirectory.Path}" --region="us-east-1" --output table

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 需要使用 kube.netes pod 在 EFS 上创建目录 - Need to create the directory on EFS with kubernetes pod 我能否以编程方式检索 EFS 恢复点恢复到的目录? - Can I programatically retrieve the directory an EFS Recovery Point was restored to? amazon-efs 失败,服务器给出的原因:没有这样的文件或目录 - amazon-efs failed, reason given by server: No such file or directory ECS Fargate 上的 EFS 安装 - 非 root 用户的读/写权限被拒绝 - EFS mount on ECS Fargate - Read/write permissions denied for non root user 使用 EFS csi 驱动程序,我是否为具有相同 volumeHandle 的每个路径创建多个 PV,以及如何为 PVC 指定哪个 PV? - Using EFS csi driver, do I create multiple PV for each path with the same volumeHandle and how do I specify which PV for the PVC? 本地 sftp 服务器到 EFS - Onprem sftp server to EFS PHP azure网站根目录怎么修改? - How to change root directory for PHP azure website? 命令列出 - Command to list out robocopy 使用 secfix 修复仅子目录的权限,不包括根目录 - robocopy using secfix to fix permissions of ONLY subdirectories, excluding root directory Typescript 从根路径导入不起作用 - Typescript import from root path not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM