Cloud Cost AutoStopping Rules

This contains APIs to create and manage AutoStopping Rules for your cloud resources.

Create an AutoStopping Rule

Creates a new AutoStopping Rule.

SecurityApiKey
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

query Parameters
accountIdentifier
required
string

Account Identifier for the Entity

Request Body schema: */*

Service definition of an AutoStopping rule

deps
Array of objects (ServiceDep)
object (LwService)
apply_now
boolean
Responses
200

successful operation

400

Invalid status value

post/lw/api/accounts/{account_id}/autostopping/rules
Request samples
Response samples
application/json
{
  • "response": {
    }
}

Delete an AutoStopping Rule

Deletes an AutoStopping Rule for the given identifier.

SecurityApiKey
Request
path Parameters
rule_id
required
number

ID of the AutoStopping Rule that you want to delete

account_id
required
string

Account Identifier for the Entity

query Parameters
accountIdentifier
required
string

Account Identifier for the Entity

Responses
200

successful operation

400

Invalid status value

delete/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}
Request samples

Disable/Enable an Autostopping Rule

Disables or enables an Autostopping Rule for the given identifier.

SecurityApiKey
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

rule_id
required
string

ID of the AutoStopping rule to be enabled/disabled

query Parameters
disable
required
boolean
accountIdentifier
required
string

Account Identifier for the Entity

Responses
200

successful operation

400

Invalid status value

put/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/toggle_state
Request samples
Response samples
application/json
{
  • "response": [
    ]
}

List all the resources for an AutoStopping Rule

Lists all the resources for an AutoStopping Rule for the given identifier.

SecurityApiKey
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

rule_id
required
number <int64>

ID of the AutoStopping Rule for which you need to list the resources

query Parameters
cloud_account_id
required
string

Connector ID

region
required
string

Cloud region where resources belong to

accountIdentifier
required
string

Account Identifier for the Entity

Responses
200

successful operation

400

Invalid status value

get/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/resources
Request samples
Response samples
application/json
{
  • "response": [
    ]
}

List AutoStopping Rules

Lists all the AutoStopping rules separated by comma-separated strings.

SecurityApiKey
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

query Parameters
accountIdentifier
required
string

Account Identifier for the Entity

dry_run
boolean
Default: false

Flag which if enabled lists out only dry run rules.

Responses
200

successful operation

400

Invalid status value

get/lw/api/accounts/{account_id}/autostopping/rules
Request samples
Response samples
application/json
{
  • "response": [
    ]
}

Return AutoStopping Rule details

Returns details of an AutoStopping Rule for the given identifier.

SecurityApiKey
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

rule_id
required
number

ID of the AutoStopping Rule for which you need to fetch the details

query Parameters
accountIdentifier
required
string

Account Identifier for the Entity

Responses
200

successful operation

400

Invalid status value

get/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}
Request samples
Response samples
application/json
{
  • "response": {
    }
}

Return cumulative savings for all the AutoStopping Rules

Returns cumulative savings for all the AutoStopping Rules.

SecurityApiKey
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

query Parameters
accountIdentifier
required
string

Account Identifier for the Entity

Responses
200

successful operation

400

Invalid status value

get/lw/api/accounts/{account_id}/autostopping/rules/savings/cumulative
Request samples
Response samples
application/json
{
  • "response": {
    }
}

Return diagnostics result of an AutoStopping Rule

Returns the diagnostics result of an AutoStopping rule for the given identifier.

SecurityApiKey
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

rule_id
required
number

ID of the AutoStopping rule for which you need to fetch the diagnostics details

query Parameters
accountIdentifier
required
string

Account Identifier for the Entity

Responses
200

successful operation

400

Invalid status value

get/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/diagnostics
Request samples
Response samples
application/json
{
  • "response": [
    ]
}

Return health status of an AutoStopping Rule

Returns health status of an AutoStopping Rule for the given identifier.

SecurityApiKey
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

rule_id
required
number

ID of the AutoStopping Rule for which you need to fetch the health status

query Parameters
accountIdentifier
required
string

Account Identifier for the Entity

Responses
200

successful operation

400

Invalid status value

get/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/health
Request samples
Response samples
application/json
{
  • "response": { }
}

Return savings details for an AutoStopping Rule

Returns savings details for an AutoStopping rule for the given identifier and the specified time duration.

SecurityApiKey
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

rule_id
required
number

ID of the AutoStopping Rule for which you want to fetch savings detail

query Parameters
accountIdentifier
required
string

Account Identifier for the Entity

from
string

Start time for the computation of savings

to
string

End time for the computation of savings

group_by
string
Responses
200

successful operation

400

Invalid status value

get/lw/api/accounts/{account_id}/autostopping/rules/{rule_id}/savings
Request samples
Response samples
application/json
{ }