yandex_iam_oauth_client (Resource)
Статья создана
Обновлена 2 октября 2025 г.
An OauthClient resource.
Example usage
//
// Create a new OAuthClient.
//
resource "yandex_iam_oauth_client" "my-oauth-client" {
name = "my-oauth-client"
folder_id = "aje5a**********qspd3"
redirect_uris = ["https://localhost"]
scopes = ["iam"]
}
Schema
Required
name(String) Name for the oauth client.
Optional
folder_id(String) ID of the folder oauth client belongs to.id(String) ID of the OAuthClient resource to return.
To get the oauth client ID, use a [OAuthClientService.List] request.oauth_client_id(String) ID of the OAuthClient resource to return.
To get the oauth client ID, use a [OAuthClientService.List] request.redirect_uris(List of String) List of redirect uries allowed for the oauth client.scopes(List of String) List of oauth scopes requested by the oauth client.timeouts(Attributes) (see below for nested schema)
Read-Only
status(String) Current status of the oauth client.
Nested Schema for timeouts
Optional:
create(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).delete(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.read(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.update(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
The resource can be imported by using their resource ID. For getting the resource ID you can use Yandex Cloud Web Console
# terraform import yandex_iam_oauth_client.<resource Name> <resource Id>
terraform import yandex_iam_oauth_client.my-oauth-client ...