1. Packages
  2. Packages
  3. Bytepluscc Provider
  4. API Docs
  5. id
  6. getOauth2CredentialProvider
Viewing docs for bytepluscc v0.0.42
published on Monday, Jul 20, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.42
published on Monday, Jul 20, 2026 by Byteplus

    Data Source schema for Byteplus::ID::Oauth2CredentialProvider

    Using getOauth2CredentialProvider

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getOauth2CredentialProvider(args: GetOauth2CredentialProviderArgs, opts?: InvokeOptions): Promise<GetOauth2CredentialProviderResult>
    function getOauth2CredentialProviderOutput(args: GetOauth2CredentialProviderOutputArgs, opts?: InvokeOptions): Output<GetOauth2CredentialProviderResult>
    def get_oauth2_credential_provider(id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetOauth2CredentialProviderResult
    def get_oauth2_credential_provider_output(id: pulumi.Input[Optional[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetOauth2CredentialProviderResult]
    func LookupOauth2CredentialProvider(ctx *Context, args *LookupOauth2CredentialProviderArgs, opts ...InvokeOption) (*LookupOauth2CredentialProviderResult, error)
    func LookupOauth2CredentialProviderOutput(ctx *Context, args *LookupOauth2CredentialProviderOutputArgs, opts ...InvokeOption) LookupOauth2CredentialProviderResultOutput

    > Note: This function is named LookupOauth2CredentialProvider in the Go SDK.

    public static class GetOauth2CredentialProvider 
    {
        public static Task<GetOauth2CredentialProviderResult> InvokeAsync(GetOauth2CredentialProviderArgs args, InvokeOptions? opts = null)
        public static Output<GetOauth2CredentialProviderResult> Invoke(GetOauth2CredentialProviderInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOauth2CredentialProviderResult> getOauth2CredentialProvider(GetOauth2CredentialProviderArgs args, InvokeOptions options)
    public static Output<GetOauth2CredentialProviderResult> getOauth2CredentialProvider(GetOauth2CredentialProviderArgs args, InvokeOptions options)
    
    fn::invoke:
      function: bytepluscc:id/getOauth2CredentialProvider:getOauth2CredentialProvider
      arguments:
        # arguments dictionary
    data "bytepluscc_id_get_oauth2_credential_provider" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Uniquely identifies the resource.
    Id string
    Uniquely identifies the resource.
    id string
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.
    id string
    Uniquely identifies the resource.
    id str
    Uniquely identifies the resource.
    id String
    Uniquely identifies the resource.

    getOauth2CredentialProvider Result

    The following output properties are available:

    Config Byteplus.GetOauth2CredentialProviderConfig
    OAuth2 configuration
    CreatedAt string
    Creation time
    CredentialProviderTrn string
    Credential provider TRN
    Id string
    Uniquely identifies the resource.
    Name string
    Name
    PoolName string
    Workload pool name
    ProjectName string
    Project name
    SecretTrn string
    Secret TRN corresponding to credential ciphertext
    UpdatedAt string
    Update time
    Vendor int
    OAuth2 provider type. 0: Custom, 1: Google, 2: Github, 3: Coze, 4: Feishu, 5: WeChat, 6: User pool
    Config GetOauth2CredentialProviderConfig
    OAuth2 configuration
    CreatedAt string
    Creation time
    CredentialProviderTrn string
    Credential provider TRN
    Id string
    Uniquely identifies the resource.
    Name string
    Name
    PoolName string
    Workload pool name
    ProjectName string
    Project name
    SecretTrn string
    Secret TRN corresponding to credential ciphertext
    UpdatedAt string
    Update time
    Vendor int
    OAuth2 provider type. 0: Custom, 1: Google, 2: Github, 3: Coze, 4: Feishu, 5: WeChat, 6: User pool
    config object
    OAuth2 configuration
    created_at string
    Creation time
    credential_provider_trn string
    Credential provider TRN
    id string
    Uniquely identifies the resource.
    name string
    Name
    pool_name string
    Workload pool name
    project_name string
    Project name
    secret_trn string
    Secret TRN corresponding to credential ciphertext
    updated_at string
    Update time
    vendor number
    OAuth2 provider type. 0: Custom, 1: Google, 2: Github, 3: Coze, 4: Feishu, 5: WeChat, 6: User pool
    config GetOauth2CredentialProverConfig
    OAuth2 configuration
    createdAt String
    Creation time
    credentialProviderTrn String
    Credential provider TRN
    id String
    Uniquely identifies the resource.
    name String
    Name
    poolName String
    Workload pool name
    projectName String
    Project name
    secretTrn String
    Secret TRN corresponding to credential ciphertext
    updatedAt String
    Update time
    vendor Integer
    OAuth2 provider type. 0: Custom, 1: Google, 2: Github, 3: Coze, 4: Feishu, 5: WeChat, 6: User pool
    config GetOauth2CredentialProviderConfig
    OAuth2 configuration
    createdAt string
    Creation time
    credentialProviderTrn string
    Credential provider TRN
    id string
    Uniquely identifies the resource.
    name string
    Name
    poolName string
    Workload pool name
    projectName string
    Project name
    secretTrn string
    Secret TRN corresponding to credential ciphertext
    updatedAt string
    Update time
    vendor number
    OAuth2 provider type. 0: Custom, 1: Google, 2: Github, 3: Coze, 4: Feishu, 5: WeChat, 6: User pool
    config GetOauth2CredentialProviderConfig
    OAuth2 configuration
    created_at str
    Creation time
    credential_provider_trn str
    Credential provider TRN
    id str
    Uniquely identifies the resource.
    name str
    Name
    pool_name str
    Workload pool name
    project_name str
    Project name
    secret_trn str
    Secret TRN corresponding to credential ciphertext
    updated_at str
    Update time
    vendor int
    OAuth2 provider type. 0: Custom, 1: Google, 2: Github, 3: Coze, 4: Feishu, 5: WeChat, 6: User pool
    config Property Map
    OAuth2 configuration
    createdAt String
    Creation time
    credentialProviderTrn String
    Credential provider TRN
    id String
    Uniquely identifies the resource.
    name String
    Name
    poolName String
    Workload pool name
    projectName String
    Project name
    secretTrn String
    Secret TRN corresponding to credential ciphertext
    updatedAt String
    Update time
    vendor Number
    OAuth2 provider type. 0: Custom, 1: Google, 2: Github, 3: Coze, 4: Feishu, 5: WeChat, 6: User pool

    Supporting Types

    GetOauth2CredentialProviderConfig

    ClientId string
    OAuth2 Client ID。
    ClientSecret string
    OAuth2 Client Secret。
    CustomParameters Byteplus.GetOauth2CredentialProviderConfigCustomParameters
    Default custom parameters in GetResourceOauth2Token request
    Flow string
    Default Flow in GetResourceOauth2Token request. Optional values: USER_FEDERATION, M2M
    ForceAuthentication bool
    Default ForceAuthentication in GetResourceOauth2Token request
    MaxExpires int
    Maximum token validity (seconds)
    Metadata string
    Custom metadata
    Oauth2Discovery Byteplus.GetOauth2CredentialProviderConfigOauth2Discovery
    OAuth2 discovery information
    RedirectUrl string
    Default RedirectUrl in GetResourceOauth2Token request
    Scopes List<string>
    Default Scopes in GetResourceOauth2Token request
    SecretStorage Byteplus.GetOauth2CredentialProviderConfigSecretStorage
    Encrypted storage configuration
    ClientId string
    OAuth2 Client ID。
    ClientSecret string
    OAuth2 Client Secret。
    CustomParameters GetOauth2CredentialProviderConfigCustomParameters
    Default custom parameters in GetResourceOauth2Token request
    Flow string
    Default Flow in GetResourceOauth2Token request. Optional values: USER_FEDERATION, M2M
    ForceAuthentication bool
    Default ForceAuthentication in GetResourceOauth2Token request
    MaxExpires int
    Maximum token validity (seconds)
    Metadata string
    Custom metadata
    Oauth2Discovery GetOauth2CredentialProviderConfigOauth2Discovery
    OAuth2 discovery information
    RedirectUrl string
    Default RedirectUrl in GetResourceOauth2Token request
    Scopes []string
    Default Scopes in GetResourceOauth2Token request
    SecretStorage GetOauth2CredentialProviderConfigSecretStorage
    Encrypted storage configuration
    client_id string
    OAuth2 Client ID。
    client_secret string
    OAuth2 Client Secret。
    custom_parameters object
    Default custom parameters in GetResourceOauth2Token request
    flow string
    Default Flow in GetResourceOauth2Token request. Optional values: USER_FEDERATION, M2M
    force_authentication bool
    Default ForceAuthentication in GetResourceOauth2Token request
    max_expires number
    Maximum token validity (seconds)
    metadata string
    Custom metadata
    oauth2_discovery object
    OAuth2 discovery information
    redirect_url string
    Default RedirectUrl in GetResourceOauth2Token request
    scopes list(string)
    Default Scopes in GetResourceOauth2Token request
    secret_storage object
    Encrypted storage configuration
    clientId String
    OAuth2 Client ID。
    clientSecret String
    OAuth2 Client Secret。
    customParameters GetOauth2CredentialProverConfigCustomParameters
    Default custom parameters in GetResourceOauth2Token request
    flow String
    Default Flow in GetResourceOauth2Token request. Optional values: USER_FEDERATION, M2M
    forceAuthentication Boolean
    Default ForceAuthentication in GetResourceOauth2Token request
    maxExpires Integer
    Maximum token validity (seconds)
    metadata String
    Custom metadata
    oauth2Discovery GetOauth2CredentialProverConfigOauth2Discovery
    OAuth2 discovery information
    redirectUrl String
    Default RedirectUrl in GetResourceOauth2Token request
    scopes List<String>
    Default Scopes in GetResourceOauth2Token request
    secretStorage GetOauth2CredentialProverConfigSecretStorage
    Encrypted storage configuration
    clientId string
    OAuth2 Client ID。
    clientSecret string
    OAuth2 Client Secret。
    customParameters GetOauth2CredentialProviderConfigCustomParameters
    Default custom parameters in GetResourceOauth2Token request
    flow string
    Default Flow in GetResourceOauth2Token request. Optional values: USER_FEDERATION, M2M
    forceAuthentication boolean
    Default ForceAuthentication in GetResourceOauth2Token request
    maxExpires number
    Maximum token validity (seconds)
    metadata string
    Custom metadata
    oauth2Discovery GetOauth2CredentialProviderConfigOauth2Discovery
    OAuth2 discovery information
    redirectUrl string
    Default RedirectUrl in GetResourceOauth2Token request
    scopes string[]
    Default Scopes in GetResourceOauth2Token request
    secretStorage GetOauth2CredentialProviderConfigSecretStorage
    Encrypted storage configuration
    client_id str
    OAuth2 Client ID。
    client_secret str
    OAuth2 Client Secret。
    custom_parameters GetOauth2CredentialProviderConfigCustomParameters
    Default custom parameters in GetResourceOauth2Token request
    flow str
    Default Flow in GetResourceOauth2Token request. Optional values: USER_FEDERATION, M2M
    force_authentication bool
    Default ForceAuthentication in GetResourceOauth2Token request
    max_expires int
    Maximum token validity (seconds)
    metadata str
    Custom metadata
    oauth2_discovery GetOauth2CredentialProviderConfigOauth2Discovery
    OAuth2 discovery information
    redirect_url str
    Default RedirectUrl in GetResourceOauth2Token request
    scopes Sequence[str]
    Default Scopes in GetResourceOauth2Token request
    secret_storage GetOauth2CredentialProviderConfigSecretStorage
    Encrypted storage configuration
    clientId String
    OAuth2 Client ID。
    clientSecret String
    OAuth2 Client Secret。
    customParameters Property Map
    Default custom parameters in GetResourceOauth2Token request
    flow String
    Default Flow in GetResourceOauth2Token request. Optional values: USER_FEDERATION, M2M
    forceAuthentication Boolean
    Default ForceAuthentication in GetResourceOauth2Token request
    maxExpires Number
    Maximum token validity (seconds)
    metadata String
    Custom metadata
    oauth2Discovery Property Map
    OAuth2 discovery information
    redirectUrl String
    Default RedirectUrl in GetResourceOauth2Token request
    scopes List<String>
    Default Scopes in GetResourceOauth2Token request
    secretStorage Property Map
    Encrypted storage configuration

    GetOauth2CredentialProviderConfigCustomParameters

    entries list(object)
    Custom parameter entry list
    entries List<Property Map>
    Custom parameter entry list

    GetOauth2CredentialProviderConfigCustomParametersEntry

    Key string
    Parameter key
    Value string
    Parameter value
    Key string
    Parameter key
    Value string
    Parameter value
    key string
    Parameter key
    value string
    Parameter value
    key String
    Parameter key
    value String
    Parameter value
    key string
    Parameter key
    value string
    Parameter value
    key str
    Parameter key
    value str
    Parameter value
    key String
    Parameter key
    value String
    Parameter value

    GetOauth2CredentialProviderConfigOauth2Discovery

    authorization_server_metadata object
    Authorization server metadata
    discovery_url string
    DiscoveryUrl field
    authorizationServerMetadata Property Map
    Authorization server metadata
    discoveryUrl String
    DiscoveryUrl field

    GetOauth2CredentialProviderConfigOauth2DiscoveryAuthorizationServerMetadata

    AuthorizationEndpoint string
    AuthorizationEndpoint field
    CodeChallengeMethodsSupporteds List<string>
    CodeChallengeMethodsSupported field
    Issuer string
    Issuer field
    RegistrationEndpoint string
    RegistrationEndpoint field
    ResponseTypes List<string>
    ResponseTypes field
    RevocationEndpoint string
    RevocationEndpoint field
    TokenEndpoint string
    TokenEndpoint field
    AuthorizationEndpoint string
    AuthorizationEndpoint field
    CodeChallengeMethodsSupporteds []string
    CodeChallengeMethodsSupported field
    Issuer string
    Issuer field
    RegistrationEndpoint string
    RegistrationEndpoint field
    ResponseTypes []string
    ResponseTypes field
    RevocationEndpoint string
    RevocationEndpoint field
    TokenEndpoint string
    TokenEndpoint field
    authorization_endpoint string
    AuthorizationEndpoint field
    code_challenge_methods_supporteds list(string)
    CodeChallengeMethodsSupported field
    issuer string
    Issuer field
    registration_endpoint string
    RegistrationEndpoint field
    response_types list(string)
    ResponseTypes field
    revocation_endpoint string
    RevocationEndpoint field
    token_endpoint string
    TokenEndpoint field
    authorizationEndpoint String
    AuthorizationEndpoint field
    codeChallengeMethodsSupporteds List<String>
    CodeChallengeMethodsSupported field
    issuer String
    Issuer field
    registrationEndpoint String
    RegistrationEndpoint field
    responseTypes List<String>
    ResponseTypes field
    revocationEndpoint String
    RevocationEndpoint field
    tokenEndpoint String
    TokenEndpoint field
    authorizationEndpoint string
    AuthorizationEndpoint field
    codeChallengeMethodsSupporteds string[]
    CodeChallengeMethodsSupported field
    issuer string
    Issuer field
    registrationEndpoint string
    RegistrationEndpoint field
    responseTypes string[]
    ResponseTypes field
    revocationEndpoint string
    RevocationEndpoint field
    tokenEndpoint string
    TokenEndpoint field
    authorization_endpoint str
    AuthorizationEndpoint field
    code_challenge_methods_supporteds Sequence[str]
    CodeChallengeMethodsSupported field
    issuer str
    Issuer field
    registration_endpoint str
    RegistrationEndpoint field
    response_types Sequence[str]
    ResponseTypes field
    revocation_endpoint str
    RevocationEndpoint field
    token_endpoint str
    TokenEndpoint field
    authorizationEndpoint String
    AuthorizationEndpoint field
    codeChallengeMethodsSupporteds List<String>
    CodeChallengeMethodsSupported field
    issuer String
    Issuer field
    registrationEndpoint String
    RegistrationEndpoint field
    responseTypes List<String>
    ResponseTypes field
    revocationEndpoint String
    RevocationEndpoint field
    tokenEndpoint String
    TokenEndpoint field

    GetOauth2CredentialProviderConfigSecretStorage

    EncryptionKey string
    KMS key TRN for encrypted credential value. If not specified, the default key is used
    StorageType int
    Encrypted storage type. 0: SecretManager, 1: KMS
    EncryptionKey string
    KMS key TRN for encrypted credential value. If not specified, the default key is used
    StorageType int
    Encrypted storage type. 0: SecretManager, 1: KMS
    encryption_key string
    KMS key TRN for encrypted credential value. If not specified, the default key is used
    storage_type number
    Encrypted storage type. 0: SecretManager, 1: KMS
    encryptionKey String
    KMS key TRN for encrypted credential value. If not specified, the default key is used
    storageType Integer
    Encrypted storage type. 0: SecretManager, 1: KMS
    encryptionKey string
    KMS key TRN for encrypted credential value. If not specified, the default key is used
    storageType number
    Encrypted storage type. 0: SecretManager, 1: KMS
    encryption_key str
    KMS key TRN for encrypted credential value. If not specified, the default key is used
    storage_type int
    Encrypted storage type. 0: SecretManager, 1: KMS
    encryptionKey String
    KMS key TRN for encrypted credential value. If not specified, the default key is used
    storageType Number
    Encrypted storage type. 0: SecretManager, 1: KMS

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.42
    published on Monday, Jul 20, 2026 by Byteplus

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial