Delen via


Artifact Stores - Create Or Update

Hiermee maakt of werkt u een artefactarchief bij.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/publishers/{publisherName}/artifactStores/{artifactStoreName}?api-version=2023-09-01

URI-parameters

Name In Vereist Type Description
artifactStoreName
path True

string

maxLength: 64
pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]*$

De naam van het artefactarchief.

publisherName
path True

string

maxLength: 64
pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]*$

De naam van de uitgever.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

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

subscriptionId
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 Vereist Type Description
location True

string

De geografische locatie waar de resource zich bevindt

properties

ArtifactStorePropertiesFormat

ArtifactStores-eigenschappen.

tags

object

Resourcetags.

Antwoorden

Name Type Description
200 OK

ArtifactStore

De bewerking Voor het maken of bijwerken is voltooid. De bewerking retourneert de resulterende ArtifactStore-subresource.

201 Created

ArtifactStore

De bewerking Voor het maken of bijwerken is voltooid. De bewerking retourneert de resulterende ArtifactStore-subresource.

Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Create or update an artifact store of publisher resource

Voorbeeldaanvraag

PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.HybridNetwork/publishers/TestPublisher/artifactStores/TestArtifactStore?api-version=2023-09-01

{
  "location": "eastus",
  "properties": {
    "storeType": "AzureContainerRegistry",
    "replicationStrategy": "SingleReplication",
    "managedResourceGroupConfiguration": {
      "name": "testRg",
      "location": "eastus"
    }
  }
}

Voorbeeldrespons

{
  "name": "TestArtifactStore",
  "id": "/subscriptions/subid/providers/microsoft.hybridnetwork/publishers/TestPublisher/artifactStores/TestArtifactStore",
  "type": "microsoft.hybridnetwork/publishers/artifactStores",
  "location": "eastus",
  "properties": {
    "storeType": "AzureContainerRegistry",
    "replicationStrategy": "SingleReplication",
    "storageResourceId": "TestResourceId",
    "managedResourceGroupConfiguration": {
      "name": "testRg",
      "location": "eastus"
    }
  }
}
{
  "name": "TestArtifactStore",
  "id": "/subscriptions/subid/providers/microsoft.hybridnetwork/publishers/TestPublisher/artifactStores/TestArtifactStore",
  "type": "microsoft.hybridnetwork/publishers/artifactStores",
  "location": "eastus",
  "properties": {
    "storeType": "AzureContainerRegistry",
    "replicationStrategy": "SingleReplication",
    "storageResourceId": "TestResourceId",
    "managedResourceGroupConfiguration": {
      "name": "testRg",
      "location": "eastus"
    }
  }
}

Definities

Name Description
ArtifactReplicationStrategy

De replicatiestrategie.

ArtifactStore

Eigenschappen van artefactopslag.

ArtifactStorePropertiesFormat

Eigenschappen van artefactopslag.

ArtifactStoreType

Het type artefactarchief.

createdByType

Het type identiteit waarmee de resource is gemaakt.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

ManagedResourceGroupConfiguration
ProvisioningState

De huidige inrichtingsstatus.

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

ArtifactReplicationStrategy

De replicatiestrategie.

Waarde Description
SingleReplication
Unknown

ArtifactStore

Eigenschappen van artefactopslag.

Name Type Description
id

string

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

location

string

De geografische locatie waar de resource zich bevindt

name

string

De naam van de resource

properties

ArtifactStorePropertiesFormat

ArtifactStores-eigenschappen.

systemData

systemData

Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens.

tags

object

Resourcetags.

type

string

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

ArtifactStorePropertiesFormat

Eigenschappen van artefactopslag.

Name Type Description
managedResourceGroupConfiguration

ManagedResourceGroupConfiguration

provisioningState

ProvisioningState

De inrichtingsstatus van de resource van de toepassingsgroepen.

replicationStrategy

ArtifactReplicationStrategy

De replicatiestrategie.

storageResourceId

string

De gemaakte opslagresource-id

storeType

ArtifactStoreType

Het type artefactarchief.

ArtifactStoreType

Het type artefactarchief.

Waarde Description
AzureContainerRegistry
AzureStorageAccount
Unknown

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

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

ManagedResourceGroupConfiguration

Name Type Description
location

string

De locatie van de beheerde resourcegroep.

name

string

De naam van de beheerde resourcegroep.

ProvisioningState

De huidige inrichtingsstatus.

Waarde Description
Accepted
Canceled
Converging
Deleted
Deleting
Failed
Succeeded
Unknown

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

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

createdByType

Het type identiteit dat de resource voor het laatst heeft gewijzigd.