azure-native.apimanagement.User
Explore with Pulumi AI
User details. API Version: 2020-12-01.
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
email: Optional[str] = None,
first_name: Optional[str] = None,
last_name: Optional[str] = None,
service_name: Optional[str] = None,
confirmation: Optional[Union[str, Confirmation]] = None,
identities: Optional[Sequence[UserIdentityContractArgs]] = None,
note: Optional[str] = None,
notify: Optional[bool] = None,
password: Optional[str] = None,
app_type: Optional[Union[str, AppType]] = None,
state: Optional[Union[str, UserState]] = None,
user_id: Optional[str] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
type: azure-native:apimanagement:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. UserArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. UserArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. UserArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. UserArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. UserArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var userResource = new AzureNative.Apimanagement.User("userResource", new()
{
ResourceGroupName = "string",
Email = "string",
FirstName = "string",
LastName = "string",
ServiceName = "string",
Confirmation = "string",
Identities = new[]
{
{
{ "id", "string" },
{ "provider", "string" },
},
},
Note = "string",
Notify = false,
Password = "string",
AppType = "string",
State = "string",
UserId = "string",
});
example, err := apimanagement.NewUser(ctx, "userResource", &apimanagement.UserArgs{
ResourceGroupName: "string",
Email: "string",
FirstName: "string",
LastName: "string",
ServiceName: "string",
Confirmation: "string",
Identities: []map[string]interface{}{
map[string]interface{}{
"id": "string",
"provider": "string",
},
},
Note: "string",
Notify: false,
Password: "string",
AppType: "string",
State: "string",
UserId: "string",
})
var userResource = new User("userResource", UserArgs.builder()
.resourceGroupName("string")
.email("string")
.firstName("string")
.lastName("string")
.serviceName("string")
.confirmation("string")
.identities(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.note("string")
.notify(false)
.password("string")
.appType("string")
.state("string")
.userId("string")
.build());
user_resource = azure_native.apimanagement.User("userResource",
resource_group_name=string,
email=string,
first_name=string,
last_name=string,
service_name=string,
confirmation=string,
identities=[{
id: string,
provider: string,
}],
note=string,
notify=False,
password=string,
app_type=string,
state=string,
user_id=string)
const userResource = new azure_native.apimanagement.User("userResource", {
resourceGroupName: "string",
email: "string",
firstName: "string",
lastName: "string",
serviceName: "string",
confirmation: "string",
identities: [{
id: "string",
provider: "string",
}],
note: "string",
notify: false,
password: "string",
appType: "string",
state: "string",
userId: "string",
});
type: azure-native:apimanagement:User
properties:
appType: string
confirmation: string
email: string
firstName: string
identities:
- id: string
provider: string
lastName: string
note: string
notify: false
password: string
resourceGroupName: string
serviceName: string
state: string
userId: string
User Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The User resource accepts the following input properties:
- Email
This property is required. string - Email address. Must not be empty and must be unique within the service instance.
- First
Name This property is required. string - First name.
- Last
Name This property is required. string - Last name.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Service
Name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- App
Type string | Pulumi.Azure Native. Api Management. App Type - Determines the type of application which send the create user request. Default is legacy portal.
- Confirmation
string | Pulumi.
Azure Native. Api Management. Confirmation - Determines the type of confirmation e-mail that will be sent to the newly created user.
- Identities
List<Pulumi.
Azure Native. Api Management. Inputs. User Identity Contract> - Collection of user identities.
- Note string
- Optional note about a user set by the administrator.
- Notify bool
- Send an Email notification to the User.
- Password string
- User Password. If no value is provided, a default password is generated.
- State
string | Pulumi.
Azure Native. Api Management. User State - Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.
- User
Id Changes to this property will trigger replacement.
- User identifier. Must be unique in the current API Management service instance.
- Email
This property is required. string - Email address. Must not be empty and must be unique within the service instance.
- First
Name This property is required. string - First name.
- Last
Name This property is required. string - Last name.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Service
Name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- App
Type string | AppType - Determines the type of application which send the create user request. Default is legacy portal.
- Confirmation string | Confirmation
- Determines the type of confirmation e-mail that will be sent to the newly created user.
- Identities
[]User
Identity Contract Args - Collection of user identities.
- Note string
- Optional note about a user set by the administrator.
- Notify bool
- Send an Email notification to the User.
- Password string
- User Password. If no value is provided, a default password is generated.
- State
string | User
State Enum - Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.
- User
Id Changes to this property will trigger replacement.
- User identifier. Must be unique in the current API Management service instance.
- email
This property is required. String - Email address. Must not be empty and must be unique within the service instance.
- first
Name This property is required. String - First name.
- last
Name This property is required. String - Last name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- service
Name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- app
Type String | AppType - Determines the type of application which send the create user request. Default is legacy portal.
- confirmation String | Confirmation
- Determines the type of confirmation e-mail that will be sent to the newly created user.
- identities
List<User
Identity Contract> - Collection of user identities.
- note String
- Optional note about a user set by the administrator.
- notify_ Boolean
- Send an Email notification to the User.
- password String
- User Password. If no value is provided, a default password is generated.
- state
String | User
State - Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.
- user
Id Changes to this property will trigger replacement.
- User identifier. Must be unique in the current API Management service instance.
- email
This property is required. string - Email address. Must not be empty and must be unique within the service instance.
- first
Name This property is required. string - First name.
- last
Name This property is required. string - Last name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- service
Name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- app
Type string | AppType - Determines the type of application which send the create user request. Default is legacy portal.
- confirmation string | Confirmation
- Determines the type of confirmation e-mail that will be sent to the newly created user.
- identities
User
Identity Contract[] - Collection of user identities.
- note string
- Optional note about a user set by the administrator.
- notify boolean
- Send an Email notification to the User.
- password string
- User Password. If no value is provided, a default password is generated.
- state
string | User
State - Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.
- user
Id Changes to this property will trigger replacement.
- User identifier. Must be unique in the current API Management service instance.
- email
This property is required. str - Email address. Must not be empty and must be unique within the service instance.
- first_
name This property is required. str - First name.
- last_
name This property is required. str - Last name.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- service_
name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- app_
type str | AppType - Determines the type of application which send the create user request. Default is legacy portal.
- confirmation str | Confirmation
- Determines the type of confirmation e-mail that will be sent to the newly created user.
- identities
Sequence[User
Identity Contract Args] - Collection of user identities.
- note str
- Optional note about a user set by the administrator.
- notify bool
- Send an Email notification to the User.
- password str
- User Password. If no value is provided, a default password is generated.
- state
str | User
State - Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.
- user_
id Changes to this property will trigger replacement.
- User identifier. Must be unique in the current API Management service instance.
- email
This property is required. String - Email address. Must not be empty and must be unique within the service instance.
- first
Name This property is required. String - First name.
- last
Name This property is required. String - Last name.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- service
Name This property is required. Changes to this property will trigger replacement.
- The name of the API Management service.
- app
Type String | "portal" | "developerPortal" - Determines the type of application which send the create user request. Default is legacy portal.
- confirmation String | "signup" | "invite"
- Determines the type of confirmation e-mail that will be sent to the newly created user.
- identities List<Property Map>
- Collection of user identities.
- note String
- Optional note about a user set by the administrator.
- notify Boolean
- Send an Email notification to the User.
- password String
- User Password. If no value is provided, a default password is generated.
- state String | "active" | "blocked" | "pending" | "deleted"
- Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.
- user
Id Changes to this property will trigger replacement.
- User identifier. Must be unique in the current API Management service instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
- Groups
List<Pulumi.
Azure Native. Api Management. Outputs. Group Contract Properties Response> - Collection of groups user is part of.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Type string
- Resource type for API Management resource.
- Registration
Date string - Date of user registration. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard.
- Groups
[]Group
Contract Properties Response - Collection of groups user is part of.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Type string
- Resource type for API Management resource.
- Registration
Date string - Date of user registration. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard.
- groups
List<Group
Contract Properties Response> - Collection of groups user is part of.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- type String
- Resource type for API Management resource.
- registration
Date String - Date of user registration. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard.
- groups
Group
Contract Properties Response[] - Collection of groups user is part of.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- type string
- Resource type for API Management resource.
- registration
Date string - Date of user registration. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard.
- groups
Sequence[Group
Contract Properties Response] - Collection of groups user is part of.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- type str
- Resource type for API Management resource.
- registration_
date str - Date of user registration. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard.
- groups List<Property Map>
- Collection of groups user is part of.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- type String
- Resource type for API Management resource.
- registration
Date String - Date of user registration. The date conforms to the following format:
yyyy-MM-ddTHH:mm:ssZ
as specified by the ISO 8601 standard.
Supporting Types
AppType, AppTypeArgs
- Portal
- portalUser create request was sent by legacy developer portal.
- Developer
Portal - developerPortalUser create request was sent by new developer portal.
- App
Type Portal - portalUser create request was sent by legacy developer portal.
- App
Type Developer Portal - developerPortalUser create request was sent by new developer portal.
- Portal
- portalUser create request was sent by legacy developer portal.
- Developer
Portal - developerPortalUser create request was sent by new developer portal.
- Portal
- portalUser create request was sent by legacy developer portal.
- Developer
Portal - developerPortalUser create request was sent by new developer portal.
- PORTAL
- portalUser create request was sent by legacy developer portal.
- DEVELOPER_PORTAL
- developerPortalUser create request was sent by new developer portal.
- "portal"
- portalUser create request was sent by legacy developer portal.
- "developer
Portal" - developerPortalUser create request was sent by new developer portal.
Confirmation, ConfirmationArgs
- Signup
- signupSend an e-mail to the user confirming they have successfully signed up.
- Invite
- inviteSend an e-mail inviting the user to sign-up and complete registration.
- Confirmation
Signup - signupSend an e-mail to the user confirming they have successfully signed up.
- Confirmation
Invite - inviteSend an e-mail inviting the user to sign-up and complete registration.
- Signup
- signupSend an e-mail to the user confirming they have successfully signed up.
- Invite
- inviteSend an e-mail inviting the user to sign-up and complete registration.
- Signup
- signupSend an e-mail to the user confirming they have successfully signed up.
- Invite
- inviteSend an e-mail inviting the user to sign-up and complete registration.
- SIGNUP
- signupSend an e-mail to the user confirming they have successfully signed up.
- INVITE
- inviteSend an e-mail inviting the user to sign-up and complete registration.
- "signup"
- signupSend an e-mail to the user confirming they have successfully signed up.
- "invite"
- inviteSend an e-mail inviting the user to sign-up and complete registration.
GroupContractPropertiesResponse, GroupContractPropertiesResponseArgs
- Built
In This property is required. bool - true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false.
- Display
Name This property is required. string - Group name.
- Description string
- Group description. Can contain HTML formatting tags.
- External
Id string - For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory
aad://<tenant>.onmicrosoft.com/groups/<group object id>
; otherwise the value is null. - Type string
- Group type.
- Built
In This property is required. bool - true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false.
- Display
Name This property is required. string - Group name.
- Description string
- Group description. Can contain HTML formatting tags.
- External
Id string - For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory
aad://<tenant>.onmicrosoft.com/groups/<group object id>
; otherwise the value is null. - Type string
- Group type.
- built
In This property is required. Boolean - true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false.
- display
Name This property is required. String - Group name.
- description String
- Group description. Can contain HTML formatting tags.
- external
Id String - For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory
aad://<tenant>.onmicrosoft.com/groups/<group object id>
; otherwise the value is null. - type String
- Group type.
- built
In This property is required. boolean - true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false.
- display
Name This property is required. string - Group name.
- description string
- Group description. Can contain HTML formatting tags.
- external
Id string - For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory
aad://<tenant>.onmicrosoft.com/groups/<group object id>
; otherwise the value is null. - type string
- Group type.
- built_
in This property is required. bool - true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false.
- display_
name This property is required. str - Group name.
- description str
- Group description. Can contain HTML formatting tags.
- external_
id str - For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory
aad://<tenant>.onmicrosoft.com/groups/<group object id>
; otherwise the value is null. - type str
- Group type.
- built
In This property is required. Boolean - true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false.
- display
Name This property is required. String - Group name.
- description String
- Group description. Can contain HTML formatting tags.
- external
Id String - For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory
aad://<tenant>.onmicrosoft.com/groups/<group object id>
; otherwise the value is null. - type String
- Group type.
UserIdentityContract, UserIdentityContractArgs
UserIdentityContractResponse, UserIdentityContractResponseArgs
UserState, UserStateArgs
- Active
- activeUser state is active.
- Blocked
- blockedUser is blocked. Blocked users cannot authenticate at developer portal or call API.
- Pending
- pendingUser account is pending. Requires identity confirmation before it can be made active.
- Deleted
- deletedUser account is closed. All identities and related entities are removed.
- User
State Active - activeUser state is active.
- User
State Blocked - blockedUser is blocked. Blocked users cannot authenticate at developer portal or call API.
- User
State Pending - pendingUser account is pending. Requires identity confirmation before it can be made active.
- User
State Deleted - deletedUser account is closed. All identities and related entities are removed.
- Active
- activeUser state is active.
- Blocked
- blockedUser is blocked. Blocked users cannot authenticate at developer portal or call API.
- Pending
- pendingUser account is pending. Requires identity confirmation before it can be made active.
- Deleted
- deletedUser account is closed. All identities and related entities are removed.
- Active
- activeUser state is active.
- Blocked
- blockedUser is blocked. Blocked users cannot authenticate at developer portal or call API.
- Pending
- pendingUser account is pending. Requires identity confirmation before it can be made active.
- Deleted
- deletedUser account is closed. All identities and related entities are removed.
- ACTIVE
- activeUser state is active.
- BLOCKED
- blockedUser is blocked. Blocked users cannot authenticate at developer portal or call API.
- PENDING
- pendingUser account is pending. Requires identity confirmation before it can be made active.
- DELETED
- deletedUser account is closed. All identities and related entities are removed.
- "active"
- activeUser state is active.
- "blocked"
- blockedUser is blocked. Blocked users cannot authenticate at developer portal or call API.
- "pending"
- pendingUser account is pending. Requires identity confirmation before it can be made active.
- "deleted"
- deletedUser account is closed. All identities and related entities are removed.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:User 5931a75ae4bbd512288c680b /subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/5931a75ae4bbd512288c680b
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0