共用方式為


ServicePrincipal Constructors

Definition

Overloads

ServicePrincipal()

Initializes a new instance of the ServicePrincipal class.

ServicePrincipal(IDictionary<String,Object>, String, Nullable<DateTime>, String, IList<String>, String, String, String, Nullable<Boolean>, IList<AppRole>, String, String, String, IList<KeyCredential>, String, IList<OAuth2Permission>, IList<PasswordCredential>, String, String, IList<String>, String, IList<String>, String, IList<String>)

Initializes a new instance of the ServicePrincipal class.

ServicePrincipal()

Initializes a new instance of the ServicePrincipal class.

public ServicePrincipal ();
Public Sub New ()

Applies to

ServicePrincipal(IDictionary<String,Object>, String, Nullable<DateTime>, String, IList<String>, String, String, String, Nullable<Boolean>, IList<AppRole>, String, String, String, IList<KeyCredential>, String, IList<OAuth2Permission>, IList<PasswordCredential>, String, String, IList<String>, String, IList<String>, String, IList<String>)

Initializes a new instance of the ServicePrincipal class.

public ServicePrincipal (System.Collections.Generic.IDictionary<string,object> additionalProperties = default, string objectId = default, DateTime? deletionTimestamp = default, string accountEnabled = default, System.Collections.Generic.IList<string> alternativeNames = default, string appDisplayName = default, string appId = default, string appOwnerTenantId = default, bool? appRoleAssignmentRequired = default, System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.AppRole> appRoles = default, string displayName = default, string errorUrl = default, string homepage = default, System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.KeyCredential> keyCredentials = default, string logoutUrl = default, System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.OAuth2Permission> oauth2Permissions = default, System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.PasswordCredential> passwordCredentials = default, string preferredTokenSigningKeyThumbprint = default, string publisherName = default, System.Collections.Generic.IList<string> replyUrls = default, string samlMetadataUrl = default, System.Collections.Generic.IList<string> servicePrincipalNames = default, string servicePrincipalType = default, System.Collections.Generic.IList<string> tags = default);
new Microsoft.Azure.Graph.RBAC.Models.ServicePrincipal : System.Collections.Generic.IDictionary<string, obj> * string * Nullable<DateTime> * string * System.Collections.Generic.IList<string> * string * string * string * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.AppRole> * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.KeyCredential> * string * System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.OAuth2Permission> * System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.PasswordCredential> * string * string * System.Collections.Generic.IList<string> * string * System.Collections.Generic.IList<string> * string * System.Collections.Generic.IList<string> -> Microsoft.Azure.Graph.RBAC.Models.ServicePrincipal
Public Sub New (Optional additionalProperties As IDictionary(Of String, Object) = Nothing, Optional objectId As String = Nothing, Optional deletionTimestamp As Nullable(Of DateTime) = Nothing, Optional accountEnabled As String = Nothing, Optional alternativeNames As IList(Of String) = Nothing, Optional appDisplayName As String = Nothing, Optional appId As String = Nothing, Optional appOwnerTenantId As String = Nothing, Optional appRoleAssignmentRequired As Nullable(Of Boolean) = Nothing, Optional appRoles As IList(Of AppRole) = Nothing, Optional displayName As String = Nothing, Optional errorUrl As String = Nothing, Optional homepage As String = Nothing, Optional keyCredentials As IList(Of KeyCredential) = Nothing, Optional logoutUrl As String = Nothing, Optional oauth2Permissions As IList(Of OAuth2Permission) = Nothing, Optional passwordCredentials As IList(Of PasswordCredential) = Nothing, Optional preferredTokenSigningKeyThumbprint As String = Nothing, Optional publisherName As String = Nothing, Optional replyUrls As IList(Of String) = Nothing, Optional samlMetadataUrl As String = Nothing, Optional servicePrincipalNames As IList(Of String) = Nothing, Optional servicePrincipalType As String = Nothing, Optional tags As IList(Of String) = Nothing)

Parameters

additionalProperties
IDictionary<String,Object>

Unmatched properties from the message are deserialized this collection

objectId
String

The object ID.

deletionTimestamp
Nullable<DateTime>

The time at which the directory object was deleted.

accountEnabled
String

whether or not the service principal account is enabled

alternativeNames
IList<String>

alternative names

appDisplayName
String

The display name exposed by the associated application.

appId
String

The application ID.

appOwnerTenantId
String
appRoleAssignmentRequired
Nullable<Boolean>

Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application.

appRoles
IList<AppRole>

The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals.

displayName
String

The display name of the service principal.

errorUrl
String

A URL provided by the author of the associated application to report errors when using the application.

homepage
String

The URL to the homepage of the associated application.

keyCredentials
IList<KeyCredential>

The collection of key credentials associated with the service principal.

logoutUrl
String

A URL provided by the author of the associated application to logout

oauth2Permissions
IList<OAuth2Permission>

The OAuth 2.0 permissions exposed by the associated application.

passwordCredentials
IList<PasswordCredential>

The collection of password credentials associated with the service principal.

preferredTokenSigningKeyThumbprint
String

The thumbprint of preferred certificate to sign the token

publisherName
String

The publisher's name of the associated application

replyUrls
IList<String>

The URLs that user tokens are sent to for sign in with the associated application. The redirect URIs that the oAuth 2.0 authorization code and access tokens are sent to for the associated application.

samlMetadataUrl
String

The URL to the SAML metadata of the associated application

servicePrincipalNames
IList<String>

A collection of service principal names.

servicePrincipalType
String

the type of the service principal

tags
IList<String>

Optional list of tags that you can apply to your service principals. Not nullable.

Applies to