Endpoints - Share Service Endpoint

プロジェクト間でサービス エンドポイントを共有する

PATCH https://dev.azure.com/{organization}/_apis/serviceendpoint/endpoints/{endpointId}?api-version=7.1-preview.4

URI パラメーター

名前 / 必須 説明
endpointId
path True

string

uuid

共有するエンドポイントのエンドポイント ID

organization
path True

string

Azure DevOps 組織の名前です。

api-version
query True

string

使う API のバージョン。 このバージョンの API を使用するには、これを '7.1-preview.4' に設定する必要があります。

要求本文

名前 説明
body

ServiceEndpointProjectReference[]

ターゲット プロジェクトのプロジェクト参照の詳細

応答

名前 説明
200 OK

正常な操作

セキュリティ

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

Scopes

名前 説明
vso.serviceendpoint_manage サービス エンドポイントの読み取り、クエリ、管理を行う機能を付与します。

Share service endpoint

Sample Request

PATCH https://dev.azure.com/{organization}/_apis/serviceendpoint/endpoints/{endpointId}?api-version=7.1-preview.4

[
  {
    "projectReference": {
      "id": "184fda7e-3559-4b3c-afa0-1b6998330f84",
      "name": "TestProject2"
    },
    "name": "MySharedServiceConnection"
  }
]

Sample Response

定義

名前 説明
ProjectReference
ServiceEndpointProjectReference

ProjectReference

名前 説明
id

string

name

string

ServiceEndpointProjectReference

名前 説明
description

string

サービス エンドポイントの説明を取得または設定します。

name

string

サービス エンドポイントの名前を取得または設定します。

projectReference

ProjectReference

サービス エンドポイントのプロジェクト参照を取得または設定します。