Share via


Linked Services - Create Or Update

Een gekoppelde service maken of bijwerken.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName}?api-version=2020-08-01

URI-parameters

Name In Vereist Type Description
linkedServiceName
path True

string

Naam van de gekoppeldeServices-resource

resourceGroupName
path True

string

De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.

subscriptionId
path True

string

De id van het doelabonnement.

workspaceName
path True

string

De naam van de werkruimte.

Regex pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$

api-version
query True

string

De API-versie die voor deze bewerking moet worden gebruikt.

Aanvraagbody

Name Type Description
properties.provisioningState

LinkedServiceEntityStatus

De inrichtingsstatus van de gekoppelde service.

properties.resourceId

string

De resource-id van de resource die wordt gekoppeld aan de werkruimte. Dit moet worden gebruikt voor het koppelen van resources waarvoor leestoegang is vereist

properties.writeAccessResourceId

string

De resource-id van de resource die wordt gekoppeld aan de werkruimte. Dit moet worden gebruikt voor het koppelen van resources waarvoor schrijftoegang is vereist

tags

object

Resourcetags.

Antwoorden

Name Type Description
200 OK

LinkedService

Definitie van OK-antwoord.

201 Created

LinkedService

Antwoorddefinitie gemaakt.

202 Accepted

Geaccepteerde antwoorddefinitie.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation uw gebruikersaccount imiteren

Voorbeelden

LinkedServicesCreate

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/TestLinkWS/linkedServices/Cluster?api-version=2020-08-01

{
  "properties": {
    "writeAccessResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster"
  }
}

Sample Response

{
  "properties": {
    "writeAccessResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster",
    "provisioningState": "ProvisioningAccount"
  },
  "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testlinkws/linkedservices/cluster",
  "name": "TestLinkWS/Cluster",
  "type": "Microsoft.OperationalInsights/workspaces/linkedServices"
}
{
  "properties": {
    "writeAccessResourceId": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster",
    "provisioningState": "ProvisioningAccount"
  },
  "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testlinkws/linkedservices/cluster",
  "name": "TestLinkWS/Cluster",
  "type": "Microsoft.OperationalInsights/workspaces/linkedServices"
}

Definities

Name Description
LinkedService

De resourcecontainer van de gekoppelde service op het hoogste niveau.

LinkedServiceEntityStatus

De inrichtingsstatus van de gekoppelde service.

LinkedService

De resourcecontainer van de gekoppelde service op het hoogste niveau.

Name Type Description
id

string

Volledig gekwalificeerde resource-id voor de resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

De naam van de resource

properties.provisioningState

LinkedServiceEntityStatus

De inrichtingsstatus van de gekoppelde service.

properties.resourceId

string

De resource-id van de resource die wordt gekoppeld aan de werkruimte. Dit moet worden gebruikt voor het koppelen van resources waarvoor leestoegang is vereist

properties.writeAccessResourceId

string

De resource-id van de resource die wordt gekoppeld aan de werkruimte. Dit moet worden gebruikt voor het koppelen van resources waarvoor schrijftoegang is vereist

tags

object

Resourcetags.

type

string

Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

LinkedServiceEntityStatus

De inrichtingsstatus van de gekoppelde service.

Name Type Description
Deleting

string

ProvisioningAccount

string

Succeeded

string

Updating

string