Back to articles
Render Has a Free API You Should Know About
How-ToDevOps

Render Has a Free API You Should Know About

via Dev.to DevOpsAlex Spinov

Render is a cloud platform that deploys from Git — and its REST API gives you full control over your infrastructure. The Management API # List all services curl "https://api.render.com/v1/services" \ -H "Authorization: Bearer $RENDER_API_KEY " # Create a web service curl -X POST "https://api.render.com/v1/services" \ -H "Authorization: Bearer $RENDER_API_KEY " \ -d '{ "type": "web_service", "name": "my-api", "repo": "https://github.com/user/repo", "branch": "main", "runtime": "node", "buildCommand": "npm install && npm run build", "startCommand": "node dist/server.js", "plan": "starter", "region": "oregon" }' Deploy Hook — CI/CD Integration # Trigger deploy via webhook curl -X POST "https://api.render.com/deploy/srv-xxx?key=yyy" # Or from GitHub Actions - name: Deploy to Render run: curl -X POST " $RENDER_DEPLOY_HOOK " Blueprint — Infrastructure as Code # render.yaml services : - type : web name : api runtime : node plan : starter buildCommand : npm install && npm run build startComman

Continue reading on Dev.to DevOps

Opens in a new tab

Read Full Article
6 views

Related Articles