addNasVolumeAccessControl
- Print
- PDF
addNasVolumeAccessControl
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Available in VPC
Overview
Add access control to the NAS volume instance using the server instance number.
You can check set access control rights through the getNasVolumeAccessControlRuleList action.
Requests
Request parameters
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | - Region code - You can decide the region of the NAS volume instance to which access control is added - You can obtain regionCode through the getRegionList action - Default: Selects the first region of the getRegionList query results | |
nasVolumeInstanceNo | Yes | String | - NAS volume instance number to add access control to - You can obtain nasVolumeInstanceNo through the getNasVolumeInstanceList action - Only NAS volume instances whose volume allocation protocol type is NFS can set access control | |
accessControlRuleList.N.serverInstanceNo | Yes | String | - Server instance number to add to access control - You can obtain serverInstanceNo through the getServerInstanceList action | |
accessControlRuleList.N.writeAccess | No | Boolean | - Whether writing permission is allowed - Options: true | false - Default: true | |
responseFormatType | No | String | - Format type of the response result - Options: xml | json - Default: xml |
Responses
Response bodies
Examples
Request examples
GET {API_URL}/vnas/v2/addNasVolumeAccessControl
?regionCode=KR
&nasVolumeInstanceNo=***3901
&accessControlRuleList.1.serverInstanceNo=***4299
&accessControlRuleList.1.writeAccess=true
Response examples
<addNasVolumeAccessControlResponse>
<requestId>cd91cb78-84ef-4fc4-9070-934f333e21b5</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<nasVolumeInstanceList>
<nasVolumeInstance>
<nasVolumeInstanceNo>***3901</nasVolumeInstanceNo>
<nasVolumeInstanceStatus>
<code>CREAT</code>
<codeName>NAS create</codeName>
</nasVolumeInstanceStatus>
<nasVolumeInstanceOperation>
<code>NULL</code>
<codeName>NAS NULL OP</codeName>
</nasVolumeInstanceOperation>
<nasVolumeInstanceStatusName></nasVolumeInstanceStatusName>
<createDate>1970-01-01T09:00:02+0900</createDate>
<nasVolumeDescription></nasVolumeDescription>
<mountInformation>***.***.0.20:/n***4567_test***</mountInformation>
<volumeAllotmentProtocolType>
<code>NFS</code>
<codeName>NFS</codeName>
</volumeAllotmentProtocolType>
<volumeName>n***4567_test***</volumeName>
<volumeTotalSize>536870912000</volumeTotalSize>
<volumeSize>536870912000</volumeSize>
<snapshotVolumeConfigurationRatio>0.0</snapshotVolumeConfigurationRatio>
<snapshotVolumeSize>0</snapshotVolumeSize>
<isSnapshotConfiguration>false</isSnapshotConfiguration>
<isEventConfiguration>false</isEventConfiguration>
<regionCode>KR</regionCode>
<zoneCode>KR-1</zoneCode>
<nasVolumeServerInstanceNoList>
<serverInstanceNo>***4299</serverInstanceNo>
</nasVolumeServerInstanceNoList>
<isEncryptedVolume>false</isEncryptedVolume>
<nasVolumeInstanceCustomIpList/>
<isReturnProtection>false</isReturnProtection>
</nasVolumeInstance>
</nasVolumeInstanceList>
</addNasVolumeAccessControlResponse>
Was this article helpful?