Lists the MFA devices. If the request includes the user name, then this action lists all the MFA devices associated with the specified user name. If you do not specify a user name, IAM determines the user name implicitly based on the AWS Access Key ID signing the request.
You can paginate the results using the MaxItems
and Marker
parameters.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Lists multi-factor authentication devices for a user.
Learn more about multi-factor authentication at aws.amazon.com/mfa.
// Instantiate the class $iam = new AmazonIAM(); $response = $iam->list_mfa_devices('johndoe2'); // Success? var_dump($response->isOK());Result:
bool(true)
Changelog
Version |
Description |
---|---|
1.4.3 |
The |
Related Methods
Source
Method defined in services/iam.class.php | Toggle source view (6 lines) | View on GitHub