Skip to content

Commit 372d102

Browse files
Merge pull request #148 from Software-Hardware-Integration-Lab/LAB-1921_add_new_endpoint_for_get_template_list
LAB-1921_get_list _available_templates
2 parents 25c66c4 + edf3984 commit 372d102

1 file changed

Lines changed: 93 additions & 0 deletions

File tree

specs/Data-Gateway.json

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4724,6 +4724,50 @@
47244724
"Microsoft_Academic",
47254725
"Google-Workspace"
47264726
]
4727+
},
4728+
"CloudMatrix.TemplateMetadata": {
4729+
"title": "Cloud Matrix Template File Metadata",
4730+
"type": "object",
4731+
"description": "Information about Cloud Matrix template files.",
4732+
"properties": {
4733+
"createdOn": {
4734+
"$ref": "#/components/schemas/DateTimeStringType",
4735+
"description": "Creation date of the template file."
4736+
},
4737+
"name": {
4738+
"$ref": "#/components/schemas/CloudMatrix.TemplateName",
4739+
"description": "Name of available template."
4740+
},
4741+
"lastModified": {
4742+
"$ref": "#/components/schemas/DateTimeStringType",
4743+
"description": "Last modified date of the template file."
4744+
},
4745+
"type": {
4746+
"type": "string",
4747+
"description": "Type of the template.",
4748+
"examples": [
4749+
"Microsoft Cloud Adoption Matrix Template"
4750+
]
4751+
}
4752+
},
4753+
"required": [
4754+
"name",
4755+
"type"
4756+
],
4757+
"examples": [
4758+
{
4759+
"createdOn": "2025-12-15T21:13:12.821Z",
4760+
"name": "Microsoft Enterprise",
4761+
"lastModified": "2025-12-15T21:13:12.821Z",
4762+
"type": "Microsoft Cloud Adoption Matrix Template"
4763+
},
4764+
{
4765+
"createdOn": "2025-12-15T21:13:12.821Z",
4766+
"name": "Google-Workspace",
4767+
"lastModified": "2025-12-15T21:13:12.821Z",
4768+
"type": "Microsoft Cloud Adoption Matrix Template"
4769+
}
4770+
]
47274771
}
47284772
},
47294773
"securitySchemes": {
@@ -11084,6 +11128,55 @@
1108411128
"Cloud Matrix"
1108511129
]
1108611130
}
11131+
},
11132+
"/Api/CloudMatrix/TemplateMetadata/List": {
11133+
"get": {
11134+
"description": "Get a list of all available templates from CM storage. \n\nThis endpoint requires the `CloudMatrix.Read`, `CloudMatrix.Read.Del`, `CloudMatrix.Read.All`, `CloudMatrix.ReadWrite`, or `CloudMatrix.ReadWrite.All` scope (permission).",
11135+
"operationId": "/Api/CloudMatrix/TemplateMetadata/List/Get",
11136+
"responses": {
11137+
"200": {
11138+
"description": "List of TemplateFileMetadata objects.",
11139+
"content": {
11140+
"application/json": {
11141+
"examples": {
11142+
"Default Output": {
11143+
"description": "A list of template metadata that is stored in blob storage. This is the default output when there are two templates stored in blob storage.",
11144+
"summary": "Default Output",
11145+
"value": [
11146+
{
11147+
"createdOn": "2026-03-24T16:56:43.000Z",
11148+
"name": "cloudMatrix",
11149+
"lastModified": "2026-03-24T16:56:43.000Z",
11150+
"type": "Standard"
11151+
},
11152+
{
11153+
"createdOn": "2026-04-08T14:15:44.000Z",
11154+
"name": "Google",
11155+
"lastModified": "2026-04-08T14:15:44.000Z",
11156+
"type": "Premium"
11157+
}
11158+
]
11159+
}
11160+
},
11161+
"schema": {
11162+
"type": "array",
11163+
"minItems": 0,
11164+
"items": {
11165+
"$ref": "#/components/schemas/CloudMatrix.TemplateMetadata"
11166+
}
11167+
}
11168+
}
11169+
}
11170+
},
11171+
"500": {
11172+
"$ref": "#/components/responses/500"
11173+
}
11174+
},
11175+
"tags": [
11176+
"Cloud Matrix"
11177+
],
11178+
"summary": "Get a list of all available CM template objects"
11179+
}
1108711180
}
1108811181
},
1108911182
"security": [

0 commit comments

Comments
 (0)