All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
Invoke-OktaActivateDevice | POST /api/v1/devices/{deviceId}/lifecycle/activate | Activate a Device |
Invoke-OktaDeactivateDevice | POST /api/v1/devices/{deviceId}/lifecycle/deactivate | Deactivate a Device |
Invoke-OktaDeleteDevice | DELETE /api/v1/devices/{deviceId} | Delete a Device |
Get-OktaDevice | GET /api/v1/devices/{deviceId} | Retrieve a Device |
Invoke-OktaListDevices | GET /api/v1/devices | List all Devices |
Suspend-OktaDevice | POST /api/v1/devices/{deviceId}/lifecycle/suspend | Suspend a Device |
Invoke-OktaUnsuspendDevice | POST /api/v1/devices/{deviceId}/lifecycle/unsuspend | Unsuspend a Device |
void Invoke-OktaActivateDevice
[-DeviceId]
Activate a Device
Activates a device by deviceId
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$DeviceId = "guo4a5u7JHHhjXrMK0g4" # String | `id` of the device
# Activate a Device
try {
$Result = Invoke-OktaActivateDevice -DeviceId $DeviceId
} catch {
Write-Host ("Exception occurred when calling Invoke-OktaActivateDevice: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
DeviceId | String | `id` of the device |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void Invoke-OktaDeactivateDevice
[-DeviceId]
Deactivate a Device
Deactivates a device by deviceId
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$DeviceId = "guo4a5u7JHHhjXrMK0g4" # String | `id` of the device
# Deactivate a Device
try {
$Result = Invoke-OktaDeactivateDevice -DeviceId $DeviceId
} catch {
Write-Host ("Exception occurred when calling Invoke-OktaDeactivateDevice: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
DeviceId | String | `id` of the device |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void Invoke-OktaDeleteDevice
[-DeviceId]
Delete a Device
Deletes a device by deviceId
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$DeviceId = "guo4a5u7JHHhjXrMK0g4" # String | `id` of the device
# Delete a Device
try {
$Result = Invoke-OktaDeleteDevice -DeviceId $DeviceId
} catch {
Write-Host ("Exception occurred when calling Invoke-OktaDeleteDevice: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
DeviceId | String | `id` of the device |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Device Get-OktaDevice
[-DeviceId]
Retrieve a Device
Retrieve a device by deviceId
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$DeviceId = "guo4a5u7JHHhjXrMK0g4" # String | `id` of the device
# Retrieve a Device
try {
$Result = Get-OktaDevice -DeviceId $DeviceId
} catch {
Write-Host ("Exception occurred when calling Get-OktaDevice: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
DeviceId | String | `id` of the device |
Device (PSCustomObject)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Device[] Invoke-OktaListDevices
[-After]
[-Limit] <System.Nullable[Int32]>
[-Search]
List all Devices
Lists all devices with pagination support. A subset of Devices can be returned that match a supported search criteria using the search
query parameter. Searches for devices based on the properties specified in the search
parameter conforming SCIM filter specifications (case-insensitive). This data is eventually consistent. The API returns different results depending on specified queries in the request. Empty list is returned if no objects match search
request. > Note: Listing devices with search
should not be used as a part of any critical flows—such as authentication or updates—to prevent potential data loss. search
results may not reflect the latest information, as this endpoint uses a search index which may not be up-to-date with recent updates to the object.
Don't use search results directly for record updates, as the data might be stale and therefore overwrite newer data, resulting in data loss.
Use an id
lookup for records that you update to ensure your results contain the latest data. This operation equires URL encoding. For example, search=profile.displayName eq ""Bob""
is encoded as search=profile.displayName%20eq%20%22Bob%22
.
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$After = "MyAfter" # String | The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)
$Limit = 56 # Int32 | A limit on the number of objects to return. (optional) (default to 20)
$Search = "status eq "ACTIVE"" # String | SCIM filter expression that filters the results. Searches include all Device `profile` properties, as well as the Device `id`, `status` and `lastUpdated` properties. (optional)
# List all Devices
try {
$Result = Invoke-OktaListDevices -After $After -Limit $Limit -Search $Search
} catch {
Write-Host ("Exception occurred when calling Invoke-OktaListDevices: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
After | String | The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See Pagination for more information. | [optional] |
Limit | Int32 | A limit on the number of objects to return. | [optional] [default to 20] |
Search | String | SCIM filter expression that filters the results. Searches include all Device `profile` properties, as well as the Device `id`, `status` and `lastUpdated` properties. | [optional] |
Device[] (PSCustomObject)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void Suspend-OktaDevice
[-DeviceId]
Suspend a Device
Suspends a device by deviceId
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$DeviceId = "guo4a5u7JHHhjXrMK0g4" # String | `id` of the device
# Suspend a Device
try {
$Result = Suspend-OktaDevice -DeviceId $DeviceId
} catch {
Write-Host ("Exception occurred when calling Suspend-OktaDevice: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
DeviceId | String | `id` of the device |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void Invoke-OktaUnsuspendDevice
[-DeviceId]
Unsuspend a Device
Unsuspends a device by deviceId
# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-OktaConfiguration
# Configure your client ID and scope for authorization
$Configuration.ClientId = "YOUR_CLIENT_ID"
$Configuration.Scope = "OKTA_SCOPES" # for example okta.users.read
$DeviceId = "guo4a5u7JHHhjXrMK0g4" # String | `id` of the device
# Unsuspend a Device
try {
$Result = Invoke-OktaUnsuspendDevice -DeviceId $DeviceId
} catch {
Write-Host ("Exception occurred when calling Invoke-OktaUnsuspendDevice: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}
Name | Type | Description | Notes |
---|---|---|---|
DeviceId | String | `id` of the device |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]