ModifyObjectGroupOperation

Updated at:

Modifies object group operations.

Operation description

Before you begin

  • Before you call this operation, you must activate Cloud Firewall.

  • You can call DescribeUserBuyVersion to query the activation status. The UserStatus field in the response indicates whether the Cloud Firewall instance is valid. A value of false indicates that the instance is invalid or not activated.

  • Activate Cloud Firewall:
    • China site: https://common-buy.aliyun.com/?commodityCode=cfw_sub_public_cn

    • International site: https://common-buy-intl.alibabacloud.com/?commodityCode=cfw_sub_public_intl

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

yundun-cloudfirewall:ModifyObjectGroupOperation

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

SourceIp

string

No

The source IP address of the requester.

123.xxx.251.60

Lang

string

No

The language of the response message. Valid values:

  • zh (default): Chinese

  • en: English

zh

ObjectOperation

string

Yes

Specifies the operation to perform on the object, such as adding to the whitelist, removing from the whitelist, following, or unfollowing. Valid values:

  • subscribe: Follow.

  • unsubscribe: Unfollow.

  • ignore: Add to the whitelist.

  • cancelIgnore: Remove from the whitelist.

ignore

ObjectType

string

Yes

The type of the object to add to the outbound connections whitelist or follow. Valid values:

  • assetsIp: Asset IP address.

  • destinationIp: Destination IP address.

  • destinationPort: Destination port.

  • destinationDomain: Destination domain name.

destinationDomain

Direction

string

Yes

The traffic direction controlled by the access control policy. Valid values:

  • in: Inbound traffic.

  • out: Outbound traffic.

out

ObjectList

array

Yes

The list of objects to operate on.

string

No

The list of objects to operate on.

8.25.xxx.55

Comment

string

No

The remark for the operation.

Remark for batch whitelisting

Response elements

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

CB32593D************775F41D6ED84

Examples

Success response

JSON format

{
  "RequestId": "CB32593D************775F41D6ED84"
}

Error codes

HTTP status code

Error code

Error message

Description

400 ErrorOutgoingIgnoredReachLimit outgoing ignored list reach limit The number of the whitelists for outbound connections reaches the upper limit.
400 ErrorSourceCodeError The source code is invalid. The source code is invalid.
400 ErrorAliUid Aliuid invalid. The aliuid is invalid.
400 ErrorObjectOperation The objectOperation is invalid. The objectOperation is invalid.
400 ErrorDirectionError The direction is invalid. The direction is invalid.
400 ErrorObjectType The objectType is invalid. The objectType is invalid.
400 ErrorObjectList The objectList is invalid. The objectList is invalid.
400 ErrorDBSelectError A database select error occurred. The error message returned because an internal error has occurred in querying the database.
400 ErrorDBInsertError A database insert error occurred. An error occurred while performing an insert operation in the database.
400 ErrorDBDeleteError A database delete error occurred. An error occurred while deleting the database.
400 ErrorNotBuyUser Not buy user. Your account has not activated the Cloud Firewall and cannot call the API.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.