v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Resources

Change Resource

put/security/resources/{resource_id}

Path parameters

resource_idinteger required

Resource ID.

Request body

idinteger

Resource ID.

enabledboolean

The field shows if your Resource enabled or disabled.

  • True — Resource is actived. Content is being delivered.
  • False — Resource is deactivated and content is not being delivered.

This parameter is read only.

activeboolean

You can control enabled or disabled state of the Resource by setting value for this parameter.

namestring

The domain name of the protected resource.

is_waf_enabledboolean

Enable or disable WAF for ddos resource.

is_redirect_to_https_enabledboolean

With this option, all requests through http will be redirected to https. Only applied if ssl certificate is provided. Value true is used by default
Available values:

  • true - Enabled
  • false - Disabled
statusstring

The status of the Protection service.

Active status means that your Resources is active. Suspended status means that your trial ended or your account is blocked.

In case of questions contact us at support@gcore.com

clientinteger

ID of your control panel.

service_ipstring

Protected IP address. You should set it as A-record for your domain name.

service_botprotectinteger

Available values:

  • 0 - Disabled
  • 4 - Enabled
ssl_typestring

Enable or disable using HTTPS with SSL certificate for the resource.
Available values:

  • null - Disabled
  • custom - Custom SSL certificate enabled
  • le - Let's Encrypt SSL certificate enabled

To enable custom SSL certificate you should set service_ssl_crt and service_ssl_key parameters.

service_ssl_crtstring

Custom SSL certificate for the Resource.

service_ssl_keystring

Private key for custom SSL certificate.

service_geoip_modeinteger

The parameter that determines the access policy for the protected resource. Sets up together with service_geoip_list. Available values:

  • 0 - Disabled
  • 1 - Allow, except list
  • 2 - Deny, except list
service_geoip_liststring

This parameter sets up a list of countries for geo restrictions for the protected resource. Should be set together with parameter service_geoip_mode.

service_https2httpinteger

With this option, your website can be accessible to users via HTTPS, and the connection between the DDoS Protection platform and your web server will be via HTTP.
Available values:

  • 0 - Disabled
  • 1 - Enabled
service_wwwredirinteger

This parameter allows to set up a redirect from the www.domain.com to domain.com.
Available values:

  • 0 - Disabled
  • 1 - Enabled
service_cdninteger

For internal use.

service_cdn_hoststring

For internal use.

service_cdn_proxy_hoststring

For internal use.

service_enableinteger

For internal use.

service_forcesslinteger

For internal use.

service_global_whitelistinteger

For internal use.

service_http2integer

For internal use.

service_idinteger

For internal use.

service_iphashinteger

For internal use.

service_methodsinteger

For internal use.

service_streaminteger

For internal use.

createdstring

Shows the date when the Resource was created.

updatedstring

Shows the date when the Resource was changed.

aliasesobject

Aliases for the Resource.

originsobject

Origins for the Resource.

rate_limier_rulesobject

Enable rate limiter rules for endpoints

whitelistsobject

Whitelists for the Resource.

blacklistsobject

Blacklists for the Resource.

Response

Successful. You will see renewed details of the Resource in the response.