Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
{
"parameters": {
"api-version": "2021-11-01-preview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"linkerName": "linkName"
},
"responses": {
"200": {
"body": {
"value": [
{
"display": {
"description": "Register the subscription for Microsoft.ServiceLinker",
"operation": "Register the Microsoft.ServiceLinker",
"provider": "Microsoft.ServiceLinker",
"resource": "Microsoft.ServiceLinker"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/register/action"
},
{
"display": {
"description": "Unregister the subscription for Microsoft.ServiceLinker",
"operation": "Unregister the Microsoft.ServiceLinker",
"provider": "Microsoft.ServiceLinker",
"resource": "Microsoft.ServiceLinker"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/unregister/action"
},
{
"display": {
"description": "read operations",
"operation": "read_operations",
"provider": "Microsoft.ServiceLinker",
"resource": "operations"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/operations/read"
},
{
"display": {
"description": "list dryrun jobs",
"operation": "Dryrun_List",
"provider": "Microsoft.ServiceLinker",
"resource": "dryruns"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/dryruns/read"
},
{
"display": {
"description": "get a dryrun job",
"operation": "Dryrun_Get",
"provider": "Microsoft.ServiceLinker",
"resource": "dryruns"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/dryruns/read"
},
{
"display": {
"description": "create a dryrun job to do necessary check before actual creation",
"operation": "Dryrun_Create",
"provider": "Microsoft.ServiceLinker",
"resource": "dryruns"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/dryruns/write"
},
{
"display": {
"description": "delete a dryrun job",
"operation": "Dryrun_Delete",
"provider": "Microsoft.ServiceLinker",
"resource": "dryruns"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/dryruns/delete"
},
{
"display": {
"description": "add a dryrun job to do necessary check before actual creation",
"operation": "Dryrun_Update",
"provider": "Microsoft.ServiceLinker",
"resource": "dryruns"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/dryruns/write"
},
{
"display": {
"description": "read operationStatuses",
"operation": "read_operationStatuses",
"provider": "Microsoft.ServiceLinker",
"resource": "locations/operationStatuses"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/locations/operationStatuses/read"
},
{
"display": {
"description": "write operationStatuses",
"operation": "write_operationStatuses",
"provider": "Microsoft.ServiceLinker",
"resource": "locations/operationStatuses"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/locations/operationStatuses/write"
},
{
"display": {
"description": "Returns list of Linkers which connects to the resource.",
"operation": "Linker_List",
"provider": "Microsoft.ServiceLinker",
"resource": "linkers"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/linkers/read"
},
{
"display": {
"description": "Returns Linker resource for a given name.",
"operation": "Linker_Get",
"provider": "Microsoft.ServiceLinker",
"resource": "linkers"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/linkers/read"
},
{
"display": {
"description": "Create or update linker resource.",
"operation": "Linker_CreateOrUpdate",
"provider": "Microsoft.ServiceLinker",
"resource": "linkers"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/linkers/write"
},
{
"display": {
"description": "Delete a link.",
"operation": "Linker_Delete",
"provider": "Microsoft.ServiceLinker",
"resource": "linkers"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/linkers/delete"
},
{
"display": {
"description": "Operation to update an existing link.",
"operation": "Linker_Update",
"provider": "Microsoft.ServiceLinker",
"resource": "linkers"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/linkers/write"
},
{
"display": {
"description": "Validate a link.",
"operation": "Linker_Validate",
"provider": "Microsoft.ServiceLinker",
"resource": "linkers"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/linkers/validateLinker/action"
},
{
"display": {
"description": "list source configurations for a linker.",
"operation": "Linker_ListConfigurations",
"provider": "Microsoft.ServiceLinker",
"resource": "linkers"
},
"isDataAction": false,
"name": "Microsoft.ServiceLinker/linkers/listConfigurations/action"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"parameters": {
"api-version": "2021-11-01-preview",
"resourceUri": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
"linkerName": "linkName",
"parameters": {
"properties": {
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
"authInfo": {
"authType": "secret",
"name": "name",
"secret": "secret"
},
"vNetSolution": {
"type": "serviceEndpoint"
},
"secretStore": {
"keyVaultId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/test-kv"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/links/linkName",
"type": "Microsoft.ServiceLinker/links",
"name": "linkName",
"properties": {
"authInfo": {
"authType": "secret",
"name": "name"
},
"vNetSolution": {
"type": "serviceEndpoint"
},
"secretStore": {
"keyVaultId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/test-kv"
},
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app/providers/Microsoft.ServiceLinker/links/linkName",
"type": "Microsoft.ServiceLinker/links",
"name": "linkName",
"properties": {
"authInfo": {
"authType": "secret",
"name": "name"
},
"vNetSolution": {
"type": "serviceEndpoint"
},
"secretStore": {
"keyVaultId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/test-kv"
},
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@
"x-ms-examples": {
"PutLink": {
"$ref": "./examples/PutLink.json"
},
"PutLinkWithServiceEndpoint": {
"$ref": "./examples/PutLinkWithServiceEndpoint.json"
}
},
"parameters": [
Expand Down Expand Up @@ -355,6 +358,11 @@
],
"operationId": "Operations_List",
"description": "Lists the available ServiceLinker REST API operations.",
"x-ms-examples": {
"GetConfiguration": {
"$ref": "./examples/OperationsList.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -615,6 +623,14 @@
"readOnly": true,
"type": "string",
"description": "The provisioning state. "
},
"vNetSolution": {
"description": "The VNet solution.",
"$ref": "#/definitions/VNetSolution"
},
"secretStore": {
"description": "An option to store secret value in secure place",
"$ref": "#/definitions/SecretStore"
}
}
},
Expand Down Expand Up @@ -691,6 +707,34 @@
"$ref": "#/definitions/AuthType"
}
}
},
"VNetSolution": {
"type": "object",
"description": "The VNet solution for linker",
"properties": {
"type": {
"description": "Type of VNet solution.",
"type": "string",
"enum": [
"serviceEndpoint",
"privateLink"
],
"x-ms-enum": {
"name": "vNetSolutionType",
"modelAsString": true
}
}
}
},
"SecretStore": {
"type": "object",
"description": "An option to store secret value in secure place",
"properties": {
"keyVaultId": {
"type": "string",
"description": "The key vault id to store secret"
}
}
}
},
"parameters": {
Expand Down