This contains Autostopping v2 APIs that support the usage of Autostopping Proxy for managing cloud resources.
Creates a new AutoStopping Rule.
successful operation
Invalid status value
{- "response": {
- "id": 0,
- "name": "string",
- "org_id": "string",
- "account_identifier": "string",
- "project_id": "string",
- "fulfilment": "string",
- "kind": "string",
- "cloud_account_id": "string",
- "idle_time_mins": 0,
- "host_name": "string",
- "health_check": { },
- "custom_domains": [
- "string"
], - "match_all_subdomains": true,
- "disabled": true,
- "routing": {
- "instance": {
- "filter_text": "string",
- "scale_group": {
- "id": "string",
- "name": "string",
- "desired": 0,
- "min": 0,
- "max": 0,
- "on_demand": 0,
- "spot": 0,
- "mixed_instance": true,
- "cloud_account_id": "string",
- "provider_name": "string",
- "target_groups": [
- {
- "id": "string",
- "name": "string",
- "port": 0,
- "protocol": "string",
- "vpc": "string"
}
], - "region": "string",
- "availability_zones": [
- "string"
], - "status": "string",
- "meta": { }
}
}, - "ports": [
- {
- "protocol": "string",
- "target_protocol": "string",
- "port": 0,
- "target_port": 0,
- "server_name": "string",
- "action": "string",
- "redirect_url": "string",
- "routing_rules": [
- {
- "path_match": "string"
}
]
}
], - "lb": "string",
- "k8s": {
- "RuleJson": "string",
- "ConnectorID": "string",
- "Namespace": "string"
}, - "custom_domain_providers": { },
- "container_svc": {
- "cluster": "string",
- "service": "string",
- "region": "string",
- "task_count": 0
}, - "database": {
- "id": "string",
- "region": "string"
}
}, - "opts": {
- "preserve_private_ip": true,
- "delete_cloud_resources": true,
- "always_use_private_ip": true,
- "access_details": { },
- "hide_progress_page": true
}, - "created_at": "string",
- "access_point_id": "string",
- "metadata": {
- "cloud_provider_details": {
- "name": "string",
- "type": "string"
}, - "target_group_details": { },
- "service_errors": [
- {
- "error": "string",
- "action": "string"
}
], - "kubernetes_connector_id": "string",
- "autostopping_proxy_config": {
- "http": {
- "proxy": {
- "id": "string"
}, - "ports": [
- {
- "protocol": "string",
- "target_protocol": "string",
- "port": 0,
- "target_port": 0,
- "server_name": "string",
- "action": "string",
- "redirect_url": "string",
- "routing_rules": [
- null
]
}
]
}, - "tcp": {
- "proxy": {
- "id": "string"
}, - "ports": [
- {
- "protocol": "string",
- "target_protocol": "string",
- "port": 0,
- "target_port": 0,
- "server_name": "string",
- "action": "string",
- "redirect_url": "string",
- "routing_rules": [
- null
]
}
]
}
}
}, - "status": "string"
}
}
Updates an existing AutoStopping Rule.
Service definition of an AutoStopping rule
successful operation
Invalid status value
{- "response": {
- "id": 0,
- "name": "string",
- "org_id": "string",
- "account_identifier": "string",
- "project_id": "string",
- "fulfilment": "string",
- "kind": "string",
- "cloud_account_id": "string",
- "idle_time_mins": 0,
- "host_name": "string",
- "health_check": { },
- "custom_domains": [
- "string"
], - "match_all_subdomains": true,
- "disabled": true,
- "routing": {
- "instance": {
- "filter_text": "string",
- "scale_group": {
- "id": "string",
- "name": "string",
- "desired": 0,
- "min": 0,
- "max": 0,
- "on_demand": 0,
- "spot": 0,
- "mixed_instance": true,
- "cloud_account_id": "string",
- "provider_name": "string",
- "target_groups": [
- {
- "id": "string",
- "name": "string",
- "port": 0,
- "protocol": "string",
- "vpc": "string"
}
], - "region": "string",
- "availability_zones": [
- "string"
], - "status": "string",
- "meta": { }
}
}, - "ports": [
- {
- "protocol": "string",
- "target_protocol": "string",
- "port": 0,
- "target_port": 0,
- "server_name": "string",
- "action": "string",
- "redirect_url": "string",
- "routing_rules": [
- {
- "path_match": "string"
}
]
}
], - "lb": "string",
- "k8s": {
- "RuleJson": "string",
- "ConnectorID": "string",
- "Namespace": "string"
}, - "custom_domain_providers": { },
- "container_svc": {
- "cluster": "string",
- "service": "string",
- "region": "string",
- "task_count": 0
}, - "database": {
- "id": "string",
- "region": "string"
}
}, - "opts": {
- "preserve_private_ip": true,
- "delete_cloud_resources": true,
- "always_use_private_ip": true,
- "access_details": { },
- "hide_progress_page": true
}, - "created_at": "string",
- "access_point_id": "string",
- "metadata": {
- "cloud_provider_details": {
- "name": "string",
- "type": "string"
}, - "target_group_details": { },
- "service_errors": [
- {
- "error": "string",
- "action": "string"
}
], - "kubernetes_connector_id": "string",
- "autostopping_proxy_config": {
- "http": {
- "proxy": {
- "id": "string"
}, - "ports": [
- {
- "protocol": "string",
- "target_protocol": "string",
- "port": 0,
- "target_port": 0,
- "server_name": "string",
- "action": "string",
- "redirect_url": "string",
- "routing_rules": [
- null
]
}
]
}, - "tcp": {
- "proxy": {
- "id": "string"
}, - "ports": [
- {
- "protocol": "string",
- "target_protocol": "string",
- "port": 0,
- "target_port": 0,
- "server_name": "string",
- "action": "string",
- "redirect_url": "string",
- "routing_rules": [
- null
]
}
]
}
}
}, - "status": "string"
}
}