C# Класс Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ActiveDirectoryClient

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ActiveDirectoryClient ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication

Creates new ActiveDirectoryClient using WindowsAzureSubscription.

CreateAppKeyCredential ( string appObjectId, Microsoft.Azure.Graph.RBAC.Models.KeyCredential credential ) : PSADCredential
CreateAppPasswordCredential ( string appObjectId, Microsoft.Azure.Graph.RBAC.Models.PasswordCredential credential ) : PSADCredential
CreateApplication ( CreatePSApplicationParameters createParameters ) : PSADApplication
CreateServicePrincipal ( CreatePSServicePrincipalParameters createParameters ) : PSADServicePrincipal
CreateSpKeyCredential ( string spObjectId, Microsoft.Azure.Graph.RBAC.Models.KeyCredential credential ) : PSADCredential
CreateSpPasswordCredential ( string spObjectId, Microsoft.Azure.Graph.RBAC.Models.PasswordCredential credential ) : PSADCredential
CreateUser ( Microsoft.Azure.Graph.RBAC.Models.UserCreateParameters userCreateParam ) : PSADUser
FilterGroups ( ) : List
FilterGroups ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
FilterServicePrincipals ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
FilterServices ( ) : List
FilterUsers ( ) : List
FilterUsers ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
GetADObject ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : PSADObject
GetAppCredentials ( string appObjectId ) : List
GetApplication ( string applicationObjectId ) : PSADApplication
GetApplicationWithFilters ( Rest odataQueryFilter ) : IEnumerable
GetGroupMembers ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
GetObjectId ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : System.Guid
GetObjectIdFromApplicationId ( string applicationId ) : string
GetObjectIdFromSPN ( string spn ) : string
GetObjectsByObjectId ( List objectIds ) : List
GetSpCredentials ( string spObjectId ) : List
ListUserGroups ( string principal ) : List
RemoveAllAppCredentials ( string appObjectId ) : void
RemoveAllSpCredentials ( string spObjectId ) : void
RemoveAppCredentialByKeyId ( string appObjectId, System.Guid keyId ) : void
RemoveApplication ( string applicationObjectId ) : void
RemoveServicePrincipal ( string objectId ) : PSADServicePrincipal
RemoveSpCredentialByKeyId ( string spObjectId, System.Guid keyId ) : void
RemoveUser ( string upnOrObjectId ) : void
UpdateApplication ( string appObjectId, ApplicationUpdateParameters parameters ) : void
UpdateUser ( string upnOrObjectId, UserUpdateParameters userUpdateParam ) : PSADUser

Приватные методы

Метод Описание
GetAppKeyCredentials ( string appObjectId ) : List
GetAppPasswordCredentials ( string appObjectId ) : List
GetSpKeyCredentials ( string spObjectId ) : List
GetSpPasswordCredentials ( string spObjectId ) : List
IsSet ( ) : bool
Normalize ( string s ) : string
PatchAppKeyCredentials ( string appObjectId, List keyCredentails ) : void
PatchAppPasswordCredentials ( string appObjectId, List passwordCredentials ) : void
PatchSpKeyCredentials ( string spObjectId, List keyCredentails ) : void
PatchSpPasswordCredentials ( string spObjectId, List passwordCredentials ) : void
ValidateKeyCredential ( Microsoft.Azure.Graph.RBAC.Models.KeyCredential credential ) : void
ValidatePasswordCredential ( Microsoft.Azure.Graph.RBAC.Models.PasswordCredential credential ) : void

Описание методов

ActiveDirectoryClient() публичный Метод

Creates new ActiveDirectoryClient using WindowsAzureSubscription.
public ActiveDirectoryClient ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
Результат Microsoft.Azure.Commands.Common.Authentication

CreateAppKeyCredential() публичный Метод

public CreateAppKeyCredential ( string appObjectId, Microsoft.Azure.Graph.RBAC.Models.KeyCredential credential ) : PSADCredential
appObjectId string
credential Microsoft.Azure.Graph.RBAC.Models.KeyCredential
Результат PSADCredential

CreateAppPasswordCredential() публичный Метод

public CreateAppPasswordCredential ( string appObjectId, Microsoft.Azure.Graph.RBAC.Models.PasswordCredential credential ) : PSADCredential
appObjectId string
credential Microsoft.Azure.Graph.RBAC.Models.PasswordCredential
Результат PSADCredential

CreateApplication() публичный Метод

public CreateApplication ( CreatePSApplicationParameters createParameters ) : PSADApplication
createParameters CreatePSApplicationParameters
Результат PSADApplication

CreateServicePrincipal() публичный Метод

public CreateServicePrincipal ( CreatePSServicePrincipalParameters createParameters ) : PSADServicePrincipal
createParameters CreatePSServicePrincipalParameters
Результат PSADServicePrincipal

CreateSpKeyCredential() публичный Метод

public CreateSpKeyCredential ( string spObjectId, Microsoft.Azure.Graph.RBAC.Models.KeyCredential credential ) : PSADCredential
spObjectId string
credential Microsoft.Azure.Graph.RBAC.Models.KeyCredential
Результат PSADCredential

CreateSpPasswordCredential() публичный Метод

public CreateSpPasswordCredential ( string spObjectId, Microsoft.Azure.Graph.RBAC.Models.PasswordCredential credential ) : PSADCredential
spObjectId string
credential Microsoft.Azure.Graph.RBAC.Models.PasswordCredential
Результат PSADCredential

CreateUser() публичный Метод

public CreateUser ( Microsoft.Azure.Graph.RBAC.Models.UserCreateParameters userCreateParam ) : PSADUser
userCreateParam Microsoft.Azure.Graph.RBAC.Models.UserCreateParameters
Результат PSADUser

FilterGroups() публичный Метод

public FilterGroups ( ) : List
Результат List

FilterGroups() публичный Метод

public FilterGroups ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
Результат List

FilterServicePrincipals() публичный Метод

public FilterServicePrincipals ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
Результат List

FilterServices() публичный Метод

public FilterServices ( ) : List
Результат List

FilterUsers() публичный Метод

public FilterUsers ( ) : List
Результат List

FilterUsers() публичный Метод

public FilterUsers ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
Результат List

GetADObject() публичный Метод

public GetADObject ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : PSADObject
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
Результат PSADObject

GetAppCredentials() публичный Метод

public GetAppCredentials ( string appObjectId ) : List
appObjectId string
Результат List

GetApplication() публичный Метод

public GetApplication ( string applicationObjectId ) : PSADApplication
applicationObjectId string
Результат PSADApplication

GetApplicationWithFilters() публичный Метод

public GetApplicationWithFilters ( Rest odataQueryFilter ) : IEnumerable
odataQueryFilter Rest
Результат IEnumerable

GetGroupMembers() публичный Метод

public GetGroupMembers ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
Результат List

GetObjectId() публичный Метод

public GetObjectId ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : System.Guid
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
Результат System.Guid

GetObjectIdFromApplicationId() публичный Метод

public GetObjectIdFromApplicationId ( string applicationId ) : string
applicationId string
Результат string

GetObjectIdFromSPN() публичный Метод

public GetObjectIdFromSPN ( string spn ) : string
spn string
Результат string

GetObjectsByObjectId() публичный Метод

public GetObjectsByObjectId ( List objectIds ) : List
objectIds List
Результат List

GetSpCredentials() публичный Метод

public GetSpCredentials ( string spObjectId ) : List
spObjectId string
Результат List

ListUserGroups() публичный Метод

public ListUserGroups ( string principal ) : List
principal string
Результат List

RemoveAllAppCredentials() публичный Метод

public RemoveAllAppCredentials ( string appObjectId ) : void
appObjectId string
Результат void

RemoveAllSpCredentials() публичный Метод

public RemoveAllSpCredentials ( string spObjectId ) : void
spObjectId string
Результат void

RemoveAppCredentialByKeyId() публичный Метод

public RemoveAppCredentialByKeyId ( string appObjectId, System.Guid keyId ) : void
appObjectId string
keyId System.Guid
Результат void

RemoveApplication() публичный Метод

public RemoveApplication ( string applicationObjectId ) : void
applicationObjectId string
Результат void

RemoveServicePrincipal() публичный Метод

public RemoveServicePrincipal ( string objectId ) : PSADServicePrincipal
objectId string
Результат PSADServicePrincipal

RemoveSpCredentialByKeyId() публичный Метод

public RemoveSpCredentialByKeyId ( string spObjectId, System.Guid keyId ) : void
spObjectId string
keyId System.Guid
Результат void

RemoveUser() публичный Метод

public RemoveUser ( string upnOrObjectId ) : void
upnOrObjectId string
Результат void

UpdateApplication() публичный Метод

public UpdateApplication ( string appObjectId, ApplicationUpdateParameters parameters ) : void
appObjectId string
parameters ApplicationUpdateParameters
Результат void

UpdateUser() публичный Метод

public UpdateUser ( string upnOrObjectId, UserUpdateParameters userUpdateParam ) : PSADUser
upnOrObjectId string
userUpdateParam UserUpdateParameters
Результат PSADUser