File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 244244 - ** Chore:** Update dependencies
245245 - [ v0.3.0] ( services/telemetryrouter/CHANGELOG.md#v030 )
246246 - ** New:** v1 API version for STACKIT Telemetry Router
247+ - ` valkey `
248+ - [ v0.1.0] ( services/valkey/CHANGELOG.md#v010 )
249+ - ** New** : API for STACKIT valkey
247250- ` vpn `
248251 - [ v0.6.0] ( services/vpn/CHANGELOG.md#v060 )
249252 - ** Chore:** Bump minimum Python version to 3.10
Original file line number Diff line number Diff line change 1+ import os
2+
3+ from stackit .core .configuration import Configuration
4+ from stackit .valkey .api .default_api import DefaultApi
5+ from stackit .valkey .models .create_instance_payload import CreateInstancePayload
6+
7+ project_id = os .getenv ("PROJECT_ID" )
8+
9+ config = Configuration ()
10+ client = DefaultApi (config )
11+
12+ # Check out all available offerings
13+ available_offerings = client .list_offerings (project_id )
14+
15+ # Take the first available plan id
16+ offering_id = available_offerings .offerings [0 ].plans [0 ].id
17+ payload = CreateInstancePayload (
18+ instance_name = "test-instance" ,
19+ plan_id = offering_id ,
20+ )
21+
22+ # Create the instance
23+ instance = client .create_instance (project_id , payload )
24+ print ("Created instance with ID: " + instance .instance_id )
Original file line number Diff line number Diff line change 1+ import os
2+
3+ from stackit .core .configuration import Configuration
4+ from stackit .valkey .api .default_api import DefaultApi
5+
6+ project_id = os .getenv ("PROJECT_ID" )
7+ instance_id = "INSTANCE_ID"
8+
9+ config = Configuration ()
10+ client = DefaultApi (config )
11+
12+ # Delete an instance
13+ client .delete_instance (project_id = project_id , instance_id = instance_id )
Original file line number Diff line number Diff line change 1+ import os
2+
3+ from stackit .core .configuration import Configuration
4+ from stackit .valkey .api .default_api import DefaultApi
5+
6+ project_id = os .getenv ("PROJECT_ID" )
7+
8+ config = Configuration ()
9+ client = DefaultApi (config )
10+
11+ # Get all instances
12+ print (client .list_instances (project_id ))
Original file line number Diff line number Diff line change 1+ ## v0.1.0
2+ - ** New** : STACKIT valkey module to create key-value stores
Original file line number Diff line number Diff line change 11[project ]
22name = " stackit-valkey"
3- version = " v0.0.1a "
3+ version = " v0.0.1 "
44description = " STACKIT Key Value Store API"
55authors = [{name = " STACKIT Developer Tools" , email = " developer-tools@stackit.cloud" }]
66requires-python = " >=3.10,<4.0"
You can’t perform that action at this time.
0 commit comments