List zone rulesets

GET /v1/{crn}/zones/{zone_identifier}/rulesets

List all rulesets at the zone level.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets.read

Request

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Container for response information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get a zone ruleset

GET /v1/{crn}/zones/{zone_identifier}/rulesets/{ruleset_id}

View a specific zone ruleset.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets.read

Request

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_id

Required *

string

ID of a specific ruleset

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

ruleset_details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update a zone ruleset

PUT /v1/{crn}/zones/{zone_identifier}/rulesets/{ruleset_id}

Update a specific zone ruleset.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets.update

Request

Request Body

ruleset_update

description

string

Description of the ruleset

kind

string

name

string

Human readable name of the ruleset.

phase

string

The phase of the ruleset.

rules

array

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_id

Required *

string

ID of a specific ruleset

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

ruleset_details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete a zone ruleset

DELETE /v1/{crn}/zones/{zone_identifier}/rulesets/{ruleset_id}

Delete a specific zone ruleset.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets.delete

Request

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_id

Required *

string

ID of a specific ruleset

Query Parameters

Response

204 - Success

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List version of a zone ruleset

GET /v1/{crn}/zones/{zone_identifier}/rulesets/{ruleset_id}/versions

List all versions of a specific zone ruleset.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets-versions.read

Request

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_id

Required *

string

ID of a specific ruleset

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Container for response information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get a specific version of a zone ruleset

GET /v1/{crn}/zones/{zone_identifier}/rulesets/{ruleset_id}/versions/{ruleset_version}

View a specific version of a specific zone ruleset.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets-versions.read

Request

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_id

Required *

string

ID of a specific ruleset

ruleset_version

Required *

string

The version of the ruleset

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

ruleset_details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete a specific version of a zone ruleset

DELETE /v1/{crn}/zones/{zone_identifier}/rulesets/{ruleset_id}/versions/{ruleset_version}

Delete a specific version of a specific zone ruleset.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets-versions.delete

Request

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_id

Required *

string

ID of a specific ruleset

ruleset_version

Required *

string

The version of the ruleset

Query Parameters

Response

204 - Success

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get a zone entrypoint ruleset

GET /v1/{crn}/zones/{zone_identifier}/rulesets/phases/{ruleset_phase}/entrypoint

Get the zone ruleset for the given phase's entrypoint.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets-phases-entrypoint.read

Request

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_phase

Required *

The phase of the ruleset

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

ruleset_details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update a zone entrypoint ruleset

PUT /v1/{crn}/zones/{zone_identifier}/rulesets/phases/{ruleset_phase}/entrypoint

Updates the instance ruleset for the given phase's entry point.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets-phases-entrypoint.update

Request

Request Body

ruleset_update

description

string

Description of the ruleset

kind

string

name

string

Human readable name of the ruleset.

phase

string

The phase of the ruleset.

rules

array

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_phase

Required *

The phase of the ruleset

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

ruleset_details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List a zone entry point ruleset's versions

GET /v1/{crn}/zones/{zone_identifier}/rulesets/phases/{ruleset_phase}/entrypoint/versions

Lists the zone ruleset versions for the given phase's entry point.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets-phases-entrypoint-versions.read

Request

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_phase

Required *

The phase of the ruleset

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Container for response information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get a zone entry point ruleset version

GET /v1/{crn}/zones/{zone_identifier}/rulesets/phases/{ruleset_phase}/entrypoint/versions/{ruleset_version}

Fetches a specific version of a zone entry point ruleset.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets-phases-entrypoint-versions.read

Request

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_phase

Required *

The phase of the ruleset

ruleset_version

Required *

string

The version of the ruleset

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

ruleset_details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create a zone ruleset rule

POST /v1/{crn}/zones/{zone_identifier}/rulesets/{ruleset_id}/rules

Create a zone ruleset rule.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets-rules.create

Request

Request Body

rule_create

action

Required *

string

What happens when there is a match for the rule expression

action_parameters

action_parameters

id

string

Unique ID of the ruleset

overrides

object

version

string

The version of the ruleset. Use "latest" to get the latest version.

ruleset

string

Ruleset ID of the ruleset to apply action to. Use "current" to apply to the current ruleset.

rulesets

array

List of ruleset ids to apply action to. Use "current" to apply to the current ruleset.

response

object

description

string

enabled

boolean

expression

Required *

string

The expression defining which traffic will match the rule.

id

string

logging

logging

enabled

Required *

boolean

ref

string

The reference of the rule (the rule ID by default).

position

position

before

string

The rule ID to place this rule before

after

string

The rule ID to place this rule after

index

integer

The index to place this rule at

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_id

Required *

string

ID of a specific ruleset

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

rule_details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update a zone ruleset rule

PATCH /v1/{crn}/zones/{zone_identifier}/rulesets/{ruleset_id}/rules/{rule_id}

Update a zone ruleset rule.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets-rules.update

Request

Request Body

rule_update

action

string

What happens when there is a match for the rule expression

action_parameters

action_parameters

id

string

Unique ID of the ruleset

overrides

object

version

string

The version of the ruleset. Use "latest" to get the latest version.

ruleset

string

Ruleset ID of the ruleset to apply action to. Use "current" to apply to the current ruleset.

rulesets

array

List of ruleset ids to apply action to. Use "current" to apply to the current ruleset.

response

object

description

string

enabled

boolean

expression

string

The expression defining which traffic will match the rule.

id

string

logging

logging

enabled

Required *

boolean

ref

string

The reference of the rule (the rule ID by default).

position

position

before

string

The rule ID to place this rule before

after

string

The rule ID to place this rule after

index

integer

The index to place this rule at

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_id

Required *

string

ID of a specific ruleset

rule_id

Required *

string

ID of a specific rule

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

rule_details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete a zone ruleset rule

DELETE /v1/{crn}/zones/{zone_identifier}/rulesets/{ruleset_id}/rules/{rule_id}

Delete an instance ruleset rule.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zone-rulesets-rules.delete

Request

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

ruleset_id

Required *

string

ID of a specific ruleset

rule_id

Required *

string

ID of a specific rule

Query Parameters

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

rule_details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get Routing feature smart routing setting

GET /v1/{crn}/zones/{zone_identifier}/routing/smart_routing

Get Routing feature smart routing setting for a zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.smart-routing.read

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update Routing feature smart route setting

PATCH /v1/{crn}/zones/{zone_identifier}/routing/smart_routing

Update Routing feature smart route setting for a zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.smart-routing.update

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: off

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get zone DNSSEC

GET /v1/{crn}/zones/{zone_identifier}/dnssec

Get DNSSEC setting for a given zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.dnssec.read

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

zoneIdentifier

Required *

string

Zone identifier to identifiy the zone.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Container for response information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update zone DNSSEC

PATCH /v1/{crn}/zones/{zone_identifier}/dnssec

Update DNSSEC setting for given zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.dnssec.update

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

zoneIdentifier

Required *

string

Identifier of zone.

status

string

Status.

Example: active

Allowed values: active, disabled

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Container for response information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get zone CNAME flattening

GET /v1/{crn}/zones/{zone_identifier}/settings/cname_flattening

Get CNAME flattening setting for a given zone.

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

zoneIdentifier

Required *

string

Identifier of zone.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

cname_flattening_response

CNAME Flattening response

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update zone CNAME flattening

PATCH /v1/{crn}/zones/{zone_identifier}/settings/cname_flattening

Update CNAME flattening setting for given zone.

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

zoneIdentifier

Required *

string

Identifier of zone.

value

string

Valid values are "flatten_at_root", "flatten_all". "flatten_at_root" - Flatten CNAME at root domain. This is the default value. "flatten_all" - Flatten all CNAME records under your domain.

Example: flatten_all

Allowed values: flatten_at_root, flatten_all

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

cname_flattening_response

CNAME Flattening response

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get opportunistic encryption setting

GET /v1/{crn}/zones/{zone_identifier}/settings/opportunistic_encryption

Get opportunistic encryption setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update opportunistic encryption setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/opportunistic_encryption

Update opportunistic encryption setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: off

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get challenge TTL setting

GET /v1/{crn}/zones/{zone_identifier}/settings/challenge_ttl

Get challenge TTL setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update challenge TTL setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/challenge_ttl

Update challenge TTL setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

number

Value.

Example: 1800

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get automatic https rewrites setting

GET /v1/{crn}/zones/{zone_identifier}/settings/automatic_https_rewrites

Get automatic https rewrites setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update automatic https rewrites setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/automatic_https_rewrites

Update automatic https rewrites setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: off

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get true client IP setting

GET /v1/{crn}/zones/{zone_identifier}/settings/true_client_ip_header

Get true client IP setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update true client IP setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/true_client_ip_header

Update true client IP setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get always use https setting

GET /v1/{crn}/zones/{zone_identifier}/settings/always_use_https

Get always use https setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update always use https setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/always_use_https

Update always use https setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get image size optimization setting

GET /v1/{crn}/zones/{zone_identifier}/settings/image_size_optimization

Get image size optimization setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update image size optimization setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/image_size_optimization

Update image size optimization setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Valid values are "lossy", "off", "lossless". "lossy" - The file size of JPEG images is reduced using lossy compression, which may reduce visual quality. "off" - Disable Image Size Optimization. "lossless" - Reduce the size of image files without impacting visual quality.

Example: lossless

Allowed values: off, lossless, lossy

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get script load optimization setting

GET /v1/{crn}/zones/{zone_identifier}/settings/script_load_optimization

Get script load optimization setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update script load optimization setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/script_load_optimization

Update script load optimization setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get image load optimization setting

GET /v1/{crn}/zones/{zone_identifier}/settings/image_load_optimization

Get image load optimization setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update image load optimization setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/image_load_optimization

Update image load optimization setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get minify setting

GET /v1/{crn}/zones/{zone_identifier}/settings/minify

Get minify setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update minify setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/minify

Update minify setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

MinifySettingValue

Value.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get minimum TLS version setting

GET /v1/{crn}/zones/{zone_identifier}/settings/min_tls_version

Get minimum TLS version setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update minimum TLS version setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/min_tls_version

Update minimum TLS version setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: 1.2

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get IP geolocation setting

GET /v1/{crn}/zones/{zone_identifier}/settings/ip_geolocation

Get IP geolocation setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update IP geolocation setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/ip_geolocation

Update IP geolocation setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get server side exclude setting

GET /v1/{crn}/zones/{zone_identifier}/settings/server_side_exclude

Get server side exclude setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update server side exclude setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/server_side_exclude

Update server side exclude setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get HTTP strict transport security setting

GET /v1/{crn}/zones/{zone_identifier}/settings/security_header

Get HTTP strict transport security setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update HTTP strict transport security setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/security_header

Update HTTP strict transport security setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

SecurityHeaderSettingValue

Value.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get mobile redirect setting

GET /v1/{crn}/zones/{zone_identifier}/settings/mobile_redirect

Get mobile redirect setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update mobile redirect setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/mobile_redirect

Update mobile redirect setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

MobileRedirecSettingValue

Value.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get prefetch URLs from header setting

GET /v1/{crn}/zones/{zone_identifier}/settings/prefetch_preload

Get prefetch URLs from header setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update prefetch URLs from header setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/prefetch_preload

Update prefetch URLs from header setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get HTTP/2 setting

GET /v1/{crn}/zones/{zone_identifier}/settings/http2

Get HTTP/2 setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update HTTP/2 setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/http2

Update HTTP/2 setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get HTTP/3 setting

GET /v1/{crn}/zones/{zone_identifier}/settings/http3

Get HTTP/3 setting for a zone.

Request

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

Query Parameters

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update HTTP/3 setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/http3

Update HTTP/3 setting for a zone.

Request

Request Body

zone_property_on_off_setting

Update HTTP/3 setting

value

Required *

string

Value

Path Parameters

crn

Required *

string

Full URL-encoded cloud resource name of the service instance

zone_identifier

Required *

string

Zone identifier

Query Parameters

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get IPv6 compatibility setting

GET /v1/{crn}/zones/{zone_identifier}/settings/ipv6

Get IPv6 compatibility setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update IPv6 compatibility setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/ipv6

Update IPv6 compatibility setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get web sockets setting

GET /v1/{crn}/zones/{zone_identifier}/settings/websockets

Get web sockets setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update web sockets setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/websockets

Update web sockets setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get pseudo IPv4 setting

GET /v1/{crn}/zones/{zone_identifier}/settings/pseudo_ipv4

Get pseudo IPv4 setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update pseudo IPv4 setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/pseudo_ipv4

Update pseudo IPv4 setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: add_header

Allowed values: off, add_header, overwrite_header

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get response buffering setting

GET /v1/{crn}/zones/{zone_identifier}/settings/response_buffering

Get response buffering setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update response buffering setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/response_buffering

Update response buffering setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get maximum upload size setting

GET /v1/{crn}/zones/{zone_identifier}/settings/max_upload

Get maximum upload size setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update maximum upload size setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/max_upload

Update maximum upload size setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

number

Valid values(in MB) for "max_upload" are 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500. Values 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500 are only for Enterprise Plan.

Example: 300

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get TLS Client Auth setting

GET /v1/{crn}/zones/{zone_identifier}/settings/tls_client_auth

Get TLS Client Auth setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update TLS Client Auth setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/tls_client_auth

Update TLS Client Auth setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get browser check setting

GET /v1/{crn}/zones/{zone_identifier}/settings/browser_check

Get browser check setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update browser check setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/browser_check

Update browser check setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get enable error pages on setting

GET /v1/{crn}/zones/{zone_identifier}/settings/origin_error_page_pass_thru

Get enable error pages on setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update enable error pages on setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/origin_error_page_pass_thru

Update enable error pages on setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get web application firewall setting

GET /v1/{crn}/zones/{zone_identifier}/settings/waf

Get web application firewall setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update web application firewall setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/waf

A Web Application Firewall (WAF) blocks requests that contain malicious content.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string

Value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Get ciphers setting

GET /v1/{crn}/zones/{zone_identifier}/settings/ciphers

Get ciphers setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

Update ciphers setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/ciphers

Update ciphers setting for a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

value

string[]

Value.

Example: ["AES256-GCM-SHA384","AES256-SHA256"]

Allowed values: ECDHE-ECDSA-AES128-GCM-SHA256, ECDHE-ECDSA-CHACHA20-POLY1305, ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-CHACHA20-POLY1305, ECDHE-ECDSA-AES128-SHA256, ECDHE-ECDSA-AES128-SHA, ECDHE-RSA-AES128-SHA256, ECDHE-RSA-AES128-SHA, AES128-GCM-SHA256, AES128-SHA256, AES128-SHA, ECDHE-ECDSA-AES256-GCM-SHA384, ECDHE-ECDSA-AES256-SHA384, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-RSA-AES256-SHA384, ECDHE-RSA-AES256-SHA, AES256-GCM-SHA384, AES256-SHA256, AES256-SHA, DES-CBC3-SHA

Response

200 - Success

result

object

Container for response information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

500 - Internal server error

List all load balancers

GET /v1/{crn}/zones/{zone_identifier}/load_balancers

List configured load balancers.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.load-balancers.read

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

zoneIdentifier

Required *

string

zone identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

load_balancer_result

Result

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create load balancer

POST /v1/{crn}/zones/{zone_identifier}/load_balancers

Create a load balancer for a given zone. The zone should be active before placing an order of a load balancer.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.load-balancers.create

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

zoneIdentifier

Required *

string

zone identifier.

name

string

name.

Example: www.example.com

fallbackPool

string

fallback pool.

Example: 17b5962d775c646f3f9725cbc7a53df4

defaultPools

string[]

default pools.

Example: ["17b5962d775c646f3f9725cbc7a53df4","9290f38c5d07c2e2f4df57b1f61d4196","00920f38ce07c2e2f4df50b1f61d4194"]

description

string

desc.

Example: Load Balancer for www.example.com

ttl

number

ttl.

Example: 30

regionPools

JsonObject

region pools.

Example: {"WNAM":["de90f38ced07c2e2f4df50b1f61d4194","9290f38c5d07c2e2f4df57b1f61d4196"],"ENAM":["00920f38ce07c2e2f4df50b1f61d4194"]}

popPools

JsonObject

pop pools.

Example: {"LAX":["de90f38ced07c2e2f4df50b1f61d4194","9290f38c5d07c2e2f4df57b1f61d4196"],"LHR":["abd90f38ced07c2e2f4df50b1f61d4194","f9138c5d07c2e2f4df57b1f61d4196"],"SJC":["00920f38ce07c2e2f4df50b1f61d4194"]}

proxied

boolean

proxied.

Example: true

enabled

boolean

enabled/disabled.

Example: true

sessionAffinity

string

session affinity.

Example: ip_cookie

Allowed values: , none, cookie, ip_cookie

steeringPolicy

string

steering policy.

Example: dynamic_latency

Allowed values: , off, geo, random, dynamic_latency

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

load_balancer_pack

Load balancer pack

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Edit load balancer

PUT /v1/{crn}/zones/{zone_identifier}/load_balancers/{load_balancer_identifier}

Edit porperties of an existing load balancer.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.load-balancers.update

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

zoneIdentifier

Required *

string

zone identifier.

loadBalancerIdentifier

Required *

string

load balancer identifier.

name

string

name.

Example: www.example.com

fallbackPool

string

fallback pool.

Example: 17b5962d775c646f3f9725cbc7a53df4

defaultPools

string[]

default pools.

Example: ["17b5962d775c646f3f9725cbc7a53df4","9290f38c5d07c2e2f4df57b1f61d4196","00920f38ce07c2e2f4df50b1f61d4194"]

description

string

desc.

Example: Load Balancer for www.example.com

ttl

number

ttl.

Example: 30

regionPools

JsonObject

region pools.

Example: {"WNAM":["de90f38ced07c2e2f4df50b1f61d4194","9290f38c5d07c2e2f4df57b1f61d4196"],"ENAM":["00920f38ce07c2e2f4df50b1f61d4194"]}

popPools

JsonObject

pop pools.

Example: {"LAX":["de90f38ced07c2e2f4df50b1f61d4194","9290f38c5d07c2e2f4df57b1f61d4196"],"LHR":["abd90f38ced07c2e2f4df50b1f61d4194","f9138c5d07c2e2f4df57b1f61d4196"],"SJC":["00920f38ce07c2e2f4df50b1f61d4194"]}

proxied

boolean

proxied.

Example: true

enabled

boolean

enabled/disabled.

Example: true

sessionAffinity

string

session affinity.

Example: ip_cookie

Allowed values: , none, cookie, ip_cookie

steeringPolicy

string

steering policy.

Example: dynamic_latency

Allowed values: , off, geo, random, dynamic_latency

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

load_balancer_pack

Load balancer pack

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete load balancer

DELETE /v1/{crn}/zones/{zone_identifier}/load_balancers/{load_balancer_identifier}

Delete a load balancer.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.load-balancers.delete

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

zoneIdentifier

Required *

string

zone identifier.

loadBalancerIdentifier

Required *

string

load balancer identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get load balancer

GET /v1/{crn}/zones/{zone_identifier}/load_balancers/{load_balancer_identifier}

For a given zone identifier and load balancer ID, get the load balancer settings.

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

zoneIdentifier

Required *

string

zone identifier.

loadBalancerIdentifier

Required *

string

load balancer identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

load_balancer_pack

Load balancer pack

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Export zone file

GET /v1/{crn}/zones/{zone_identifier}/dns_records_bulk

Export zone file

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.dns-records-bulk.read

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

zoneIdentifier

Required *

string

Identifier of zone.

Response

200 - Success

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Import zone file

POST /v1/{crn}/zones/{zone_identifier}/dns_records_bulk

Import zone file

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.dns-records-bulk.create

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

zoneIdentifier

Required *

string

Identifier of zone.

file

NodeJS.ReadableStream|Buffer

file to upload.

fileContentType

string

The content type of file.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

DNS record

timing

object

Timing object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all firewall access rules

GET /v1/{crn}/zones/{zone_identifier}/firewall/access_rules/rules

List all firewall access rules for a zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.ip-firewall-rules.read

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier of the zone for which acess rule is created.

notes

string

Search access rules by note.(Not case sensitive).

mode

string

Search access rules by mode.

Example: block

Allowed values: block, challenge, whitelist, js_challenge

configurationTarget

string

Search access rules by configuration target.

Example: ip

Allowed values: ip, ip_range, asn, country

configurationValue

string

Search access rules by configuration value which can be IP, IPrange, or country code.

Example: 1.2.3.4

page

number

Page number of paginated results.

perPage

number

Maximum number of access rules per page.

order

string

Field by which to order list of access rules.

Allowed values: configuration.target, configuration.value, mode

direction

string

Direction in which to order results [ascending/descending order].

Allowed values: asc, desc

match

string

Whether to match all (all) or atleast one search parameter (any).

Allowed values: any, all

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Container for response information

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create firewall access rule

POST /v1/{crn}/zones/{zone_identifier}/firewall/access_rules/rules

Create a new firewall access rule for a given zone under a service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.ip-firewall-rules.create

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier of the zone for which zone access rule is to be created.

mode

string

The action to apply to a matched request.

Allowed values: block, challenge, whitelist, js_challenge

notes

string

A personal note about the rule. Typically used as a reminder or explanation for the rule.

Example: This rule is added because of event X that occurred on date xyz

configuration

ZoneAccessRuleInputConfiguration

Configuration object specifying access rule.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

zone_access_rule_object

Access rule object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete firewall access rule

DELETE /v1/{crn}/zones/{zone_identifier}/firewall/access_rules/rules/{accessrule_identifier}

Delete an access rule, given its ID.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.ip-firewall-rules.delete

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Identifier of zone whose access rule is to be deleted.

accessruleIdentifier

Required *

string

Identifier of the access rule to be deleted.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Container for response information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get firewall access rule

GET /v1/{crn}/zones/{zone_identifier}/firewall/access_rules/rules/{accessrule_identifier}

Get the details of a firewall access rule for a given zone under a given service instance.

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier (zone id).

accessruleIdentifier

Required *

string

Identifier of firewall access rule for the given zone.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

zone_access_rule_object

Access rule object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update firewall access rule

PATCH /v1/{crn}/zones/{zone_identifier}/firewall/access_rules/rules/{accessrule_identifier}

Update an existing firewall access rule for a given zone under a given service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.ip-firewall-rules.update

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier (zone id).

accessruleIdentifier

Required *

string

Identifier of firewall access rule.

mode

string

The action to apply to a matched request.

Allowed values: block, challenge, whitelist, js_challenge

notes

string

A personal note about the rule. Typically used as a reminder or explanation for the rule.

Example: This rule is added because of event X that occurred on date xyz

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

zone_access_rule_object

Access rule object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all user-agent blocking rules

GET /v1/{crn}/zones/{zone_identifier}/firewall/ua_rules

List all user agent blocking rules.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.ua-rules.read

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier of the zone for which user-agent rule is created.

page

number

Page number of paginated results.

perPage

number

Maximum number of user-agent rules per page.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Container for response information

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create user-agent blocking rule

POST /v1/{crn}/zones/{zone_identifier}/firewall/ua_rules

Create a new user-agent blocking rule for a given zone under a service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.ua-rules.create

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier of the zone for which user-agent rule is to be created.

mode

string

The type of action to perform.

Allowed values: block, challenge, js_challenge

configuration

UseragentRuleInputConfiguration

Target/Value pair to use for this rule. The value is the exact UserAgent to match.

paused

boolean

Whether this user-agent rule is currently disabled.

description

string

Some useful information about this rule to help identify the purpose of it.

Example: Prevent access from abusive clients identified by this UserAgent to mitigate DDoS attack

Constraints:

  • Max length: 1024

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

useragent_rule_object

User agent rule object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete user-agent blocking rule

DELETE /v1/{crn}/zones/{zone_identifier}/firewall/ua_rules/{useragent_rule_identifier}

Delete a user-agent blocking rule for a particular zone, given its ID.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.ua-rules.delete

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Identifier of zone whose user-agent rule is to be deleted.

useragentRuleIdentifier

Required *

string

Identifier of the user-agent rule to be deleted.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Container for response information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get user-agent blocking rule

GET /v1/{crn}/zones/{zone_identifier}/firewall/ua_rules/{useragent_rule_identifier}

For a given service instance, zone ID and user-agent rule ID, get the user-agent blocking rule details.

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier (zone id).

useragentRuleIdentifier

Required *

string

Identifier of user-agent blocking rule for the given zone.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

useragent_rule_object

User agent rule object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update user-agent blocking rule

PUT /v1/{crn}/zones/{zone_identifier}/firewall/ua_rules/{useragent_rule_identifier}

Update an existing user-agent blocking rule for a given zone under a given service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.ua-rules.update

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier (zone id).

useragentRuleIdentifier

Required *

string

Identifier of user-agent rule.

mode

string

The type of action to perform.

Allowed values: block, challenge, js_challenge

configuration

UseragentRuleInputConfiguration

Target/Value pair to use for this rule. The value is the exact UserAgent to match.

paused

boolean

Whether this user-agent rule is currently disabled.

description

string

Some useful information about this rule to help identify the purpose of it.

Example: Prevent access from abusive clients identified by this UserAgent to mitigate DDoS attack

Constraints:

  • Max length: 1024

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

useragent_rule_object

User agent rule object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all load balancer events

GET /v1/{crn}/load_balancers/events

Get load balancer events for all origins.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.zones.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.load-balancer-events.read

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

Response

200 - Success

success

boolean

Was operation successful

result

array

Result of the operation

result_info

result_info

Result information

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get WAF setting

GET /v1/{crn}/zones/{zone_id}/settings/waf

Get WAF of a specific zone. WAF is moving to the Managed Rules engine for enhanced performance and security. For information about migrating to Managed Rules, see Migration to managed rules. This API is not available post-migration.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result

400 - Bad Request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal Server Error

504 - Gateway Timeout! Backendendpoint did not respond on time

Set WAF setting

PATCH /v1/{crn}/zones/{zone_id}/settings/waf

Set WAF (on | off) for a specific zone. WAF is moving to the Managed Rules engine for enhanced performance and security. For information about migrating to Managed Rules, see Migration to managed rules. This API is not available post-migration.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

value

string

value.

Example: on

Allowed values: on, off

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result

400 - Bad Request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal Server Error

504 - Gateway Timeout! Backendendpoint did not respond on time

Get security-level setting

GET /v1/{crn}/zones/{zone_identifier}/settings/security_level

For a given zone identifier, get security-level setting.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

Response

200 - Success

result

object

Result object

result_info

result_info

Result information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Set security-level setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/security_level

For a given zone identifier, set security-level setting.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

value

string

security level.

Example: under_attack

Allowed values: essentially_off, low, medium, high, under_attack

Response

200 - Success

result

object

Result object

result_info

result_info

Result information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all rate limits

GET /v1/{crn}/zones/{zone_identifier}/rate_limits

The details of Rate Limit for a given zone under a given service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.rate-limits.read

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier of the zone for which rate limit is created.

page

number

Page number of paginated results.

perPage

number

Maximum number of rate limits per page.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Container for response information

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create rate limit

POST /v1/{crn}/zones/{zone_identifier}/rate_limits

Create a new rate limit for a given zone under a service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.rate-limits.create

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier of the zone for which rate limit is to be created.

threshold

number

The threshold that triggers the rate limit mitigations, combine with period. i.e. threshold per period.

Example: 1000

period

number

The time in seconds to count matching traffic. If the count exceeds threshold within this period the action will be performed.

Example: 60

action

RatelimitInputAction

action.

match

RatelimitInputMatch

Determines which traffic the rate limit counts towards the threshold. Needs to be one of "request" or "response" objects.

disabled

boolean

Whether this ratelimit is currently disabled.

Example: false

description

string

A note that you can use to describe the reason for a rate limit.

Example: Prevent multiple login failures to mitigate brute force attacks

bypass

RatelimitInputBypassItem[]

Criteria that would allow the rate limit to be bypassed, for example to express that you shouldn't apply a rate limit to a given set of URLs.

correlate

RatelimitInputCorrelate

Enable NAT based rate limits.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

ratelimit_object

Rate limit object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete rate limit

DELETE /v1/{crn}/zones/{zone_identifier}/rate_limits/{rate_limit_identifier}

Delete a rate limit, given its ID.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.rate-limits.delete

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Identifier of zone whose rate limit is to be deleted.

rateLimitIdentifier

Required *

string

Identifier of the rate limit to be deleted.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Container for response information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get a rate limit

GET /v1/{crn}/zones/{zone_identifier}/rate_limits/{rate_limit_identifier}

Get the details of a rate limit for a given zone under a given service instance.

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier (zone id).

rateLimitIdentifier

Required *

string

Identifier of rate limit for the given zone.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

ratelimit_object

Rate limit object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update rate limit

PUT /v1/{crn}/zones/{zone_identifier}/rate_limits/{rate_limit_identifier}

Update an existing rate limit for a given zone under a service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.rate-limits.update

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier (zone id).

rateLimitIdentifier

Required *

string

Identifier of rate limit.

threshold

number

The threshold that triggers the rate limit mitigations, combine with period. i.e. threshold per period.

Example: 1000

period

number

The time in seconds to count matching traffic. If the count exceeds threshold within this period the action will be performed.

Example: 60

action

RatelimitInputAction

action.

match

RatelimitInputMatch

Determines which traffic the rate limit counts towards the threshold. Needs to be one of "request" or "response" objects.

disabled

boolean

Whether this ratelimit is currently disabled.

Example: false

description

string

A note that you can use to describe the reason for a rate limit.

Example: Prevent multiple login failures to mitigate brute force attacks

bypass

RatelimitInputBypassItem[]

Criteria that would allow the rate limit to be bypassed, for example to express that you shouldn't apply a rate limit to a given set of URLs.

correlate

RatelimitInputCorrelate

Enable NAT based rate limits.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

ratelimit_object

Rate limit object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all pools

GET /v1/{crn}/load_balancers/pools

List all configured load balancer pools.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.zones.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.load-balancer-pools.read

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

load_balancer_pool_result

Result

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create pool

POST /v1/{crn}/load_balancers/pools

Create a new load balancer pool

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.zones.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.load-balancer-pools.create

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

name

string

name.

Example: primary-dc-1

checkRegions

string[]

regions check.

origins

LoadBalancerPoolReqOriginsItem[]

origins.

description

string

desc.

Example: Primary data center - Provider XYZ

minimumOrigins

number

The minimum number of origins that must be healthy for this pool to serve traffic.

Example: 2

enabled

boolean

enabled/disabled.

Example: true

monitor

string

monitor.

Example: f1aba936b94213e5b8dca0c0dbf1f9cc

notificationEmail

string

notification email.

Example: someone@example.com

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

load_balancer_pool_pack

Load balancer pool pack

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get pool

GET /v1/{crn}/load_balancers/pools/{pool_identifier}

Get a single configured load balancer pool.

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

poolIdentifier

Required *

string

pool identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

load_balancer_pool_pack

Load balancer pool pack

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete pool

DELETE /v1/{crn}/load_balancers/pools/{pool_identifier}

Delete a specific configured load balancer pool.

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

poolIdentifier

Required *

string

pool identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Edit pool

PUT /v1/{crn}/load_balancers/pools/{pool_identifier}

Edit a specific configured load balancer pool.

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

poolIdentifier

Required *

string

pool identifier.

name

string

name.

Example: primary-dc-1

checkRegions

string[]

regions check.

origins

LoadBalancerPoolReqOriginsItem[]

origins.

description

string

desc.

Example: Primary data center - Provider XYZ

minimumOrigins

number

The minimum number of origins that must be healthy for this pool to serve traffic.

Example: 2

enabled

boolean

enabled/disabled.

Example: true

monitor

string

monitor.

Example: f1aba936b94213e5b8dca0c0dbf1f9cc

notificationEmail

string

notification email.

Example: someone@example.com

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

load_balancer_pool_pack

Load balancer pool pack

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all lockdown rules

GET /v1/{crn}/zones/{zone_identifier}/firewall/lockdowns

List all lockdown rules for a zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.domain-lockdown-rules.read

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier of the zone for which lockdown rule is created.

page

number

Page number of paginated results.

perPage

number

Maximum number of lockdown rules per page.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Container for response information

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create lockdown rule

POST /v1/{crn}/zones/{zone_identifier}/firewall/lockdowns

Create a new lockdown rule for a given zone under a service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.domain-lockdown-rules.create

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier of the zone for which lockdown rule is to be created.

urls

string[]

URLs to be included in this rule definition. Wildcards are permitted. The URL pattern entered here will be escaped before use. This limits the URL to just simple wildcard patterns.

configurations

LockdownInputConfigurationsItem[]

List of IP addresses or CIDR ranges to use for this rule. This can include any number of ip or ip_range configurations that can access the provided URLs.

id

string

Lockdown rule identifier.

Example: 372e67954025e0ba6aaa6d586b9e0b59

paused

boolean

Whether this zone lockdown is currently paused.

Example: false

description

string

A note that you can use to describe the reason for a Lockdown rule.

Example: Restrict access to these endpoints to requests from a known IP address

priority

number

firewall priority.

Example: 5

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

lockdown_object

Lockdown object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete lockdown rule

DELETE /v1/{crn}/zones/{zone_identifier}/firewall/lockdowns/{lockdown_rule_identifier}

Delete a lockdown rule for a particular zone, given its ID.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.domain-lockdown-rules.delete

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Identifier of zone whose lockdown rule is to be deleted.

lockdownRuleIdentifier

Required *

string

Identifier of the lockdown rule to be deleted.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Container for response information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get lockdown rule

GET /v1/{crn}/zones/{zone_identifier}/firewall/lockdowns/{lockdown_rule_identifier}

For a given service instance, zone ID and lockdown rule ID, get the lockdown rule details.

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier (zone id).

lockdownRuleIdentifier

Required *

string

Identifier of lockdown rule for the given zone.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

lockdown_object

Lockdown object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update lockdown rule

PUT /v1/{crn}/zones/{zone_identifier}/firewall/lockdowns/{lockdown_rule_identifier}

Update an existing lockdown rule for a given zone under a given service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.domain-lockdown-rules.update

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier (zone id).

lockdownRuleIdentifier

Required *

string

Identifier of lockdown rule.

urls

string[]

URLs to be included in this rule definition. Wildcards are permitted. The URL pattern entered here will be escaped before use. This limits the URL to just simple wildcard patterns.

configurations

LockdownInputConfigurationsItem[]

List of IP addresses or CIDR ranges to use for this rule. This can include any number of ip or ip_range configurations that can access the provided URLs.

id

string

Lockdown rule identifier.

Example: 372e67954025e0ba6aaa6d586b9e0b59

paused

boolean

Whether this zone lockdown is currently paused.

Example: false

description

string

A note that you can use to describe the reason for a Lockdown rule.

Example: Restrict access to these endpoints to requests from a known IP address

priority

number

firewall priority.

Example: 5

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

lockdown_object

Lockdown object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all WAF rule packages

GET /v1/{crn}/zones/{zone_id}/firewall/waf/packages

Get firewall packages for a zone

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.waf-packages.read

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

name

string

Name of the firewall package.

Example: Wordpress-rules

page

number

Page number of paginated results.

Example: 1

perPage

number

Number of packages per page.

Example: 50

order

string

Field to order packages by.

Example: status

direction

string

Direction to order packages.

Example: desc

Allowed values: desc, asc

match

string

Whether to match all search requirements or at least one (any).

Example: all

Allowed values: all, any

Default: all

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Container for response information

result_info

result_info

Result information

400 - Bad Request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal Server Error

504 - Gateway Timeout! Backendendpoint did not respond on time

Get WAF rule package

GET /v1/{crn}/zones/{zone_id}/firewall/waf/packages/{package_id}

Get information about a single firewall package

Request

Parameters

crn

Required *

string

Cloud resource name.

zoneId

Required *

string

Zone ID.

packageId

Required *

string

Package ID.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Container for response information

400 - Bad Request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal Server Error

504 - Gateway Timeout! Backendendpoint did not respond on time

Change WAF rule package package

PATCH /v1/{crn}/zones/{zone_id}/firewall/waf/packages/{package_id}

Change the sensitivity and action for an anomaly detection type WAF rule package

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.waf-packages.update

Request

Parameters

crn

Required *

string

Cloud resource name.

zoneId

Required *

string

Zone ID.

packageId

Required *

string

Package ID.

sensitivity

string

The sensitivity of the firewall package.

Allowed values: high, medium, low, off

Default: high

actionMode

string

The default action that will be taken for rules under the firewall package.

Allowed values: simulate, challenge, block

Default: challenge

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Container for response information

400 - Bad Request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal Server Error

504 - Gateway Timeout! Backendendpoint did not respond on time

Get page rule

GET /v1/{crn}/zones/{zone_id}/pagerules/{rule_id}

Get a page rule details.

Request

Parameters

crn

Required *

string

instance id.

zoneId

Required *

string

zone id.

ruleId

Required *

string

rule id.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

page_rule_result

Page rule result

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Change page rule

PATCH /v1/{crn}/zones/{zone_id}/pagerules/{rule_id}

Change a page rule.

Request

Parameters

crn

Required *

string

instance id.

zoneId

Required *

string

zone id.

ruleId

Required *

string

rule id.

targets

PageRulesBodyTargetsItem[]

targets.

actions

ActionsItem[]

actions.

Example: [{"id":"disable_security"},{"id":"browser_check","value":"off"},{"id":"always_use_https"},{"id":"server_side_exclude","value":"off"},{"id":"ssl","value":"flexible"},{"id":"browser_cache_ttl","value":1800},{"id":"always_online","value":"off"},{"id":"security_level","value":"low"},{"id":"cache_level","value":"basic"},{"id":"edge_cache_ttl","value":18000},{"id":"ip_geolocation","value":"off"},{"id":"email_obfuscation","value":"off"},{"id":"automatic_https_rewrites","value":"off"},{"id":"opportunistic_encryption","value":"off"},{"id":"forwarding_url","value":{"url":"http://www.example.com","status_code":301}},{"id":"explicit_cache_control","value":"off"},{"id":"bypass_cache_on_cookie","value":"testCookie"},{"id":"cache_deception_armor","value":"off"},{"id":"waf","value":"off"}]

priority

number

priority.

Example: 1

status

string

status.

Example: active

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

page_rule_result

Page rule result

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Update page rule

PUT /v1/{crn}/zones/{zone_id}/pagerules/{rule_id}

Replace a page rule. The final rule will exactly match the data passed with this request.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.pagerules.update

Request

Parameters

crn

Required *

string

instance id.

zoneId

Required *

string

zone id.

ruleId

Required *

string

rule id.

targets

PageRulesBodyTargetsItem[]

targets.

actions

ActionsItem[]

actions.

Example: [{"id":"disable_security"},{"id":"browser_check","value":"off"},{"id":"always_use_https"},{"id":"server_side_exclude","value":"off"},{"id":"ssl","value":"flexible"},{"id":"browser_cache_ttl","value":1800},{"id":"always_online","value":"off"},{"id":"security_level","value":"low"},{"id":"cache_level","value":"basic"},{"id":"edge_cache_ttl","value":18000},{"id":"ip_geolocation","value":"off"},{"id":"email_obfuscation","value":"off"},{"id":"automatic_https_rewrites","value":"off"},{"id":"opportunistic_encryption","value":"off"},{"id":"forwarding_url","value":{"url":"http://www.example.com","status_code":301}},{"id":"explicit_cache_control","value":"off"},{"id":"bypass_cache_on_cookie","value":"testCookie"},{"id":"cache_deception_armor","value":"off"},{"id":"waf","value":"off"}]

priority

number

priority.

Example: 1

status

string

status.

Example: active

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

page_rule_result

Page rule result

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Delete page rule

DELETE /v1/{crn}/zones/{zone_id}/pagerules/{rule_id}

Delete a page rule.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.pagerules.delete

Request

Parameters

crn

Required *

string

instance id.

zoneId

Required *

string

zone id.

ruleId

Required *

string

rule id.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

List page rules

GET /v1/{crn}/zones/{zone_id}/pagerules

List page rules.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.pagerules.read

Request

Parameters

crn

Required *

string

instance id.

zoneId

Required *

string

zone id.

status

string

default value: disabled. valid values: active, disabled.

Example: active

order

string

default value: priority. valid values: status, priority.

Example: status

direction

string

default value: desc. valid values: asc, desc.

Example: desc

match

string

default value: all. valid values: any, all.

Example: all

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Result

400 - Bad request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Create page rule

POST /v1/{crn}/zones/{zone_id}/pagerules

Create a page rule.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.pagerules.create

Request

Parameters

crn

Required *

string

instance id.

zoneId

Required *

string

zone id.

targets

PageRulesBodyTargetsItem[]

targets.

actions

ActionsItem[]

actions.

Example: [{"id":"disable_security"},{"id":"browser_check","value":"off"},{"id":"always_use_https"},{"id":"server_side_exclude","value":"off"},{"id":"ssl","value":"flexible"},{"id":"browser_cache_ttl","value":1800},{"id":"always_online","value":"off"},{"id":"security_level","value":"low"},{"id":"cache_level","value":"basic"},{"id":"edge_cache_ttl","value":18000},{"id":"ip_geolocation","value":"off"},{"id":"email_obfuscation","value":"off"},{"id":"automatic_https_rewrites","value":"off"},{"id":"opportunistic_encryption","value":"off"},{"id":"forwarding_url","value":{"url":"http://www.example.com","status_code":301}},{"id":"explicit_cache_control","value":"off"},{"id":"bypass_cache_on_cookie","value":"testCookie"},{"id":"cache_deception_armor","value":"off"},{"id":"waf","value":"off"}]

priority

number

priority.

Example: 1

status

string

status.

Example: active

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

page_rule_result

Page rule result

400 - Bad request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

List all load balancer monitors

GET /v1/{crn}/load_balancers/monitors

List configured load balancer monitors for a user.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.zones.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.load-balancer-monitors.read

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

monitor_result

Result

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create load balancer monitor

POST /v1/{crn}/load_balancers/monitors

Create a load balancer monitor for a given service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.zones.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.load-balancer-monitors.create

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

expectedCodes

string

expected codes.

Example: 2xx

type

string

http type.

Example: http

description

string

login page monitor.

Example: Login page monitor

method

string

method.

Example: GET

port

number

port number.

Example: 8080

path

string

path.

Example: /

timeout

number

timeout count.

Example: 5

retries

number

retry count.

Example: 2

interval

number

interval.

Example: 60

followRedirects

boolean

follow redirects.

Example: true

expectedBody

string

expected body.

Example: alive

allowInsecure

boolean

allow insecure.

Example: true

JsonObject

header.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

monitor_pack

Monitor package

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Edit load balancer monitor

PUT /v1/{crn}/load_balancers/monitors/{monitor_identifier}

Edit porperties of an existing load balancer monitor.

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

monitorIdentifier

Required *

string

monitor identifier.

expectedCodes

string

expected codes.

Example: 2xx

type

string

http type.

Example: http

description

string

login page monitor.

Example: Login page monitor

method

string

method.

Example: GET

port

number

port number.

Example: 8080

path

string

path.

Example: /

timeout

number

timeout count.

Example: 5

retries

number

retry count.

Example: 2

interval

number

interval.

Example: 60

followRedirects

boolean

follow redirects.

Example: true

expectedBody

string

expected body.

Example: alive

allowInsecure

boolean

allow insecure.

Example: true

header

JsonObject

header.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

monitor_pack

Monitor package

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete load balancer monitor

DELETE /v1/{crn}/load_balancers/monitors/{monitor_identifier}

Delete a load balancer monitor.

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

monitorIdentifier

Required *

string

monitor identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get load balancer monitor

GET /v1/{crn}/load_balancers/monitors/{monitor_identifier}

For a given service instance and load balancer monitor ID, get the monitor details.

Request

Parameters

crn

Required *

string

Full CRN of the service instance.

monitorIdentifier

Required *

string

monitor identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

monitor_pack

Monitor package

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all zones

GET /v1/{crn}/zones

List all zones for a service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.zones.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zones.read

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

page

number

Page number of paginated results.

perPage

number

Maximum number of zones per page.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

zone_list

zone list

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create zone

POST /v1/{crn}/zones

Add a new zone for a given service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.zones.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zones.create

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

name

string

name.

Example: test-example.com

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

zone_details

zone details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete zone

DELETE /v1/{crn}/zones/{zone_identifier}

Delete a zone, given its ID.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zones.delete

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

zoneIdentifier

Required *

string

Identifier of zone.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get zone

GET /v1/{crn}/zones/{zone_identifier}

Get the details of a zone for a given service instance and given zone ID.

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

zone_details

zone details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update zone

PATCH /v1/{crn}/zones/{zone_identifier}

Update the paused field of the zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zones.update

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

zoneIdentifier

Required *

string

Zone identifier.

paused

boolean

paused.

Example: false

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

zone_details

zone details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Check zone

PUT /v1/{crn}/zones/{zone_identifier}/activation_check

Perform activation check on zone for status

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.zones-activation-check.update

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

zoneIdentifier

Required *

string

Identifier of zone.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List instance level firewall access rules

GET /v1/{crn}/firewall/access_rules/rules

List all instance level firewall access rules.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

notes

string

Search access rules by note.(Not case sensitive).

mode

string

Search access rules by mode.

Example: block

Allowed values: block, challenge, whitelist, js_challenge

configurationTarget

string

Search access rules by configuration target.

Example: ip

Allowed values: ip, ip_range, asn, country

configurationValue

string

Search access rules by configuration value which can be IP, IPrange, or country code.

Example: 1.2.3.4

page

number

Page number of paginated results.

perPage

number

Maximum number of access rules per page.

order

string

Field by which to order list of access rules.

Allowed values: target, value, mode

direction

string

Direction in which to order results [ascending/descending order].

Allowed values: asc, desc

match

string

Whether to match all (all) or atleast one search parameter (any).

Allowed values: any, all

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Container for response information

result_info

object

Statistics of results

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create instance level firewall access rule

POST /v1/{crn}/firewall/access_rules/rules

Create a new instance level firewall access rule for a given service instance.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

mode

string

The action to apply to a matched request.

Allowed values: block, challenge, whitelist, js_challenge

notes

string

A personal note about the rule. Typically used as a reminder or explanation for the rule.

Example: This rule is added because of event X that occurred on date xyz

configuration

AccountAccessRuleInputConfiguration

Configuration object specifying access rule.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

account_access_rule_object

Access rule objects

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete instance level access rule

DELETE /v1/{crn}/firewall/access_rules/rules/{accessrule_identifier}

Delete an instance level access rule, given its ID.

Request

Parameters

crn

Required *

string

Full crn of the service instance.

accessruleIdentifier

Required *

string

Identifier of the access rule to be deleted.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Container for response information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get instance level firewall access rule

GET /v1/{crn}/firewall/access_rules/rules/{accessrule_identifier}

Get the details of an instance level firewall access rule for a given service instance.

Request

Parameters

crn

Required *

string

Full crn of the service instance.

accessruleIdentifier

Required *

string

Identifier of firewall access rule for the given zone.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

account_access_rule_object

Access rule objects

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update instance level firewall access rule

PATCH /v1/{crn}/firewall/access_rules/rules/{accessrule_identifier}

Update an existing instance level firewall access rule for a given service instance.

Request

Parameters

crn

Required *

string

Full crn of the service instance.

accessruleIdentifier

Required *

string

Identifier of firewall access rule.

mode

string

The action to apply to a matched request.

Allowed values: block, challenge, whitelist, js_challenge

notes

string

A personal note about the rule. Typically used as a reminder or explanation for the rule.

Example: This rule is added because of event X that occurred on date xyz

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

account_access_rule_object

Access rule objects

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all WAF rules

GET /v1/{crn}/zones/{zone_id}/firewall/waf/packages/{package_id}/rules

List all Web Application Firewall (WAF) rules.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.waf-rules.read

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

packageId

Required *

string

package id.

mode

string

The Rule Mode.

Example: on

Allowed values: on, off

priority

string

The order in which the individual rule is executed within the related group.

Example: 5

match

string

Whether to match all search requirements or at least one. default value: all. valid values: any, all.

Example: all

order

string

Field to order rules by. valid values: priority, group_id, description.

Example: status

groupId

string

WAF group identifier tag. max length: 32; Read-only.

Example: de677e5818985db1285d0e80225f06e5

description

string

Public description of the rule.

Example: SQL-injection-prevention-for-SELECT-statements

direction

string

Direction to order rules. valid values: asc, desc.

Example: desc

page

number

Page number of paginated results. default value: 1; min value:1.

Example: 1

perPage

number

Number of rules per page. default value: 50; min value:5; max value:100.

Example: 50

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Array of Rules

result_info

result_info

Result information

400 - Bad Request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal Server Error

504 - Gateway Timeout! Backendendpoint did not respond on time

Get WAF rule

GET /v1/{crn}/zones/{zone_id}/firewall/waf/packages/{package_id}/rules/{identifier}

Get individual information about a rule.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

packageId

Required *

string

package id.

identifier

Required *

string

rule identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Information about a Rule

400 - Bad Request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal Server Error

504 - Gateway Timeout! Backendendpoint did not respond on time

Update WAF rule

PATCH /v1/{crn}/zones/{zone_id}/firewall/waf/packages/{package_id}/rules/{identifier}

Update the action the rule will perform if triggered on the zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.waf-rules.update

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

packageId

Required *

string

package id.

identifier

Required *

string

rule identifier.

cis

WafRuleBodyCis

cis package.

owasp

WafRuleBodyOwasp

owasp package.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Information about a Rule

400 - Bad Request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal Server Error

504 - Gateway Timeout! Backendendpoint did not respond on time

Purge all

PUT /v1/{crn}/zones/{zone_id}/purge_cache/purge_all

All resources in CDN edge servers' cache should be removed. This can have dramatic affects on your origin server load after performing this action.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.purge-cache-all.update

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Purge object

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backend API endpoint did not respond on time

Purge URLs

PUT /v1/{crn}/zones/{zone_id}/purge_cache/purge_by_urls

Granularly remove one or more files from CDN edge servers' cache either by specifying URLs.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.purge-cache-by-urls.update

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

files

string[]

purge url array.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Purge object

400 - Bad request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Purge Cache-Tags

PUT /v1/{crn}/zones/{zone_id}/purge_cache/purge_by_cache_tags

Granularly remove one or more files from CDN edge servers' cache either by specifying the associated Cache-Tags.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.purge-cache-by-cache-tags.update

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

tags

string[]

array of tags.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Purge object

400 - Bad request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Purge host names

PUT /v1/{crn}/zones/{zone_id}/purge_cache/purge_by_hosts

Granularly remove one or more files from CDN edge servers' cache either by specifying the hostnames.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.purge-cache-by-hosts.update

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

hosts

string[]

hosts name.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Purge object

400 - Bad request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Get cache level setting

GET /v1/{crn}/zones/{zone_id}/settings/cache_level

Get cache level setting of a specific zone.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Set cache level setting

PATCH /v1/{crn}/zones/{zone_id}/settings/cache_level

The `basic` setting will cache most static resources (i.e., css, images, and JavaScript). The `simplified` setting will ignore the query string when delivering a cached resource. The `aggressive` setting will cache all static resources, including ones with a query string.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

value

string

cache level.

Example: aggressive

Allowed values: basic, simplified, aggressive

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result

400 - Bad request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Get browser cache TTL setting

GET /v1/{crn}/zones/{zone_id}/settings/browser_cache_ttl

Browser Cache TTL (in seconds) specifies how long CDN edge servers cached resources will remain on your visitors' computers.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result object

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Change browser cache TTL setting

PATCH /v1/{crn}/zones/{zone_id}/settings/browser_cache_ttl

Browser Cache TTL (in seconds) specifies how long CDN edge servers cached resources will remain on your visitors' computers.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

value

number

ttl value.

Example: 14400

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result object

400 - Bad request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Get Serve Stale Content setting

GET /v1/{crn}/zones/{zone_id}/settings/always_online

When enabled, Serve Stale Content will serve pages from CDN edge servers' cache if your server is offline.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result object

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Change Serve Stale Content setting

PATCH /v1/{crn}/zones/{zone_id}/settings/always_online

When enabled, Serve Stale Content will serve pages from CDN edge servers' cache if your server is offline.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

value

string

on/off value.

Example: on

Allowed values: on, off

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result object

400 - Bad request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Get development mode setting

GET /v1/{crn}/zones/{zone_id}/settings/development_mode

Get development mode setting.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result object

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Change development mode setting

PATCH /v1/{crn}/zones/{zone_id}/settings/development_mode

Change development mode setting.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

value

string

on/off value.

Example: off

Allowed values: on, off

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result object

400 - Bad request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Get Enable Query String Sort setting

GET /v1/{crn}/zones/{zone_id}/settings/sort_query_string_for_cache

Get Enable Query String Sort setting.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result of sort query string

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

Change Enable Query String Sort setting

PATCH /v1/{crn}/zones/{zone_id}/settings/sort_query_string_for_cache

Change Enable Query String Sort setting.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

zone id.

value

string

on/off property value.

Example: off

Allowed values: on, off

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result of sort query string

400 - Bad request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal server error

504 - Gateway Timeout! Backendendpoint did not respond on time

List all DNS records

GET /v1/{crn}/zones/{zone_identifier}/dns_records

List all DNS records for a given zone of a service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.dns-records.read

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

zoneIdentifier

Required *

string

Zone identifier of the zone for which DNS record is created.

type

string

Type of DNS records to display.

name

string

Value of name field to filter by.

Example: host1.test-example.com

content

string

Value of content field to filter by.

Example: 1.2.3.4

page

number

Page number of paginated results.

perPage

number

Maximum number of DNS records per page.

order

string

Field by which to order list of DNS records.

Allowed values: type, name, content, ttl, proxied

direction

string

Direction in which to order results [ascending/descending order].

Allowed values: asc, desc

match

string

Whether to match all (all) or atleast one search parameter (any).

Allowed values: any, all

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

dnsrecord_list

DNS record list

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create DNS record

POST /v1/{crn}/zones/{zone_identifier}/dns_records

Add a new DNS record for a given zone for a given service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.dns-records.create

Request

Parameters

crn

Required *

string

Full url-encoded CRN of the service instance.

zoneIdentifier

Required *

string

Zone identifier of the zone for which DNS record is to be created.

type

string

dns record type.

Example: A

Allowed values: A, AAAA, CNAME, NS, MX, TXT, LOC, SRV, SPF, CAA

name

string

Required for all record types except SRV.

Example: host-1.test-example.com

ttl

number

dns record ttl value.

Example: 120

content

string

dns record content.

Example: 1.2.3.4

priority

number

For MX records only.

Example: 5

data

JsonObject

For LOC, SRV and CAA records only.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

dnsrecord_details

DNS record details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete DNS record

DELETE /v1/{crn}/zones/{zone_identifier}/dns_records/{dnsrecord_identifier}

Delete a DNS record, given its ID.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.dns-records.delete

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Identifier of zone (zone id) whose DNS record is to be deleted.

dnsrecordIdentifier

Required *

string

Identifier of DNS record.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

object

Result

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get DNS record

GET /v1/{crn}/zones/{zone_identifier}/dns_records/{dnsrecord_identifier}

Get the details of a DNS record for a given zone under a given service instance.

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier (zone id).

dnsrecordIdentifier

Required *

string

Identifier of DNS record.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

dnsrecord_details

DNS record details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update DNS record

PUT /v1/{crn}/zones/{zone_identifier}/dns_records/{dnsrecord_identifier}

Update an existing DNS record for a given zone under a given service instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.reliability.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.dns-records.update

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier (zone id).

dnsrecordIdentifier

Required *

string

Identifier of DNS record.

type

string

dns record type.

Example: A

Allowed values: A, AAAA, CNAME, NS, MX, TXT, LOC, SRV, SPF, CAA

name

string

Required for all record types except SRV.

Example: host-1.test-example.com

ttl

number

dns record ttl value.

Example: 120

content

string

content of dns record.

Example: 1.2.3.4

priority

number

For MX records only.

Example: 5

proxied

boolean

proxied.

Example: false

data

JsonObject

For LOC, SRV and CAA records only.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

dnsrecord_details

DNS record details

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all WAF rule groups

GET /v1/{crn}/zones/{zone_id}/firewall/waf/packages/{pkg_id}/groups

List all WAF rule groups contained within a package.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.waf-groups.read

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

Zone ID.

pkgId

Required *

string

Package ID.

name

string

Name of the firewall package.

Example: Wordpress-rules

mode

string

Whether or not the rules contained within this group are configurable/usable.

Example: on

Allowed values: on, off

Default: on

rulesCount

string

How many rules are contained within this group.

Example: 10

Default: 0

page

number

Page number of paginated results.

Example: 1

perPage

number

Number of packages per page.

Example: 50

order

string

Field to order packages by.

Example: status

direction

string

Direction to order packages.

Example: desc

Allowed values: desc, asc

match

string

Whether to match all search requirements or at least one (any).

Example: all

Allowed values: all, any

Default: all

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Container for response information

result_info

result_info

Result information

400 - Bad Request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal Server Error

504 - Gateway Timeout! Backendendpoint did not respond on time

Get WAF rule group

GET /v1/{crn}/zones/{zone_id}/firewall/waf/packages/{pkg_id}/groups/{group_id}

Get a single WAF rule group.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

Zone ID.

pkgId

Required *

string

Package ID.

groupId

Required *

string

Group ID.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

waf-rule-properties

WAF rule properties

result_info

result_info

Result information

400 - Bad Request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal Server Error

504 - Gateway Timeout! Backendendpoint did not respond on time

Update WAF rule group

PATCH /v1/{crn}/zones/{zone_id}/firewall/waf/packages/{pkg_id}/groups/{group_id}

Update the state of a WAF rule group.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.waf-groups.update

Request

Parameters

crn

Required *

string

cloud resource name.

zoneId

Required *

string

Zone ID.

pkgId

Required *

string

Package ID.

groupId

Required *

string

Group ID.

mode

string

Whether or not the rules contained within this group are configurable/usable.

Example: on

Allowed values: on, off

Default: on

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

waf-rule-properties

WAF rule properties

result_info

result_info

Result information

400 - Bad Request

403 - Forbidden! User has no privilege to use IBM Cloud Internet Services

404 - Resource not found

500 - Internal Server Error

504 - Gateway Timeout! Backendendpoint did not respond on time

List all custom pages for a given instance

GET /v1/{crn}/custom_pages

List all custom pages for a given instance

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

custom_pages

Custom pages array

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get a custom page for a given instance

GET /v1/{crn}/custom_pages/{page_identifier}

Get a specific custom page for a given instance

Request

Parameters

crn

Required *

string

Full crn of the service instance.

pageIdentifier

Required *

string

Custom page identifier.

Allowed values: basic_challenge, waf_challenge, waf_block, ratelimit_block, country_challenge, ip_block, under_attack, 500_errors, 1000_errors, always_online

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

custom_page_object

Custom page object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update a custom page for a given instance

PUT /v1/{crn}/custom_pages/{page_identifier}

Update a specific custom page for a given instance

Request

Parameters

crn

Required *

string

Full crn of the service instance.

pageIdentifier

Required *

string

Custom page identifier.

Allowed values: basic_challenge, waf_challenge, waf_block, ratelimit_block, country_challenge, ip_block, under_attack, 500_errors, 1000_errors, always_online

url

string

A URL that is associated with the Custom Page.

Example: https://www.example.com/basic_challenge_error.html

state

string

The Custom Page state.

Example: customized

Allowed values: default, customized

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

custom_page_object

Custom page object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all custom pages for a given zone

GET /v1/{crn}/zones/{zone_identifier}/custom_pages

List all custom pages for a given zone

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.zones.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.custom-pages.read

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

Zone identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

custom_pages

Custom pages array

result_info

result_info

Result information

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get a custom page for a given zone

GET /v1/{crn}/zones/{zone_identifier}/custom_pages/{page_identifier}

Get a specific custom page for a given zone

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier.

pageIdentifier

Required *

string

Custom page identifier.

Allowed values: basic_challenge, waf_challenge, waf_block, ratelimit_block, country_challenge, ip_block, under_attack, 500_errors, 1000_errors, always_online

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

custom_page_object

Custom page object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update a custom page for a given zone

PUT /v1/{crn}/zones/{zone_identifier}/custom_pages/{page_identifier}

Update a specific custom page for a given zone

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.zones.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.custom-pages.update

Request

Parameters

crn

Required *

string

Full crn of the service instance.

zoneIdentifier

Required *

string

Zone identifier.

pageIdentifier

Required *

string

Custom page identifier.

Allowed values: basic_challenge, waf_challenge, waf_block, ratelimit_block, country_challenge, ip_block, under_attack, 500_errors, 1000_errors, always_online

url

string

A URL that is associated with the Custom Page.

Example: https://www.example.com/basic_challenge_error.html

state

string

The Custom Page state.

Example: customized

Allowed values: default, customized

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

custom_page_object

Custom page object

400 - Bad Request

401 - Unauthorized

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Logs of the mitigations performed by Firewall features

GET /v1/{crn}/zones/{zone_id}/security/events

Provides a full log of the mitigations performed by the CIS Firewall features including; Firewall Rules, Rate Limiting, Security Level, Access Rules (IP, IP Range, ASN, and Country), WAF (Web Application Firewall), User Agent Blocking, Zone Lockdown, and Advanced DDoS Protection. (DEPRECATED: use Firewall Event Analytics API instead)

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.security-events.read

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneId

Required *

string

zone identifier.

ipClass

string

IP class is a map of client IP to visitor classification.

Allowed values: unknown, clean, badHost, searchEngine, whitelist, greylist, monitoringService, securityScanner, noRecord, scan, backupService, mobilePlatform, tor

method

string

The HTTP method of the request.

Allowed values: GET, POST, DELETE, PUT, HEAD, PURGE, OPTIONS, PROPFIND, MKCOL, PATCH, ACL, BCOPY, BDELETE, BMOVE, BPROPFIND, BPROPPATCH, CHECKIN, CHECKOUT, CONNECT, COPY, LABEL, LOCK, MERGE, MKACTIVITY, MKWORKSPACE, MOVE, NOTIFY, ORDERPATCH, POLL, PROPPATCH, REPORT, SEARCH, SUBSCRIBE, TRACE, UNCHECKOUT, UNLOCK, UNSUBSCRIBE, UPDATE, VERSION-CONTROL, BASELINE-CONTROL, X-MS-ENUMATTS, RPC_OUT_DATA, RPC_IN_DATA, JSON, COOK, TRACK

scheme

string

The scheme of the uri.

Allowed values: unknown, http, https

ip

string

The IPv4 or IPv6 address from which the request originated.

host

string

The hostname the request attempted to access.

proto

string

The protocol of the request.

Allowed values: UNK, HTTP/1.0, HTTP/1.1, HTTP/1.2, HTTP/2, SPDY/3.1

uri

string

The URI requested from the hostname.

ua

string

The client user agent that initiated the request.

colo

string

The 3-letter CF PoP code.

rayId

string

Ray ID of the request.

kind

string

Kind of events. Now it is only firewall.

Allowed values: firewall

action

string

What type of action was taken.

Allowed values: unknown, allow, drop, challenge, jschallenge, simulate, connectionClose, log

cursor

string

Cursor position and direction for requesting next set of records when amount of results was limited by the limit parameter. A valid value for the cursor can be obtained from the cursors object in the result_info structure.

country

string

The 2-digit country code in which the request originated.

since

string

Start date and time of requesting data period in the ISO8601 format. Can't go back more than a year.

source

string

Source of the event.

Allowed values: unknown, asn, country, ip, ipRange, securityLevel, zoneLockdown, waf, uaBlock, rateLimit, firewallRules, bic, hot, l7ddos

limit

number

The number of events to return.

ruleId

string

The ID of the rule that triggered the event, should be considered in the context of source.

until

string

End date and time of requesting data period in the ISO8601 format.

Response

200 - Success

result

array

Container for response information

result_info

result_info

Result information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad input parameter

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get all edge functions scripts

GET /v1/{crn}/workers/scripts

Get all edge functions scripts for a given instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.edge-functions-scripts.read

Request

Parameters

crn

Required *

string

cloud resource name.

xCorrelationId

string

Uniquely identifying a request.

Response

200 - Success

result

edge_functions_actions_resp

An array with items in the list response

success

boolean

Success

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Upload or replace an edge functions action

PUT /v1/{crn}/workers/scripts/{script_name}

Upload or replace an exitsing edge functions action for a given instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.edge-functions-scripts.update

Request

Parameters

crn

Required *

string

cloud resource name.

scriptName

Required *

string

the edge function action name.

edgeFunctionsAction

string|NodeJS.ReadableStream|Buffer

upload or replace an edge functions action.

xCorrelationId

string

Uniquely identifying a request.

Response

200 - Success

result

edge_functions_action_resp

Edge function script

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Download a edge functions action

GET /v1/{crn}/workers/scripts/{script_name}

Fetch raw script content for your worker. Note this is the original script content, not JSON encoded.

Request

Parameters

crn

Required *

string

cloud resource name.

scriptName

Required *

string

the edge function action name.

xCorrelationId

string

Uniquely identifying a request.

Response

200 - Success

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete a edge functions action

DELETE /v1/{crn}/workers/scripts/{script_name}

Delete an edge functions action for a given instance.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.edge-functions-scripts.delete

Request

Parameters

crn

Required *

string

cloud resource name.

scriptName

Required *

string

the edge function action name.

xCorrelationId

string

Uniquely identifying a request.

Response

200 - Success

result

edge_functions_action_id

Edge function action id

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create an edge functions trigger

POST /v1/{crn}/zones/{zone_identifier}/workers/routes

Create an edge functions trigger on a given zone

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.edge-functions-routes.create

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

pattern

string

a string pattern.

Example: example.net/*

script

string

Name of the script to apply when the route is matched. The route is skipped when this is blank/missing.

Example: this-is_my_script-01

xCorrelationId

string

Uniquely identifying a request.

Response

200 - Success

result

edge_functions_trigger_id

Edge function trigger id

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all edge functions triggers

GET /v1/{crn}/zones/{zone_identifier}/workers/routes

List all edge functions triggers on a given zone

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.edge-functions-routes.read

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

xCorrelationId

string

Uniquely identifying a request.

Response

200 - Success

result

edge_functions_triggers_resp

An array with items in the list response

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get an edge functions trigger

GET /v1/{crn}/zones/{zone_identifier}/workers/routes/{route_id}

Get an edge functions trigger on a given zone.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

routeId

Required *

string

trigger identifier.

xCorrelationId

string

Uniquely identifying a request.

Response

200 - Success

result

edge_functions_trigger_resp

Edge function trigger ID

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update an edge functions trigger

PUT /v1/{crn}/zones/{zone_identifier}/workers/routes/{route_id}

Update an edge functions trigger on a given zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.edge-functions-routes.update

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

routeId

Required *

string

trigger identifier.

pattern

string

a string pattern.

Example: example.net/*

script

string

Name of the script to apply when the route is matched. The route is skipped when this is blank/missing.

Example: this-is_my_script-01

xCorrelationId

string

Uniquely identifying a request.

Response

200 - Success

result

edge_functions_trigger_resp

Edge function trigger ID

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete an edge functions trigger

DELETE /v1/{crn}/zones/{zone_identifier}/workers/routes/{route_id}

Delete an edge functions trigger on a given zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.performance.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.edge-functions-routes.delete

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

routeId

Required *

string

trigger identifier.

xCorrelationId

string

Uniquely identifying a request.

Response

200 - Success

result

edge_functions_trigger_id

Edge function trigger id

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List range applications

GET /v1/{crn}/zones/{zone_identifier}/range/apps

Get a list of currently existing Range Applications inside a zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.range-apps.read

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

zone identifier.

page

number

Page number of paginated results.

perPage

number

Maximum number of Range applications per page.

order

string

Field by which to order the list of Range applications.

Allowed values: protocol, app_id, created_on, modified_on, dns

Default: dns

direction

string

Direction in which to order results [ascending/descending order].

Allowed values: asc, desc

Default: asc

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

array

Container for Range application objects

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Create Range Application

POST /v1/{crn}/zones/{zone_identifier}/range/apps

Create a Range Applications inside a zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.range-apps.create

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

zone identifier.

protocol

Required *

string

Defines the protocol and port for this application.

Example: tcp/22

dns

Required *

RangeAppReqDns

Name and type of the DNS record for this application.

originDirect

string[]

IP address and port of the origin for this Range application. If configuring a load balancer, use 'origin_dns' and 'origin_port'. This can not be combined with 'origin_dns' and 'origin_port'.

Example: ["tcp://192.0.2.1:22"]

originDns

RangeAppReqOriginDns

DNS record pointing to the origin for this Range application. This is used for configuring a load balancer. When specifying an individual IP address, use 'origin_direct'. This requires 'origin_port' and can not be combined with 'origin_direct'.

originPort

number

Port at the origin that listens to traffic from this Range application. Requires 'origin_dns' and can not be combined with 'origin_direct'.

Example: 22

ipFirewall

boolean

Enables the IP Firewall for this application. Only available for TCP applications.

Example: true

proxyProtocol

string

Allows for the true client IP to be passed to the service.

Allowed values: off, v1, v2, simple

Default: off

edgeIps

RangeAppReqEdgeIps

Configures IP version for the hostname of this application. Default is {"type":"dynamic", "connectivity":"all"}.

trafficType

string

Configure how traffic is handled at the edge. If set to "direct" traffic is passed through to the service. In the case of "http" or "https" HTTP/s features at the edge are applied ot this traffic.

Allowed values: direct, http, https

Default: direct

tls

string

Configure if and how TLS connections are terminated at the edge.

Allowed values: off, flexible, full, strict

Default: off

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

range_application_object

Range application object

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get range application a zone

GET /v1/{crn}/zones/{zone_identifier}/range/apps/{app_identifier}

Get the application configuration of a specific application inside a zone.

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

zone identifier.

appIdentifier

Required *

string

application identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

range_application_object

Range application object

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update range application

PUT /v1/{crn}/zones/{zone_identifier}/range/apps/{app_identifier}

Update a Range Application inside a zone.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.range-apps.update

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

zone identifier.

appIdentifier

Required *

string

application identifier.

protocol

Required *

string

Defines the protocol and port for this application.

Example: tcp/22

dns

Required *

RangeAppReqDns

Name and type of the DNS record for this application.

originDirect

string[]

IP address and port of the origin for this Range application. If configuring a load balancer, use 'origin_dns' and 'origin_port'. This can not be combined with 'origin_dns' and 'origin_port'.

Example: ["tcp://192.0.2.1:22"]

originDns

RangeAppReqOriginDns

DNS record pointing to the origin for this Range application. This is used for configuring a load balancer. When specifying an individual IP address, use 'origin_direct'. This requires 'origin_port' and can not be combined with 'origin_direct'.

originPort

number

Port at the origin that listens to traffic from this Range application. Requires 'origin_dns' and can not be combined with 'origin_direct'.

Example: 22

ipFirewall

boolean

Enables the IP Firewall for this application. Only available for TCP applications.

Example: true

proxyProtocol

string

Allows for the true client IP to be passed to the service.

Allowed values: off, v1, v2, simple

Default: off

edgeIps

RangeAppReqEdgeIps

Configures IP version for the hostname of this application. Default is {"type":"dynamic", "connectivity":"all"}.

trafficType

string

Configure how traffic is handled at the edge. If set to "direct" traffic is passed through to the service. In the case of "http" or "https" HTTP/s features at the edge are applied ot this traffic.

Allowed values: direct, http, https

Default: direct

tls

string

Configure if and how TLS connections are terminated at the edge.

Allowed values: off, flexible, full, strict

Default: off

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

range_application_object

Range application object

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete range application

DELETE /v1/{crn}/zones/{zone_identifier}/range/apps/{app_identifier}

Delete a specific application configuration.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.range-apps.delete

Request

Parameters

crn

Required *

string

Full url-encoded cloud resource name (CRN) of resource instance.

zoneIdentifier

Required *

string

zone identifier.

appIdentifier

Required *

string

application identifier.

Response

200 - Success

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

result

range_application_object

Range application object

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all certificates

GET /v1/{crn}/zones/{zone_identifier}/ssl/certificate_packs

CIS automatically adds an active DNS zone to a universal SSL certificate, shared among multiple customers. Customers can order dedicated certificates for the owning zones. This API lists all certificates for a zone, including shared and dedicated certificates.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.certificate-packs.read

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

xCorrelationId

string

uuid, identify a session.

Response

200 - Success

result

certificate_packs

Certificate packs

result_info

result_info

Result information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get SSL setting

GET /v1/{crn}/zones/{zone_identifier}/settings/ssl

For a given zone identifier, get SSL setting.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

Response

200 - Success

success

boolean

Was operation successful

result

ssl_setting

SSL setting

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Change SSL setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/ssl

For a given zone identifier, change SSL setting.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

value

string

value.

Example: off

Allowed values: off, flexible, full, strict

Response

200 - Success

success

boolean

Was operation successful

result

ssl_setting

SSL setting

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

List all custom certificates

GET /v1/{crn}/zones/{zone_identifier}/custom_certificates

For a given zone identifier, list all custom certificates.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.custom-certificates.read

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

Response

200 - Success

result

custom_certificate_packs

Custom certificate packs

result_info

result_info

Result information

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Upload a custom certificate

POST /v1/{crn}/zones/{zone_identifier}/custom_certificates

For a given zone identifier, upload a custom certificates.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.custom-certificates.create

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

certificate

string

certificates.

privateKey

string

private key.

bundleMethod

string

Methods shown in UI mapping to API: Compatible(ubiquitous), Modern(optimal), User Defined(force).

Example: ubiquitous

Allowed values: ubiquitous, optimal, force

geoRestrictions

CustomCertReqGeoRestrictions

geo restrictions.

Response

200 - Success

result

custom_cert_pack

Custom certificate pack

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get custom certificate

GET /v1/{crn}/zones/{zone_identifier}/custom_certificates/{custom_cert_id}

For a given zone identifier, get a custom certificates.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

customCertId

Required *

string

custom certificate id.

Response

200 - Success

result

custom_cert_pack

Custom certificate pack

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Update custom certificate

PATCH /v1/{crn}/zones/{zone_identifier}/custom_certificates/{custom_cert_id}

For a given zone identifier, update a custom certificates.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.custom-certificates.update

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

customCertId

Required *

string

custom certificate id.

certificate

string

certificates.

privateKey

string

private key.

bundleMethod

string

Methods shown in UI mapping to API: Compatible(ubiquitous), Modern(optimal), User Defined(force).

Example: ubiquitous

Allowed values: ubiquitous, optimal, force

geoRestrictions

CustomCertReqGeoRestrictions

geo restrictions.

Response

200 - Success

result

custom_cert_pack

Custom certificate pack

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Delete custom certificate

DELETE /v1/{crn}/zones/{zone_identifier}/custom_certificates/{custom_cert_id}

For a given zone identifier, delete a custom certificates.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.manage

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.custom-certificates.delete

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

customCertId

Required *

string

custom certificate id.

Response

200 - Success

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Set certificate priority

PUT /v1/{crn}/zones/{zone_identifier}/custom_certificates/prioritize

For a given zone identifier, set priority of certificates.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

certificates

CertPriorityReqCertificatesItem[]

certificates array.

Response

200 - Success

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get details of universal certificate

GET /v1/{crn}/zones/{zone_identifier}/ssl/universal/settings

For a given zone identifier, get universal certificate.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.read

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.universal-ssl-setting.read

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

Response

200 - Success

result

object

Result

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Enable or Disable universal certificate

PATCH /v1/{crn}/zones/{zone_identifier}/ssl/universal/settings

Change universal certificate setting.

Authorization

To call this method, you must be assigned one or more IAM access roles that include the following action.

  • internet-svcs.security.update

Auditing

Calling this method generates the following auditing event.

  • internet-svcs.universal-ssl-setting.update

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

enabled

boolean

enabled.

Example: true

Response

200 - Success

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get TLS 1.2 only setting

GET /v1/{crn}/zones/{zone_identifier}/settings/tls_1_2_only

For a given zone identifier, get TLS 1.2 only setting.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

Response

200 - Success

result

object

Result

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Set TLS 1.2 setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/tls_1_2_only

For a given zone identifier, set TLS 1.2 setting

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

value

string

value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Result

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Get TLS 1.3 setting

GET /v1/{crn}/zones/{zone_identifier}/settings/tls_1_3

For a given zone identifier, get TLS 1.3 setting.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

Response

200 - Success

result

object

Result

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error

Set TLS 1.3 setting

PATCH /v1/{crn}/zones/{zone_identifier}/settings/tls_1_3

For a given zone identifier, set TLS 1.3 setting.

Request

Parameters

crn

Required *

string

cloud resource name.

zoneIdentifier

Required *

string

zone identifier.

value

string

value.

Example: on

Allowed values: on, off

Response

200 - Success

result

object

Result

success

boolean

Was operation successful

errors

errors

Errors

messages

messages

Messages

400 - Bad Request

403 - Forbidden! User has no privilege

404 - Resource not found

500 - Internal server error