UpdatePrivateNetwrok

Updated at:

Modifies the private network information of an application.

Operation description

The system automatically creates a service-linked role to allow access to other Alibaba Cloud services such as Object Storage Service (OSS). OSS address requirements: The directory name must contain es-serverless, or the es-serverless:es-serverless tag must be added to the OSS bucket.

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:UpdatePrivateNetwork

update

*All Resource

*

None None

Request syntax

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

Path Parameters

Parameter

Type

Required

Description

Example

appName

string

Yes

The application name.

test

Request parameters

Parameter

Type

Required

Description

Example

body

array<object>

No

The body parameter.

array<object>

No

The body parameter.

type

string

No

The type of the IP address whitelist. Valid values:

  • PRIVATE_ES: the whitelist for private network access to Elasticsearch

  • PRIVATE_KIBANA: the whitelist for private network access to Kibana

PRIVATE_ES

enabled

boolean

No

Specifies whether private 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 detailed structure of the whitelist.

object

No

The detailed structure of the whitelist.

groupName

string

No

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

default

ips

array

No

The specific IP addresses or CIDR blocks.

string

No

The specific IP addresses or CIDR blocks.

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

vpcId

string

No

The VPC instance ID.

vpc-uf664nyle5khp5***

pvlEndpointId

string

No

The endpoint ID.

ep-bp1id6dc2568****

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

Id of the request

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

result

array<object>

The result.

array<object>

The result.

type

string

The type of the IP address whitelist.

PRIVATE_ES

enabled

string

Indicates whether private network access is enabled.

true

domain

string

The domain name.

test-**.private.cn-hangzhou.es-serverless.aliyuncs.com

port

string

The port number.

9200

whiteIpGroup

array<object>

The detailed structure of the whitelist.

object

The detailed structure of the whitelist.

groupName

string

The name of the whitelist group.

default

ips

array

The specific IP addresses or CIDR blocks.

string

The specific IP addresses or CIDR blocks.

127.0.0.1

vpcId

string

The VPC ID.

vpc-uf6gykvwcirp886ef****

pvlEndpointId

string

The endpoint ID.

ep-bp1id6dc2568****

Examples

Success response

JSON format

{
  "requestId": "2C5DAA30-****-5181-9B87-9D6181016197",
  "result": [
    {
      "type": "PRIVATE_ES",
      "enabled": "true",
      "domain": "test-**.private.cn-hangzhou.es-serverless.aliyuncs.com",
      "port": "9200",
      "whiteIpGroup": [
        {
          "groupName": "default",
          "ips": [
            "127.0.0.1"
          ]
        }
      ],
      "vpcId": "vpc-uf6gykvwcirp886ef****",
      "pvlEndpointId": "ep-bp1id6dc2568****"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.