- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
The Cloudcraft API provides programmatic access and remote rendering of your architecture diagrams. The API also provides fully automated visualization of AWS and Azure accounts that are linked to your Cloudcraft account, either as ready to use images or as JSON data.
Use case examples:
Access to the Cloudcraft API requires a Cloudcraft user account.
To authenticate your Cloudcraft account for the API, you must include your secret key in the requests. You can create API keys in the Manage API keys > Create API Key section of the Cloudcraft application.
The API key provides access to your diagrams and linked AWS accounts in either read or read-write mode. Do not share your secret API keys in publicly accessible areas such as GitHub or client-side code.
Authentication to the API is performed via the Bearer Authorization header over HTTPS. For example, using cURL an authorized request looks like this:
curl -X GET \
-H 'Authorization: Bearer bear3vFUUkgfzoBK+UKyPmZw1NsdfrFzdvZoyFJwe8=' \
https://api.cloudcraft.co/user/me
The Cloudcraft API endpoint is https://api.cloudcraft.co. For access to the Cloudcraft US GovCloud API, contact Cloudcraft Support.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail.
Cloudcraft throttles the number of API request that can be made per API key. This is to help the performance of the service, and to ensure fair usage for all Cloudcraft customers. The current API limits are 20 requests / 10 seconds (120 req / minute).
When the request submissions exceeds the rate limit, clients receive a 429 Too Many Requests
error response with a Retry-After
header that indicates how long (in seconds) the user agent should wait before making a follow-up request. Clients should catch this exception, and retry based on the hint from Retry-After
header until successful.
Blueprints and AWS Accounts support the following access control properties:
{
...
readAccess: [],
writeAccess: []
}
Where an ACL is a string of the form:
team/TEAM_ID
customer/CUSTOMER_ID
For example, to share a blueprint with two teams:
"readAccess": ["team/512184ee-e683-45c1-948a-f588b8c833ca", "team/aab74437-ff4c-4a6d-b366-1311821905b1"]
To unshare a blueprint, set the list to []
;
Note: The APIs validate both read and write access separately. In the UI, only the readAccess
is reflected.
By default, the Cloudcraft API docs show examples in cURL. Each endpoint also includes code examples from one of the official SDKs. To install each SDK:
go mod init main && go get github.com/DataDog/cloudcraft-go
import (
"github.com/DataDog/cloudcraft-go"
)
pip3 install cloudcraftco
from cloudcraftco import Cloudcraft
npm install cloudcraft
import { Cloudcraft } from 'cloudcraft';
Or check out the SDKs directly: