你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Repository - Update Attributes
Update the attribute identified by name
where reference
is the name of the repository.
PATCH {url}/acr/v1/{name}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
name
|
path | True |
string |
Name of the image (including the namespace) |
url
|
path | True |
string |
Registry login URL |
Request Body
Name | Type | Description |
---|---|---|
deleteEnabled |
boolean |
Delete enabled |
listEnabled |
boolean |
List enabled |
readEnabled |
boolean |
Read enabled |
teleportEnabled |
boolean |
Enables Teleport functionality on new images in the repository improving Container startup performance |
writeEnabled |
boolean |
Write enabled |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The attributes are updated |
|
Other Status Codes |
ACR error response describing why the operation failed. |
Security
registry_auth
Type:
basic
Examples
Update repository attributes
Sample Request
PATCH acrapi.azurecr-test.io/acr/v1/nanoserver
{
"writeEnabled": false
}
Sample Response
Definitions
Name | Description |
---|---|
Acr |
Error information |
Acr |
Acr error response describing why the operation failed |
Repository |
Changeable attributes for Repository |
AcrErrorInfo
Error information
Name | Type | Description |
---|---|---|
code |
string |
Error code |
detail |
object |
Error details |
message |
string |
Error message |
AcrErrors
Acr error response describing why the operation failed
Name | Type | Description |
---|---|---|
errors |
Array of detailed error |
RepositoryChangeableAttributes
Changeable attributes for Repository
Name | Type | Description |
---|---|---|
deleteEnabled |
boolean |
Delete enabled |
listEnabled |
boolean |
List enabled |
readEnabled |
boolean |
Read enabled |
teleportEnabled |
boolean |
Enables Teleport functionality on new images in the repository improving Container startup performance |
writeEnabled |
boolean |
Write enabled |