The boundary_auth_method data source allows you to find a Boundary auth method.
# Retrieve an auth method from the global scope
data "boundary_auth_method" "auth_method" {
name = "password_auth_method"
}
# Auth method from a org scope
data "boundary_scope" "org" {
name = "my-org"
scope_id = "global"
}
data "boundary_auth_method" "auth_method" {
name = "password_auth_method"
scope_id = data.boundary_scope.org.id
}
name
(String) The name of the auth method to retrieve.scope_id
(String) The scope ID in which the resource is created. Defaults global
if unset.description
(String) The description of the retrieved auth method.id
(String) The ID of the retrieved auth method.scope
(List of Object) (see below for nested schema)type
(String) The type of the auth methodscope
Read-Only:
description
(String)id
(String)name
(String)parent_scope_id
(String)type
(String)