Azure.Contoso.WidgetManager (stable:2022-12-01)

2025/03/10 • 5 new methods

Widgets_ListWidgets (new)
Description List Widget resources
Reference Link ¶

⚼ Request

GET:  /widgets
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
manufacturerId: string ,
sharedModel:
{
tag: string ,
createdAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
Widgets_GetWidget (new)
Description Fetch a Widget by name.
Reference Link ¶

⚼ Request

GET:  /widgets/{widgetName}
{
api-version: string ,
widgetName: string ,
}

⚐ Response (200)

{
name: string ,
manufacturerId: string ,
sharedModel:
{
tag: string ,
createdAt: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
Widgets_CreateOrUpdateWidget (new)
Description Creates or updates a Widget asynchronously.
Reference Link ¶

⚼ Request

PATCH:  /widgets/{widgetName}
{
api-version: string ,
widgetName: string ,
resource:
{
manufacturerId: string ,
sharedModel:
{
tag: string ,
createdAt: string ,
}
,
}
,
}

⚐ Response (200)

{
$headers:
{
operation-location: string ,
}
,
$schema:
{
name: string ,
manufacturerId: string ,
sharedModel:
{
tag: string ,
createdAt: string ,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
operation-location: string ,
}
,
$schema:
{
name: string ,
manufacturerId: string ,
sharedModel:
{
tag: string ,
createdAt: string ,
}
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
Widgets_DeleteWidget (new)
Description Delete a Widget asynchronously.
Reference Link ¶

⚼ Request

DELETE:  /widgets/{widgetName}
{
api-version: string ,
widgetName: string ,
}

⚐ Response (202)

{
$headers:
{
operation-location: string ,
}
,
$schema:
{
id: string ,
status: enum ,
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
Widgets_GetWidgetOperationStatus (new)
Description Gets status of a Widget operation.
Reference Link ¶

⚼ Request

GET:  /widgets/{widgetName}/operations/{operationId}
{
api-version: string ,
widgetName: string ,
operationId: string ,
}

⚐ Response (200)

{
id: string ,
status: enum ,
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
result:
{
name: string ,
manufacturerId: string ,
sharedModel:
{
tag: string ,
createdAt: string ,
}
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}