Freigeben über


DataProductResource.AddUserRole Methode

Definition

Weisen Sie dem Datenprodukt eine Rolle zu.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole
  • Vorgangs-IdDataProducts_AddUserRole
public virtual Azure.Response<Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentDetail> AddUserRole (Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentCommonProperties body, System.Threading.CancellationToken cancellationToken = default);
abstract member AddUserRole : Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentCommonProperties * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentDetail>
override this.AddUserRole : Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentCommonProperties * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentDetail>
Public Overridable Function AddUserRole (body As RoleAssignmentCommonProperties, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RoleAssignmentDetail)

Parameter

body
RoleAssignmentCommonProperties

Der Inhalt der Aktionsanforderung.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

body ist NULL.

Gilt für: