All Products
Search
Document Center

Function Compute:PutLayerACL

Last Updated:Oct 08, 2024

Modifies permissions of a layer.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

PUT /2023-03-30/layers/{layerName}/acl HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
layerNamestringYes

The layer name.

my-layer
publicdeprecatedstringNo

Specify whether the layer is a public layer. Valid values: true and false.

true
aclstringNo

Specify the access permission of the layer. A value of 1 indicates public and a value of 0 indicates private. The default value is 0.

1

Response parameters

ParameterTypeDescriptionExample
The current API has no return parameters

Examples

Sample success responses

JSONformat

{}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-03The API operation is not deprecated.. The request parameters of the API has changedView Change Details
2024-02-22The internal configuration of the API is changed, but the call is not affectedView Change Details
2023-08-30API Description UpdateView Change Details
2023-08-30API Description UpdateView Change Details
2023-06-28Add OperationView Change Details