- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
GET /blueprint
List all of your saved blueprints.
Each entry includes the blueprint ID and name, access control, and user information.
The provided blueprint IDs are required to access the other blueprint-related APIs.
OK
{
"blueprints": [
{
"CreatorId": "us46e9aa-5806-4cd6-8e78-c22d58602d09",
"LastUserId": "us46e9aa-5806-4cd6-8e78-c22d58602d09",
"createdAt": "2022-01-01T20:54:47.302Z",
"id": "bp37712a-c507-4c62-ad8b-7d981cacb3be",
"name": "Web App Reference Architecture",
"updatedAt": "2022-01-01T20:55:52.876Z"
}
]
}
Unauthorized
from cloudcraftco import Cloudcraft
cloudcraft = Cloudcraft()
blueprints = cloudcraft.list_blueprints()
POST /blueprint
Create a new blueprint.
The body of the request should contain the blueprint document in JSON format. The response contains the created blueprint, including the newly assigned ID.
OK
{
"CreatorId": "us46e9aa-5806-4cd6-8e78-c22d58602d09",
"LastUserId": "us46e9aa-5806-4cd6-8e78-c22d58602d09",
"createdAt": "2022-01-01T20:59:57.340Z",
"data": {
"grid": "standard",
"name": "My new blueprint",
"version": 1
},
"id": "bp37712a-c507-4c62-ad8b-7d981cacb3be",
"updatedAt": "2022-01-01T20:59:57.340Z"
}
Unauthorized
Forbidden, insufficient privileges
from cloudcraftco import Cloudcraft
cloudcraft = Cloudcraft()
data = {"data": {"grid": "standard", "name": "New blueprint"}}
result = cloudcraft.create_blueprint(data)
DELETE /blueprint/{blueprint_id}
Delete a blueprint.
When the deletion succeeds, 204 No Content is returned.
OK
Unauthorized
Forbidden, insufficient privileges
Blueprint not found
from cloudcraftco import Cloudcraft
cloudcraft = Cloudcraft()
blueprint_id = 1234
result = cloudcraft.delete_blueprint(blueprint_id)
GET /blueprint/{blueprint_id}
Retrieve a blueprint in JSON format.
Retrieve blueprint
Unauthorized
Forbidden, insufficient privileges
Blueprint not found
from cloudcraftco import Cloudcraft
cloudcraft = Cloudcraft()
blueprint_id = 1234
blueprint = cloudcraft.read_blueprint(blueprint_id)
PUT /blueprint/{blueprint_id}
Update an existing blueprint.
The body of the request should contain the updated blueprint document in JSON format.
Optionally, a conditional update of the blueprint can be perfomed by including the If-Match HTTP header with the same ETag value as provided by the “Retrieve blueprint” API. If the blueprint has been modified since the retrieval, the update is rejected with a 412 Resource out of date response. If the update succeeds, the new ETag is returned.
OK
Unauthorized
Forbidden, insufficient privileges
Blueprint not found
Resource out of date
from cloudcraftco import Cloudcraft
cloudcraft = Cloudcraft()
blueprint_id = 1234
data = {
"data": {
"grid": "standard",
"name": "Updated blueprint",
"text": [
{
"id": "label1",
"text": "Hello\nWorld!",
"type": "isotext",
"color": "#f5b720",
"mapPos": [0, 0],
"textSize": 15,
}
],
}
}
result = cloudcraft.update_blueprint(blueprint_id, data)
GET /blueprint/{blueprint_id}/{format}
Render blueprint for export in SVG, PNG, PDF, or MxGraph format.
OK
Unauthorized
Forbidden, insufficient privileges
Blueprint not found
from cloudcraftco import Cloudcraft
cloudcraft = Cloudcraft()
blueprints = cloudcraft.list_blueprints()
blueprint_id = 1234
bp_format = "png"
export = cloudcraft.export_blueprint(blueprint_id, bp_format)
with open(f'export.{bp_format}', "wb") as binary_file:
binary_file.write(export)