Microsoft.MachineLearningServices (preview:2025-01-01)

2025/02/21 • 4 updated methods

ServerlessEndpoints_List (updated)
Description List Serverless Endpoints.
Reference Link ¶

⚶ Changes

{
  "#id": "ServerlessEndpoints_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "contentSafety": [
                  {
                    "#name": "contentSafetyLevel",
                    "Required": {
                      "new": true,
                      "old": false
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints
{
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
api-version: string ,
$skip: string ,
}

⚐ Response (200)

{
nextLink: string ,
value:
[
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
kind: string ,
properties:
{
authMode: enum ,
contentSafety:
{
contentSafetyLevel: enum ,
contentSafetyStatus: enum ,
}
,
endpointState: enum ,
inferenceEndpoint:
{
headers: object ,
uri: string ,
}
,
marketplaceSubscriptionId: string ,
modelSettings:
{
modelId: string ,
}
,
provisioningState: enum ,
}
,
sku:
{
name: string ,
tier: enum ,
size: string ,
family: string ,
capacity: integer ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ServerlessEndpoints_Get (updated)
Description Get Serverless Endpoint.
Reference Link ¶

⚶ Changes

{
  "#id": "ServerlessEndpoints_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "contentSafety": [
              {
                "#name": "contentSafetyLevel",
                "Required": {
                  "new": true,
                  "old": false
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}
{
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
kind: string ,
properties:
{
authMode: enum ,
contentSafety:
{
contentSafetyLevel: enum ,
contentSafetyStatus: enum ,
}
,
endpointState: enum ,
inferenceEndpoint:
{
headers: object ,
uri: string ,
}
,
marketplaceSubscriptionId: string ,
modelSettings:
{
modelId: string ,
}
,
provisioningState: enum ,
}
,
sku:
{
name: string ,
tier: enum ,
size: string ,
family: string ,
capacity: integer ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ServerlessEndpoints_Update (updated)
Description Update Serverless Endpoint (asynchronous).
Reference Link ¶

⚶ Changes

{
  "#id": "ServerlessEndpoints_Update",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "contentSafety": [
              {
                "#name": "contentSafetyLevel",
                "Required": {
                  "new": true,
                  "old": false
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}
{
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
name: string ,
api-version: string ,
body:
{
identity:
{
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
capacity: integer ,
family: string ,
name: string ,
size: string ,
tier: enum ,
}
,
}
,
}

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
kind: string ,
properties:
{
authMode: enum ,
contentSafety:
{
contentSafetyLevel: enum ,
contentSafetyStatus: enum ,
}
,
endpointState: enum ,
inferenceEndpoint:
{
headers: object ,
uri: string ,
}
,
marketplaceSubscriptionId: string ,
modelSettings:
{
modelId: string ,
}
,
provisioningState: enum ,
}
,
sku:
{
name: string ,
tier: enum ,
size: string ,
family: string ,
capacity: integer ,
}
,
}

⚐ Response (202)

{
x-ms-async-operation-timeout: string ,
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ServerlessEndpoints_CreateOrUpdate (updated)
Description Create or update Serverless Endpoint (asynchronous).
Reference Link ¶

⚶ Changes

{
  "#id": "ServerlessEndpoints_CreateOrUpdate",
  "$parameters": {
    "body": {
      "$properties": {
        "properties": [
          {
            "contentSafety": [
              {
                "#name": "contentSafetyLevel",
                "Required": {
                  "new": true,
                  "old": false
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "contentSafety": [
              {
                "#name": "contentSafetyLevel",
                "Required": {
                  "new": true,
                  "old": false
                }
              }
            ]
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "contentSafety": [
              {
                "#name": "contentSafetyLevel",
                "Required": {
                  "new": true,
                  "old": false
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}
{
subscriptionId: string ,
resourceGroupName: string ,
workspaceName: string ,
name: string ,
api-version: string ,
body:
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
kind: string ,
properties:
{
authMode: enum ,
contentSafety:
{
contentSafetyLevel: enum ,
contentSafetyStatus: enum ,
}
,
endpointState: enum ,
inferenceEndpoint:
{
headers: object ,
uri: string ,
}
,
marketplaceSubscriptionId: string ,
modelSettings:
{
modelId: string ,
}
,
provisioningState: enum ,
}
,
sku:
{
name: string ,
tier: enum ,
size: string ,
family: string ,
capacity: integer ,
}
,
}
,
}

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
kind: string ,
properties:
{
authMode: enum ,
contentSafety:
{
contentSafetyLevel: enum ,
contentSafetyStatus: enum ,
}
,
endpointState: enum ,
inferenceEndpoint:
{
headers: object ,
uri: string ,
}
,
marketplaceSubscriptionId: string ,
modelSettings:
{
modelId: string ,
}
,
provisioningState: enum ,
}
,
sku:
{
name: string ,
tier: enum ,
size: string ,
family: string ,
capacity: integer ,
}
,
}

⚐ Response (201)

{
$headers:
{
x-ms-async-operation-timeout: string ,
azure-asyncoperation: string ,
}
,
$schema:
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
kind: string ,
properties:
{
authMode: enum ,
contentSafety:
{
contentSafetyLevel: enum ,
contentSafetyStatus: enum ,
}
,
endpointState: enum ,
inferenceEndpoint:
{
headers: object ,
uri: string ,
}
,
marketplaceSubscriptionId: string ,
modelSettings:
{
modelId: string ,
}
,
provisioningState: enum ,
}
,
sku:
{
name: string ,
tier: enum ,
size: string ,
family: string ,
capacity: integer ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}