Retrieves the repository archive policy for the instance. The user must be authenticated to access this resource.
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
A response containing the repository archive policy for the instance
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/policies/latest/admin/repos/archive' \
--header 'Accept: application/json'
1
2
3
{
"permission": "ADMIN"
}
Sets the repository archive policy for the instance.
The authenticated user must have SYS_ADMIN permission.
Forge and OAuth2 apps cannot access this REST resource.
The request containing the details of the policy.
string
A response containing the repository archive policy for the instance
1
2
3
4
5
6
7
curl --request PUT \
--url 'http://{baseurl}/rest/policies/latest/admin/repos/archive' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"permission": "ADMIN"
}'
1
2
3
{
"permission": "ADMIN"
}
Retrieves the repository delete policy for the instance. The user must be authenticated to access this resource.
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
A response containing the repository delete policy for the instance
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/policies/latest/admin/repos/delete' \
--header 'Accept: application/json'
1
2
3
{
"permission": "ADMIN"
}
Sets the repository delete policy for the instance.
The authenticated user must have SYS_ADMIN permission.
Forge and OAuth2 apps cannot access this REST resource.
The request containing the details of the policy.
string
A response containing the repository delete policy for the instance
1
2
3
4
5
6
7
curl --request PUT \
--url 'http://{baseurl}/rest/policies/latest/admin/repos/delete' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"permission": "ADMIN"
}'
1
2
3
{
"permission": "ADMIN"
}
Rate this page: