弹性文件服务 SFS-设置文件系统ACL:请求示例

时间:2024-11-05 14:09:45

请求示例

设置文件系统ACL,授予读写权限,VPC ID为“241dbf6b-dc5d-41b2-9108-ca5e56b48386”,IP范围为["127.0.0.1/24", "192.168.1.85/24"]。

PUT /?sfsacl HTTP/1.1
Host: examplefilesystem.sfs3.cn-north-4.myhuaweicloud.com
Date: WED, 01 Jul 2015 02:32:25 GMT
Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA=

{
	"Statement": [{
		"Sid": "Stmt1375240018061",
		"Action": "FullControl",
		"Effect": "Allow",
		"Condition": {
			"SourceVpc": "241dbf6b-dc5d-41b2-9108-ca5e56b48386",
			"VpcSourceIp": ["127.0.0.1/24", "192.168.1.85/24"]
		}
	}]
}
support.huaweicloud.com/api-sfs/sfs_02_0116.html