RuleEnforcement

This contains APIs related to Rule Enforcement

Update a Rule enforcement

Update a Rule enforcement

Securityx-api-key
Request
query Parameters
accountIdentifier
required
string

Account Identifier for the Entity.

Request Body schema: application/json
required

Request body containing rule enforcement object

object (RuleEnforcement)

This object will contain the complete definition of a Cloud Cost Policy enforcement

Responses
400

Bad Request

500

Internal server error

default

Updated Rule enforcement.

put/ccm/api/governance/enforcement
Request samples
application/json
{
  • "ruleEnforcement": {
    }
}
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Add a new rule Enforcement

Securityx-api-key
Request
query Parameters
accountIdentifier
required
string

Account Identifier for the Entity.

Request Body schema: application/json
required

Request body containing Rule Enforcement object

object (RuleEnforcement)

This object will contain the complete definition of a Cloud Cost Policy enforcement

Responses
400

Bad Request

500

Internal server error

default

Returns newly created rule enforcement.

post/ccm/api/governance/enforcement
Request samples
application/json
{
  • "ruleEnforcement": {
    }
}
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Delete a rule enforcement

Delete a Rule enforcement for the given a ID.

Securityx-api-key
Request
path Parameters
enforcementID
required
string

Unique identifier for the rule enforcement

query Parameters
accountIdentifier
required
string

Account Identifier for the Entity.

Responses
400

Bad Request

500

Internal server error

default

A boolean whether the delete was successful or not

delete/ccm/api/governance/enforcement/{enforcementID}
Request samples
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Fetch Rule Enforcements for given RuleIds/RuleSetIds

Fetch Rule Enforcements for given RuleIds/RuleSetIds

Securityx-api-key
Request
query Parameters
accountIdentifier
required
string

Account Identifier for the Entity.

Request Body schema: application/json
required

Request body containing enforcementCount object

object (EnforcementCountRequest)

This has the query to list Enforcement Count

Responses
400

Bad Request

500

Internal server error

default

Returns List of Rule Enforcements wrt given RuleIds/RuleSetIds

post/ccm/api/governance/enforcement/count
Request samples
application/json
{
  • "enforcementCount": {
    }
}
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Get Rule Enforcement details for given Enforcement Id

Get Rule Enforcement details

Securityx-api-key
Request
query Parameters
accountIdentifier
required
string

Account Identifier for the Entity.

enforcementId
string

Enforcement Id

Responses
400

Bad Request

500

Internal server error

default

Returns Enforcement details

get/ccm/api/governance/enforcement/details
Request samples
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Fetch Rule Enforcements for account

Fetch Rule Enforcement

Securityx-api-key
Request
query Parameters
accountIdentifier
required
string

Account Identifier for the Entity.

Responses
400

Bad Request

500

Internal server error

default

Returns List of rules Enforcement

get/ccm/api/governance/enforcement/list
Request samples
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}

Enable/Disable a Rule Enforcement for given Enforcement Id

Toggle a Rule Enforcement

Securityx-api-key
Request
query Parameters
accountIdentifier
required
string

Account Identifier for the Entity.

enforcementId
string

Enforcement Id

enableEnforcement
boolean

Enable Enforcement

Responses
400

Bad Request

500

Internal server error

default

True/false if Rule Enforcement successfully toggled

put/ccm/api/governance/enforcement/toggle
Request samples
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}