Project Catalogs - Patch
Hiermee wordt een projectcatalogus gedeeltelijk bijgewerkt.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}?api-version=2024-02-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
catalog
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$ |
De naam van de catalogus. |
project
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$ |
De naam van het project. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
De naam van de resourcegroep. De naam is niet hoofdlettergevoelig. |
subscription
|
path | True |
string minLength: 1 |
De id van het doelabonnement. |
api-version
|
query | True |
string minLength: 1 |
De API-versie die voor deze bewerking moet worden gebruikt. |
Aanvraagbody
Name | Type | Description |
---|---|---|
properties.adoGit |
Eigenschappen voor een Azure DevOps-catalogustype. |
|
properties.gitHub |
Eigenschappen voor een GitHub-catalogustype. |
|
properties.syncType |
Geeft het type synchronisatie aan dat is geconfigureerd voor de catalogus. |
|
properties.tags |
object |
Resourcetags. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De resource is bijgewerkt. |
|
202 Accepted |
De aanvraag wordt asynchroon voltooid. Kopteksten Location: string |
|
Other Status Codes |
Foutreactie waarin wordt beschreven waarom de bewerking is mislukt. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
ProjectCatalogs_Patch
Voorbeeldaanvraag
PATCH https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog?api-version=2024-02-01
{
"properties": {
"gitHub": {
"path": "/environments"
}
}
}
Voorbeeldrespons
{
"id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/DevProject/catalogs/CentralCatalog",
"name": "CentralCatalog",
"type": "Microsoft.DevCenter/projects/catalogs",
"properties": {
"gitHub": {
"uri": "https://github.com/Contoso/centralrepo-fake.git",
"branch": "main",
"secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
"path": "/environments"
},
"lastSyncStats": {
"added": 1,
"updated": 1,
"unchanged": 1,
"removed": 1,
"validationErrors": 1,
"synchronizationErrors": 1
},
"lastConnectionTime": "2020-11-18T18:28:00.314Z",
"lastSyncTime": "2020-11-18T18:28:00.314Z",
"provisioningState": "Succeeded",
"connectionState": "Connected",
"syncState": "Succeeded"
},
"systemData": {
"createdBy": "User1",
"createdByType": "User",
"createdAt": "2020-11-18T18:24:24.818Z",
"lastModifiedBy": "User1",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-11-18T18:24:24.818Z"
}
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/CENTRALUS/operationStatuses/722e7bc4-60fa-4e6b-864f-d5bf12b9adc4?api-version=2023-10-01-preview
Definities
Name | Description |
---|---|
Catalog |
Vertegenwoordigt een catalogus. |
Catalog |
De verbindingsstatus van de catalogus. |
Catalog |
Geeft catalogusitemtypen aan. |
Catalog |
De synchronisatiestatus van de catalogus. |
Catalog |
Geeft het type synchronisatie aan dat is geconfigureerd voor de catalogus. |
Catalog |
De eigenschappen van de catalogus voor gedeeltelijke updates. Eigenschappen die niet zijn opgegeven in de updateaanvraag, worden niet gewijzigd. |
created |
Het type identiteit waarmee de resource is gemaakt. |
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
De foutdetails. |
Error |
Foutreactie |
Git |
Eigenschappen voor een Git-opslagplaatscatalogus. |
Provisioning |
Inrichtingsstatus van de resource. |
Sync |
Statistieken van de synchronisatie. |
system |
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource. |
Catalog
Vertegenwoordigt een catalogus.
Name | Type | Description |
---|---|---|
id |
string (arm-id) |
Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceType}/{resourceName}" |
name |
string |
De naam van de resource |
properties.adoGit |
Eigenschappen voor een Azure DevOps-catalogustype. |
|
properties.connectionState |
De verbindingsstatus van de catalogus. |
|
properties.gitHub |
Eigenschappen voor een GitHub-catalogustype. |
|
properties.lastConnectionTime |
string (date-time) |
Toen de catalogus voor het laatst is verbonden. |
properties.lastSyncStats |
Statistieken van de meest recente synchronisatie. |
|
properties.lastSyncTime |
string (date-time) |
Toen de catalogus voor het laatst werd gesynchroniseerd. |
properties.provisioningState |
De inrichtingsstatus van de resource. |
|
properties.syncState |
De synchronisatiestatus van de catalogus. |
|
properties.syncType |
Geeft het type synchronisatie aan dat is geconfigureerd voor de catalogus. |
|
properties.tags |
object |
Resourcetags. |
systemData |
Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens. |
|
type |
string |
Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
CatalogConnectionState
De verbindingsstatus van de catalogus.
Waarde | Description |
---|---|
Connected | |
Disconnected |
CatalogItemType
Geeft catalogusitemtypen aan.
Waarde | Description |
---|---|
EnvironmentDefinition |
CatalogSyncState
De synchronisatiestatus van de catalogus.
Waarde | Description |
---|---|
Canceled | |
Failed | |
InProgress | |
Succeeded |
CatalogSyncType
Geeft het type synchronisatie aan dat is geconfigureerd voor de catalogus.
Waarde | Description |
---|---|
Manual | |
Scheduled |
CatalogUpdate
De eigenschappen van de catalogus voor gedeeltelijke updates. Eigenschappen die niet zijn opgegeven in de updateaanvraag, worden niet gewijzigd.
Name | Type | Description |
---|---|---|
properties.adoGit |
Eigenschappen voor een Azure DevOps-catalogustype. |
|
properties.gitHub |
Eigenschappen voor een GitHub-catalogustype. |
|
properties.syncType |
Geeft het type synchronisatie aan dat is geconfigureerd voor de catalogus. |
|
properties.tags |
object |
Resourcetags. |
createdByType
Het type identiteit waarmee de resource is gemaakt.
Waarde | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
Name | Type | Description |
---|---|---|
error |
Het foutobject. |
GitCatalog
Eigenschappen voor een Git-opslagplaatscatalogus.
Name | Type | Description |
---|---|---|
branch |
string |
Git-vertakking. |
path |
string |
De map waarin de catalogusitems zich in de opslagplaats bevinden. |
secretIdentifier |
string |
Een verwijzing naar het Key Vault-geheim met een beveiligingstoken om te verifiëren bij een Git-opslagplaats. |
uri |
string |
Git-URI. |
ProvisioningState
Inrichtingsstatus van de resource.
Waarde | Description |
---|---|
Accepted | |
Canceled | |
Created | |
Creating | |
Deleted | |
Deleting | |
Failed | |
MovingResources | |
NotSpecified | |
RolloutInProgress | |
Running | |
StorageProvisioningFailed | |
Succeeded | |
TransientFailure | |
Updated | |
Updating |
SyncStats
Statistieken van de synchronisatie.
Name | Type | Description |
---|---|---|
added |
integer (int32) minimum: 0 |
Het aantal catalogusitems dat is toegevoegd tijdens de synchronisatie. |
removed |
integer (int32) minimum: 0 |
Het aantal catalogusitems dat tijdens de synchronisatie is verwijderd. |
syncedCatalogItemTypes |
Hiermee wordt aangegeven welke catalogusitemtypen zijn gesynchroniseerd. |
|
synchronizationErrors |
integer (int32) minimum: 0 |
Het aantal synchronisatiefouten dat is opgetreden tijdens de synchronisatie. |
unchanged |
integer (int32) minimum: 0 |
Het aantal catalogusitems dat tijdens de synchronisatie ongewijzigd is gebleven. |
updated |
integer (int32) minimum: 0 |
Het aantal catalogusitems dat is bijgewerkt tijdens de synchronisatie. |
validationErrors |
integer (int32) minimum: 0 |
Aantal catalogusitems met validatiefouten tijdens de synchronisatie. |
systemData
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
De tijdstempel van het maken van resources (UTC). |
createdBy |
string |
De identiteit waarmee de resource is gemaakt. |
createdByType |
Het type identiteit waarmee de resource is gemaakt. |
|
lastModifiedAt |
string (date-time) |
De tijdstempel van de laatste wijziging van de resource (UTC) |
lastModifiedBy |
string |
De identiteit die de resource voor het laatst heeft gewijzigd. |
lastModifiedByType |
Het type identiteit dat de resource voor het laatst heeft gewijzigd. |