UpdateNetwork

Updated at:

Updates the public network configuration of an application.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

es-serverless:UpdateNetwork

update

*All Resource

*

None None

Request syntax

PUT /openapi/es-serverless/instances/{appName}/networks HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

appName

string

Yes

The instance ID.

autotest-8k8a8

Request parameters

Parameter

Type

Required

Description

Example

body

array<object>

No

The request body.

array<object>

No

The request body structure.

type

string

No

The type of the IP address whitelist. Valid values:

  • PUBLIC_ES: The public network access whitelist for Elasticsearch.

  • PUBLIC_KIBANA: The public network access whitelist for Kibana.

PUBLIC_ES

enabled

boolean

No

Specifies whether public network access is enabled.

true

domain

string

No

The domain name information. This parameter cannot be modified.

autotest-8k8a8.serverless.cn-hangzhou.elasticsearch.aliyuncs.com

port

integer

No

The port number. This parameter cannot be modified.

9200

whiteIpGroup

array<object>

No

The whitelist.

object

No

The whitelist structure.

groupName

string

No

The name of the whitelist group. This parameter is required if the whiteIpGroup parameter is specified.

default

ips

array

No

The list of IP addresses in the whitelist group.

string

No

The specific IP address or CIDR block.

127.0.0.1

modifyMode

string

No

The modification method. Valid values:

  • Cover (default): Overwrites the IP addresses in the original whitelist with the values of the ips parameter.

  • Append: Adds the IP addresses specified in the ips parameter to the original whitelist.

  • Delete: Removes the IP addresses specified in the ips parameter from the original whitelist. At least one IP address must be retained.

Cover

Response elements

Element

Type

Description

Example

object

The response body structure.

requestId

string

The request ID.

2C5DAA30-****-5181-9B87-9D6181016197

result

array<object>

The returned result.

array<object>

The returned structure.

type

string

The type of the IP address whitelist.

PUBLIC_ES

enabled

string

Specifies whether private network access is enabled.

true

domain

string

The domain name.

test-123.serverless.cn-hangzhou.elasticsearch.aliyuncs.com

port

string

The port number.

9200

whiteIpGroup

array<object>

The whitelist information.

object

The whitelist structure.

groupName

string

The name of the whitelist group.

default

ips

array

The list of IP addresses in the whitelist group.

string

The specific IP address or CIDR block.

127.0.0.1

Examples

Success response

JSON format

{
  "requestId": "2C5DAA30-****-5181-9B87-9D6181016197",
  "result": [
    {
      "type": "PUBLIC_ES",
      "enabled": "true",
      "domain": "test-123.serverless.cn-hangzhou.elasticsearch.aliyuncs.com\n",
      "port": "9200",
      "whiteIpGroup": [
        {
          "groupName": "default",
          "ips": [
            "127.0.0.1"
          ]
        }
      ]
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.