yc cdn resource update
Update resource
Command Usage
Syntax:
yc cdn resource update <RESOURCE-ID> [Flags...] [Global Flags...]
Flags
|
Flag |
Description |
|
|
Specifies the resource ID. |
|
|
Origin group id |
|
|
Resource labels to be added or updated |
|
|
Resource labels to be removed |
|
|
Remove all labels from the resource |
|
|
List of secondary hostnames. |
|
|
Clear secondary hostnames. |
|
|
Origin protocol. Valid values: HTTP, HTTPS, MATCH. Values: 'http', 'https', 'match' |
|
|
Specifies if resource is in active state. |
|
|
Don't use SSL certificate. |
|
|
Use Lets Encrypt GCore certificate. |
|
|
Certificate Manager certificate id. |
|
|
Disable cache. |
|
|
Caching time for a response with codes 200, 206, 301, 302 in seconds. |
|
|
List of pairs code=caching_time. |
|
|
Content will be cached according to origin cache settings. |
|
|
Clear clear cache expiration settings option. |
|
|
Cache expiration time for customers' browsers in seconds. |
|
|
Clear browser cache settings, reset them to default state. |
|
|
List of HTTP Headers that must be included in the response.Mutually exclusive with --clear-cache-http-headers |
|
|
Clear cache http header settings. |
|
|
Files with different query strings will be cached as one object. |
|
|
Files with these query strings will be cached as different objects. |
|
|
Files with these query strings will be cached as one object. |
|
|
Clear query params options. |
|
|
Files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). |
|
|
A CDN request and cache already compressed content. |
|
|
The option allows to compress content with gzip on the CDN`s end. |
|
|
The option allows to compress content with brotli on the CDN's end. |
|
|
Clear compression options.Mutually exclusive with --fetch-compressed, --gzip-on, --brotli-compression. |
|
|
Redirects HTTP requests to HTTPS. |
|
|
Redirects HTTPS requests to HTTP. |
|
|
Clear redirect options. |
|
|
Specify the Host header that CDN servers use when request content from an origin server. |
|
|
When a CDN requests content from an origin server the option allows forwarding |
|
|
Clear host options. |
|
|
Specify up to 50 custom HTTP Headers that a CDN server adds to response. |
|
|
Clear static headers option. |
|
|
The option adds the Access-Control-Allow-Origin header to responses from CDN servers. It has 3 parameters:
|
|
|
Clear CORS option. |
|
|
The list of errors which the option is applied for. Possible values: |
|
|
Clear stale option. |
|
|
The list of allowed HTTP methods. Available methods: |
|
|
Clear allowed http methods option. |
|
|
Allows caching for GET, HEAD and POST requests. |
|
|
The option is enabled by default. It allows getting 206 responses regardless settings of an origin source. |
|
|
Specify up to 50 custom HTTP Headers for a CDN server to add to request. |
|
|
Clear static request headers option. |
|
|
Wildcard additional CNAME. If a resource has a wildcard additional CNAME, |
|
|
Clear custom server name option. |
|
|
By default, files pulled from an origin source with cookies are not cached in a CDN. |
|
|
Defines flag for the Rewrite option. Possible values: |
|
|
The pattern for Rewrite. At least one group should be specified. |
|
|
Clear rewrite option. |
|
|
A key generated on clients side that will be used for URL signing. |
|
|
The type of the URL signing with secure key and IP address. The URL could be available for all IP addresses or for the only one IP. |
|
|
Clear secure key option. |
|
|
The policy type for ip address acl option. |
|
|
The list of specified IP addresses to be allowed or denied depending on acl policy type. |
|
|
Clear ip address acl option. |
|
|
Display information about the operation in progress, without waiting for the operation to complete. |
Global Flags
|
Flag |
Description |
|
|
Set the custom configuration file. |
|
|
Debug logging. |
|
|
Debug gRPC logging. Very verbose, used for debugging connection problems. |
|
|
Disable printing user intended output to stderr. |
|
|
Enable gRPC retries. By default, retries are enabled with maximum 5 attempts. |
|
|
Set the ID of the cloud to use. |
|
|
Set the ID of the folder to use. |
|
|
Set the name of the folder to use (will be resolved to id). |
|
|
Set the Cloud API endpoint (host:port). |
|
|
Set the OAuth token to use. |
|
|
Set the ID of the service account to impersonate. |
|
|
Disable opening browser for authentication. |
|
|
Set the output format: text (default), yaml, json, json-rest. |
|
|
Query to select values from the response using jq syntax |
|
|
Display help for the command. |
- Подключение группы источников при изменении настроек ресурса
- Изменение основных настроек ресурса
- Настройка кеширования ресурса
- Настройка CORS при ответах клиентам
- Настройка HTTP-заголовков запросов и ответов
- Настройка HTTP-методов
- Отключение ресурса
- Включение сжатия файлов
- Включение доступа
- Включение сегментации файлов
- Добавить или изменить метки
- Предварительная загрузка файлов на CDN-серверы
- Очистка кеша ресурса
- Настройка перенаправления запросов