@scaleway/sdk-container
v2.2.0
Published
Scaleway SDK container
Keywords
Readme
@scaleway/sdk-container
Scaleway SDK for Container API.
Note
This is an automatically generated package that is part of the Scaleway SDK for JavaScript.
Installation
npm install @scaleway/sdk-container @scaleway/sdk-clientor with pnpm:
pnpm add @scaleway/sdk-container @scaleway/sdk-clientor with yarn:
yarn add @scaleway/sdk-container @scaleway/sdk-clientGetting Started
You'll need a pair of access and secret keys to connect to Scaleway API. Please check the documentation on how to retrieve them.
Basic Usage
import { createClient } from '@scaleway/sdk-client'
import { Container } from '@scaleway/sdk-container'
const client = createClient({
accessKey: 'SCWXXXXXXXXXXXXXXXXX',
secretKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
defaultProjectId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
defaultRegion: 'fr-par',
defaultZone: 'fr-par-1',
})
const api = new Container.v1.API(client)
// Use the API
// Example: await api.listServers()Using Configuration Loader
For a simpler setup, you can load credentials from the configuration file or environment variables:
import { createClient } from '@scaleway/sdk-client'
import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
import { Container } from '@scaleway/sdk-container'
const profile = loadProfileFromConfigurationFile()
const client = createClient(profile)
const api = new Container.v1.API(client)Documentation
- 📚 Scaleway SDK Reference Documentation
- 🌐 Scaleway Container API Documentation
- 📖 Main Repository
- 💡 Example Projects
Features
- ✅ Full TypeScript support with complete type definitions
- ✅ Promise-based API
- ✅ Automatic pagination helpers
- ✅ Built-in error handling
- ✅ Compatible with Node.js ≥ 20
Support
We love feedback! Feel free to reach us on:
- Scaleway Slack community - Join us on #opensource
- GitHub Issues
Contributing
This repository is at its early stage and is still in active development. If you are looking for a way to contribute, please read CONTRIBUTING.md.
License
This project is Apache 2.0 licensed. See the LICENSE file for details.
