Cloud Cost AutoStopping Fixed Schedules

This contains APIs to manage fixed schedules for the AutoStopping Rules.

Return all the AutoStopping Rule fixed schedules

Returns all the AutoStopping Rule fixed schedules for the given identifier.

Securityx-api-key
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

query Parameters
cloud_account_id
required
string

Connector ID

accountIdentifier
required
string

Account Identifier for the Entity

res_id
required
string

IDs of resources whose fixed schedules are to be fetched. This can be an AutoStopping rule ID if the res_type is "autostop_rule"

res_type
required
string

Type of resource to which schedules are attached

Value: "autostop_rule"
Responses
200

successful operation

400

Invalid

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

Create a fixed schedule for an AutoStopping Rule

Creates an AutoStopping rule to run resources based on the schedule.

Securityx-api-key
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

query Parameters
cloud_account_id
required
string

Connector ID

accountIdentifier
required
string

Account Identifier for the Entity

Request Body schema: */*
required

Fixed schedule payload

object (FixedSchedule)
id
number
Responses
200

successful operation

400

Invalid

post/gateway/lw/api/accounts/{account_id}/schedules
Request samples
Response samples
application/json
{
  • "name": "string",
  • "id": 0,
  • "account": "string",
  • "description": "string",
  • "resources": [
    ],
  • "details": {
    }
}

Delete a fixed schedule for AutoStopping Rule.

Deletes a fixed schedule for the given AutoStopping Rule.

Securityx-api-key
Request
path Parameters
account_id
required
string

Account Identifier for the Entity

schedule_id
required
number

ID of a fixed schedule added to an AutoStopping rule

query Parameters
accountIdentifier
required
string

Account Identifier for the Entity

Responses
200

successful operation

delete/gateway/lw/api/accounts/{account_id}/schedules/{schedule_id}
Request samples
Response samples
application/json
{
  • "response": "string"
}