DeleteCostCenterRule

Updated at:
Copy as MD

Delete financial unit automatic allocation rule

Operation description

This API is in canary release and is only available to whitelisted users. Excessive calls may cause performance issues such as response timeouts.

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

bss:ModifyCostUnit

delete

*All resources

*

None None

Request parameters

Parameter

Type

Required

Description

Example

CostCenterId

integer

No

Financial unit ID.

637127

FilterExpression

object

No

Rule expression. This field does not need to be entered during the delete operation.

ExpressionType

string

No

The operation type.

Valid values:

  • DIMENSION :

    Leaf node filter type (used when Code is not a tag)

  • TAG :

    Leaf node filter type (used when Code is a tag)

  • NARY :

    Sub-condition relationship (used for non-leaf conditions)

NARY

OperatorType

string

No

The relational expression.

AND

Operands

array

No

The conditional expressions.

any

No

The conditional expression. See the example for the overall structure (supports multi-level nesting). The following fields are only field descriptions.

{ "Operands": [ { "FilterValues": { "Code": "TAG-xxx", "Values": [ "xxxx" ], "SelectType": "IN" }, "ExpressionType": "TAG" }, { "FilterValues": { "Code": "INSTANCE_ID", "Values": [ "xxxxx" ], "SelectType": "LIKE" }, "ExpressionType": "DIMENSION" }, { "FilterValues": { "Code": "INSTANCE_NICK", "Values": [ "111" ], "SelectType": "LIKE" }, "ExpressionType": "DIMENSION" }, { "FilterValues": { "Code": "RESOURCE_GROUP", "Values": [ "xxxxx" ], "SelectType": "IN" }, "ExpressionType": "DIMENSION" }, { "FilterValues": { "Code": "ARTICLE", "Values": [ "xxxxx" ], "SelectType": "IN" }, "ExpressionType": "DIMENSION" }, { "FilterValues": { "Code": "PRODUCT", "Values": [ "xxxxx" ], "SelectType": "IN" }, "ExpressionType": "DIMENSION" }, { "FilterValues": { "Code": "OWNER", "Values": [ "xxxxx" ], "SelectType": "IN" }, "ExpressionType": "DIMENSION" } ] }

Operand

any

No

The filter condition (no longer used).

N/A

FilterValues

object

No

The sub-expression filter conditions.

Code

string

No

The condition filter key.

Valid values:

  • OWNER :

    Account

  • ARTICLE :

    Product detail

  • RESOURCE_GROUP :

    Resource group

  • xxx (user-defined tag key) :

    Business tag, based on the user's actual configuration value

  • PRODUCT :

    Product

  • INSTANCE_NICK :

    Instance name

  • INSTANCE_ID :

    Billing granularity

TAG-test-xxx-key

CodeName

string

No

The condition filter key name.

N/A

Values

array

No

The condition filter values.

string

No

The condition filter value. Only one value can be entered for INSTANCE_NICK or INSTANCE_NICK.

["TAG-test-xxx"]

SelectType

string

No

The association between Code and value.

Valid values:

  • LIKE :

    Used when Code is other values

  • IN :

    Used when Code is INSTANCE_NICK or INSTANCE_NICK

IN

Nbid

string

No

Level-1 marketplace ID. If empty, the marketplace ID of the current user is used by default.

2684201000001

Response elements

Element

Type

Description

Example

object

BssApiPlainResult

Data

integer

The ID of the financial unit allocation rule.

37404

Metadata

any

The response metadata.

{}

RequestId

string

The request ID.

UUID

Examples

Success response

JSON format

{
  "Data": 37404,
  "Metadata": "{}",
  "RequestId": "UUID"
}

Error codes

HTTP status code

Error code

Error message

Description

400 CostCenter.MasterAndSubHasNoRelation Your account has no valid account relation yet.
400 InvalidParameter The specified request contains invalid parameters.
400 CostCenter.UnitNotExist The financial unit does not exist or is invalid.
500 InternalError The request processing has failed due to some unknown error.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.