1. Registry
  2. Packages
  3. Akeyless Provider
  4. API Docs
  5. McpSecretOauthAuthorizationCode
Viewing docs for akeyless 2.1.0
published on Thursday, Nov 19, 2026 by akeyless-community
akeyless
Viewing docs for akeyless 2.1.0
published on Thursday, Nov 19, 2026 by akeyless-community

    MCP secret using OAuth 2.0 Authorization Code authentication

    Create McpSecretOauthAuthorizationCode Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new McpSecretOauthAuthorizationCode(name: string, args?: McpSecretOauthAuthorizationCodeArgs, opts?: CustomResourceOptions);
    @overload
    def McpSecretOauthAuthorizationCode(resource_name: str,
                                        args: Optional[McpSecretOauthAuthorizationCodeArgs] = None,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def McpSecretOauthAuthorizationCode(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        accessibility: Optional[str] = None,
                                        ara_enabled: Optional[bool] = None,
                                        delete_protection: Optional[str] = None,
                                        description: Optional[str] = None,
                                        enable_agentic_runtime_authority: Optional[bool] = None,
                                        enable_ai_quorum: Optional[bool] = None,
                                        input_rules: Optional[Sequence[str]] = None,
                                        keep_prev_version: Optional[str] = None,
                                        max_versions: Optional[str] = None,
                                        mcp_secret_oauth_authorization_code_id: Optional[str] = None,
                                        name: Optional[str] = None,
                                        oauth_client_id: Optional[str] = None,
                                        oauth_client_secret: Optional[str] = None,
                                        oauth_redirect_uri: Optional[str] = None,
                                        oauth_refresh_token: Optional[str] = None,
                                        oauth_scopes: Optional[Sequence[str]] = None,
                                        oauth_token_url: Optional[str] = None,
                                        output_rules: Optional[Sequence[str]] = None,
                                        protection_key: Optional[str] = None,
                                        retry: Optional[McpSecretOauthAuthorizationCodeRetryArgs] = None,
                                        tags: Optional[Sequence[str]] = None,
                                        url: Optional[str] = None)
    func NewMcpSecretOauthAuthorizationCode(ctx *Context, name string, args *McpSecretOauthAuthorizationCodeArgs, opts ...ResourceOption) (*McpSecretOauthAuthorizationCode, error)
    public McpSecretOauthAuthorizationCode(string name, McpSecretOauthAuthorizationCodeArgs? args = null, CustomResourceOptions? opts = null)
    public McpSecretOauthAuthorizationCode(String name, McpSecretOauthAuthorizationCodeArgs args)
    public McpSecretOauthAuthorizationCode(String name, McpSecretOauthAuthorizationCodeArgs args, CustomResourceOptions options)
    
    type: akeyless:McpSecretOauthAuthorizationCode
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "akeyless_mcp_secret_oauth_authorization_code" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args McpSecretOauthAuthorizationCodeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args McpSecretOauthAuthorizationCodeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args McpSecretOauthAuthorizationCodeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args McpSecretOauthAuthorizationCodeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args McpSecretOauthAuthorizationCodeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var mcpSecretOauthAuthorizationCodeResource = new Akeyless.McpSecretOauthAuthorizationCode("mcpSecretOauthAuthorizationCodeResource", new()
    {
        Accessibility = "string",
        AraEnabled = false,
        DeleteProtection = "string",
        Description = "string",
        EnableAgenticRuntimeAuthority = false,
        EnableAiQuorum = false,
        InputRules = new[]
        {
            "string",
        },
        KeepPrevVersion = "string",
        MaxVersions = "string",
        McpSecretOauthAuthorizationCodeId = "string",
        Name = "string",
        OauthClientId = "string",
        OauthClientSecret = "string",
        OauthRedirectUri = "string",
        OauthRefreshToken = "string",
        OauthScopes = new[]
        {
            "string",
        },
        OauthTokenUrl = "string",
        OutputRules = new[]
        {
            "string",
        },
        ProtectionKey = "string",
        Retry = new Akeyless.Inputs.McpSecretOauthAuthorizationCodeRetryArgs
        {
            ErrorMessageRegexes = new[]
            {
                "string",
            },
            IntervalSeconds = 0.0,
            MaxIntervalSeconds = 0.0,
            MaxRetries = 0.0,
            RetryOnStatusCodes = new[]
            {
                0.0,
            },
        },
        Tags = new[]
        {
            "string",
        },
        Url = "string",
    });
    
    example, err := akeyless.NewMcpSecretOauthAuthorizationCode(ctx, "mcpSecretOauthAuthorizationCodeResource", &akeyless.McpSecretOauthAuthorizationCodeArgs{
    	Accessibility:                 pulumi.String("string"),
    	AraEnabled:                    pulumi.Bool(false),
    	DeleteProtection:              pulumi.String("string"),
    	Description:                   pulumi.String("string"),
    	EnableAgenticRuntimeAuthority: pulumi.Bool(false),
    	EnableAiQuorum:                pulumi.Bool(false),
    	InputRules: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	KeepPrevVersion:                   pulumi.String("string"),
    	MaxVersions:                       pulumi.String("string"),
    	McpSecretOauthAuthorizationCodeId: pulumi.String("string"),
    	Name:                              pulumi.String("string"),
    	OauthClientId:                     pulumi.String("string"),
    	OauthClientSecret:                 pulumi.String("string"),
    	OauthRedirectUri:                  pulumi.String("string"),
    	OauthRefreshToken:                 pulumi.String("string"),
    	OauthScopes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	OauthTokenUrl: pulumi.String("string"),
    	OutputRules: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ProtectionKey: pulumi.String("string"),
    	Retry: &akeyless.McpSecretOauthAuthorizationCodeRetryArgs{
    		ErrorMessageRegexes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		IntervalSeconds:    pulumi.Float64(0),
    		MaxIntervalSeconds: pulumi.Float64(0),
    		MaxRetries:         pulumi.Float64(0),
    		RetryOnStatusCodes: pulumi.Float64Array{
    			pulumi.Float64(0),
    		},
    	},
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Url: pulumi.String("string"),
    })
    
    resource "akeyless_mcp_secret_oauth_authorization_code" "mcpSecretOauthAuthorizationCodeResource" {
      lifecycle {
        create_before_destroy = true
      }
      accessibility                          = "string"
      ara_enabled                            = false
      delete_protection                      = "string"
      description                            = "string"
      enable_agentic_runtime_authority       = false
      enable_ai_quorum                       = false
      input_rules                            = ["string"]
      keep_prev_version                      = "string"
      max_versions                           = "string"
      mcp_secret_oauth_authorization_code_id = "string"
      name                                   = "string"
      oauth_client_id                        = "string"
      oauth_client_secret                    = "string"
      oauth_redirect_uri                     = "string"
      oauth_refresh_token                    = "string"
      oauth_scopes                           = ["string"]
      oauth_token_url                        = "string"
      output_rules                           = ["string"]
      protection_key                         = "string"
      retry = {
        error_message_regexes = ["string"]
        interval_seconds      = 0
        max_interval_seconds  = 0
        max_retries           = 0
        retry_on_status_codes = [0]
      }
      tags = ["string"]
      url  = "string"
    }
    
    var mcpSecretOauthAuthorizationCodeResource = new McpSecretOauthAuthorizationCode("mcpSecretOauthAuthorizationCodeResource", McpSecretOauthAuthorizationCodeArgs.builder()
        .accessibility("string")
        .araEnabled(false)
        .deleteProtection("string")
        .description("string")
        .enableAgenticRuntimeAuthority(false)
        .enableAiQuorum(false)
        .inputRules("string")
        .keepPrevVersion("string")
        .maxVersions("string")
        .mcpSecretOauthAuthorizationCodeId("string")
        .name("string")
        .oauthClientId("string")
        .oauthClientSecret("string")
        .oauthRedirectUri("string")
        .oauthRefreshToken("string")
        .oauthScopes("string")
        .oauthTokenUrl("string")
        .outputRules("string")
        .protectionKey("string")
        .retry(McpSecretOauthAuthorizationCodeRetryArgs.builder()
            .errorMessageRegexes("string")
            .intervalSeconds(0.0)
            .maxIntervalSeconds(0.0)
            .maxRetries(0.0)
            .retryOnStatusCodes(0.0)
            .build())
        .tags("string")
        .url("string")
        .build());
    
    mcp_secret_oauth_authorization_code_resource = akeyless.McpSecretOauthAuthorizationCode("mcpSecretOauthAuthorizationCodeResource",
        accessibility="string",
        ara_enabled=False,
        delete_protection="string",
        description="string",
        enable_agentic_runtime_authority=False,
        enable_ai_quorum=False,
        input_rules=["string"],
        keep_prev_version="string",
        max_versions="string",
        mcp_secret_oauth_authorization_code_id="string",
        name="string",
        oauth_client_id="string",
        oauth_client_secret="string",
        oauth_redirect_uri="string",
        oauth_refresh_token="string",
        oauth_scopes=["string"],
        oauth_token_url="string",
        output_rules=["string"],
        protection_key="string",
        retry={
            "error_message_regexes": ["string"],
            "interval_seconds": float(0),
            "max_interval_seconds": float(0),
            "max_retries": float(0),
            "retry_on_status_codes": [float(0)],
        },
        tags=["string"],
        url="string")
    
    const mcpSecretOauthAuthorizationCodeResource = new akeyless.McpSecretOauthAuthorizationCode("mcpSecretOauthAuthorizationCodeResource", {
        accessibility: "string",
        araEnabled: false,
        deleteProtection: "string",
        description: "string",
        enableAgenticRuntimeAuthority: false,
        enableAiQuorum: false,
        inputRules: ["string"],
        keepPrevVersion: "string",
        maxVersions: "string",
        mcpSecretOauthAuthorizationCodeId: "string",
        name: "string",
        oauthClientId: "string",
        oauthClientSecret: "string",
        oauthRedirectUri: "string",
        oauthRefreshToken: "string",
        oauthScopes: ["string"],
        oauthTokenUrl: "string",
        outputRules: ["string"],
        protectionKey: "string",
        retry: {
            errorMessageRegexes: ["string"],
            intervalSeconds: 0,
            maxIntervalSeconds: 0,
            maxRetries: 0,
            retryOnStatusCodes: [0],
        },
        tags: ["string"],
        url: "string",
    });
    
    type: akeyless:McpSecretOauthAuthorizationCode
    properties:
        accessibility: string
        araEnabled: false
        deleteProtection: string
        description: string
        enableAgenticRuntimeAuthority: false
        enableAiQuorum: false
        inputRules:
            - string
        keepPrevVersion: string
        maxVersions: string
        mcpSecretOauthAuthorizationCodeId: string
        name: string
        oauthClientId: string
        oauthClientSecret: string
        oauthRedirectUri: string
        oauthRefreshToken: string
        oauthScopes:
            - string
        oauthTokenUrl: string
        outputRules:
            - string
        protectionKey: string
        retry:
            errorMessageRegexes:
                - string
            intervalSeconds: 0
            maxIntervalSeconds: 0
            maxRetries: 0
            retryOnStatusCodes:
                - 0
        tags:
            - string
        url: string
    

    McpSecretOauthAuthorizationCode Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The McpSecretOauthAuthorizationCode resource accepts the following input properties:

    Accessibility string
    For personal password manager
    AraEnabled bool
    Enable Agentic Runtime Authority
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    EnableAgenticRuntimeAuthority bool
    Enable Agentic Runtime Authority
    EnableAiQuorum bool
    Enable AI Quorum
    InputRules List<string>
    Agentic input rule in name=...,rule=... format
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    McpSecretOauthAuthorizationCodeId string
    The ID of this resource.
    Name string
    Secret name
    OauthClientId string
    OAuth client ID
    OauthClientSecret string
    OAuth client secret
    OauthRedirectUri string
    OAuth redirect URI
    OauthRefreshToken string
    OAuth refresh token
    OauthScopes List<string>
    OAuth scopes
    OauthTokenUrl string
    OAuth token URL
    OutputRules List<string>
    Agentic output rule in name=...,rule=... format
    ProtectionKey string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    Retry McpSecretOauthAuthorizationCodeRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    Tags List<string>
    List of the tags attached to this secret
    Url string
    URL of the MCP service
    Accessibility string
    For personal password manager
    AraEnabled bool
    Enable Agentic Runtime Authority
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    EnableAgenticRuntimeAuthority bool
    Enable Agentic Runtime Authority
    EnableAiQuorum bool
    Enable AI Quorum
    InputRules []string
    Agentic input rule in name=...,rule=... format
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    McpSecretOauthAuthorizationCodeId string
    The ID of this resource.
    Name string
    Secret name
    OauthClientId string
    OAuth client ID
    OauthClientSecret string
    OAuth client secret
    OauthRedirectUri string
    OAuth redirect URI
    OauthRefreshToken string
    OAuth refresh token
    OauthScopes []string
    OAuth scopes
    OauthTokenUrl string
    OAuth token URL
    OutputRules []string
    Agentic output rule in name=...,rule=... format
    ProtectionKey string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    Retry McpSecretOauthAuthorizationCodeRetryArgs
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    Tags []string
    List of the tags attached to this secret
    Url string
    URL of the MCP service
    accessibility string
    For personal password manager
    ara_enabled bool
    Enable Agentic Runtime Authority
    delete_protection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    enable_agentic_runtime_authority bool
    Enable Agentic Runtime Authority
    enable_ai_quorum bool
    Enable AI Quorum
    input_rules list(string)
    Agentic input rule in name=...,rule=... format
    keep_prev_version string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    max_versions string
    Set the maximum number of versions, limited by the account settings defaults
    mcp_secret_oauth_authorization_code_id string
    The ID of this resource.
    name string
    Secret name
    oauth_client_id string
    OAuth client ID
    oauth_client_secret string
    OAuth client secret
    oauth_redirect_uri string
    OAuth redirect URI
    oauth_refresh_token string
    OAuth refresh token
    oauth_scopes list(string)
    OAuth scopes
    oauth_token_url string
    OAuth token URL
    output_rules list(string)
    Agentic output rule in name=...,rule=... format
    protection_key string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    retry object
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    tags list(string)
    List of the tags attached to this secret
    url string
    URL of the MCP service
    accessibility String
    For personal password manager
    araEnabled Boolean
    Enable Agentic Runtime Authority
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    enableAgenticRuntimeAuthority Boolean
    Enable Agentic Runtime Authority
    enableAiQuorum Boolean
    Enable AI Quorum
    inputRules List<String>
    Agentic input rule in name=...,rule=... format
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults
    mcpSecretOauthAuthorizationCodeId String
    The ID of this resource.
    name String
    Secret name
    oauthClientId String
    OAuth client ID
    oauthClientSecret String
    OAuth client secret
    oauthRedirectUri String
    OAuth redirect URI
    oauthRefreshToken String
    OAuth refresh token
    oauthScopes List<String>
    OAuth scopes
    oauthTokenUrl String
    OAuth token URL
    outputRules List<String>
    Agentic output rule in name=...,rule=... format
    protectionKey String
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    retry McpSecretOauthAuthorizationCodeRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    tags List<String>
    List of the tags attached to this secret
    url String
    URL of the MCP service
    accessibility string
    For personal password manager
    araEnabled boolean
    Enable Agentic Runtime Authority
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    enableAgenticRuntimeAuthority boolean
    Enable Agentic Runtime Authority
    enableAiQuorum boolean
    Enable AI Quorum
    inputRules string[]
    Agentic input rule in name=...,rule=... format
    keepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    maxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    mcpSecretOauthAuthorizationCodeId string
    The ID of this resource.
    name string
    Secret name
    oauthClientId string
    OAuth client ID
    oauthClientSecret string
    OAuth client secret
    oauthRedirectUri string
    OAuth redirect URI
    oauthRefreshToken string
    OAuth refresh token
    oauthScopes string[]
    OAuth scopes
    oauthTokenUrl string
    OAuth token URL
    outputRules string[]
    Agentic output rule in name=...,rule=... format
    protectionKey string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    retry McpSecretOauthAuthorizationCodeRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    tags string[]
    List of the tags attached to this secret
    url string
    URL of the MCP service
    accessibility str
    For personal password manager
    ara_enabled bool
    Enable Agentic Runtime Authority
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    description str
    Description of the object
    enable_agentic_runtime_authority bool
    Enable Agentic Runtime Authority
    enable_ai_quorum bool
    Enable AI Quorum
    input_rules Sequence[str]
    Agentic input rule in name=...,rule=... format
    keep_prev_version str
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    max_versions str
    Set the maximum number of versions, limited by the account settings defaults
    mcp_secret_oauth_authorization_code_id str
    The ID of this resource.
    name str
    Secret name
    oauth_client_id str
    OAuth client ID
    oauth_client_secret str
    OAuth client secret
    oauth_redirect_uri str
    OAuth redirect URI
    oauth_refresh_token str
    OAuth refresh token
    oauth_scopes Sequence[str]
    OAuth scopes
    oauth_token_url str
    OAuth token URL
    output_rules Sequence[str]
    Agentic output rule in name=...,rule=... format
    protection_key str
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    retry McpSecretOauthAuthorizationCodeRetryArgs
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    tags Sequence[str]
    List of the tags attached to this secret
    url str
    URL of the MCP service
    accessibility String
    For personal password manager
    araEnabled Boolean
    Enable Agentic Runtime Authority
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    enableAgenticRuntimeAuthority Boolean
    Enable Agentic Runtime Authority
    enableAiQuorum Boolean
    Enable AI Quorum
    inputRules List<String>
    Agentic input rule in name=...,rule=... format
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults
    mcpSecretOauthAuthorizationCodeId String
    The ID of this resource.
    name String
    Secret name
    oauthClientId String
    OAuth client ID
    oauthClientSecret String
    OAuth client secret
    oauthRedirectUri String
    OAuth redirect URI
    oauthRefreshToken String
    OAuth refresh token
    oauthScopes List<String>
    OAuth scopes
    oauthTokenUrl String
    OAuth token URL
    outputRules List<String>
    Agentic output rule in name=...,rule=... format
    protectionKey String
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    retry Property Map
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    tags List<String>
    List of the tags attached to this secret
    url String
    URL of the MCP service

    Outputs

    All input properties are implicitly available as output properties. Additionally, the McpSecretOauthAuthorizationCode resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing McpSecretOauthAuthorizationCode Resource

    Get an existing McpSecretOauthAuthorizationCode resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: McpSecretOauthAuthorizationCodeState, opts?: CustomResourceOptions): McpSecretOauthAuthorizationCode
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accessibility: Optional[str] = None,
            ara_enabled: Optional[bool] = None,
            delete_protection: Optional[str] = None,
            description: Optional[str] = None,
            enable_agentic_runtime_authority: Optional[bool] = None,
            enable_ai_quorum: Optional[bool] = None,
            input_rules: Optional[Sequence[str]] = None,
            keep_prev_version: Optional[str] = None,
            max_versions: Optional[str] = None,
            mcp_secret_oauth_authorization_code_id: Optional[str] = None,
            name: Optional[str] = None,
            oauth_client_id: Optional[str] = None,
            oauth_client_secret: Optional[str] = None,
            oauth_redirect_uri: Optional[str] = None,
            oauth_refresh_token: Optional[str] = None,
            oauth_scopes: Optional[Sequence[str]] = None,
            oauth_token_url: Optional[str] = None,
            output_rules: Optional[Sequence[str]] = None,
            protection_key: Optional[str] = None,
            retry: Optional[McpSecretOauthAuthorizationCodeRetryArgs] = None,
            tags: Optional[Sequence[str]] = None,
            url: Optional[str] = None) -> McpSecretOauthAuthorizationCode
    func GetMcpSecretOauthAuthorizationCode(ctx *Context, name string, id IDInput, state *McpSecretOauthAuthorizationCodeState, opts ...ResourceOption) (*McpSecretOauthAuthorizationCode, error)
    public static McpSecretOauthAuthorizationCode Get(string name, Input<string> id, McpSecretOauthAuthorizationCodeState? state, CustomResourceOptions? opts = null)
    public static McpSecretOauthAuthorizationCode get(String name, Output<String> id, McpSecretOauthAuthorizationCodeState state, CustomResourceOptions options)
    resources:  existingMcpSecretOauthAuthorizationCode:    type: akeyless:McpSecretOauthAuthorizationCode    get:      id: ${id}
    import {
      to = akeyless_mcp_secret_oauth_authorization_code.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state McpSecretOauthAuthorizationCodeState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state McpSecretOauthAuthorizationCodeState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state McpSecretOauthAuthorizationCodeState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state McpSecretOauthAuthorizationCodeState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    Accessibility string
    For personal password manager
    AraEnabled bool
    Enable Agentic Runtime Authority
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    EnableAgenticRuntimeAuthority bool
    Enable Agentic Runtime Authority
    EnableAiQuorum bool
    Enable AI Quorum
    InputRules List<string>
    Agentic input rule in name=...,rule=... format
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    McpSecretOauthAuthorizationCodeId string
    The ID of this resource.
    Name string
    Secret name
    OauthClientId string
    OAuth client ID
    OauthClientSecret string
    OAuth client secret
    OauthRedirectUri string
    OAuth redirect URI
    OauthRefreshToken string
    OAuth refresh token
    OauthScopes List<string>
    OAuth scopes
    OauthTokenUrl string
    OAuth token URL
    OutputRules List<string>
    Agentic output rule in name=...,rule=... format
    ProtectionKey string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    Retry McpSecretOauthAuthorizationCodeRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    Tags List<string>
    List of the tags attached to this secret
    Url string
    URL of the MCP service
    Accessibility string
    For personal password manager
    AraEnabled bool
    Enable Agentic Runtime Authority
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    EnableAgenticRuntimeAuthority bool
    Enable Agentic Runtime Authority
    EnableAiQuorum bool
    Enable AI Quorum
    InputRules []string
    Agentic input rule in name=...,rule=... format
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    McpSecretOauthAuthorizationCodeId string
    The ID of this resource.
    Name string
    Secret name
    OauthClientId string
    OAuth client ID
    OauthClientSecret string
    OAuth client secret
    OauthRedirectUri string
    OAuth redirect URI
    OauthRefreshToken string
    OAuth refresh token
    OauthScopes []string
    OAuth scopes
    OauthTokenUrl string
    OAuth token URL
    OutputRules []string
    Agentic output rule in name=...,rule=... format
    ProtectionKey string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    Retry McpSecretOauthAuthorizationCodeRetryArgs
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    Tags []string
    List of the tags attached to this secret
    Url string
    URL of the MCP service
    accessibility string
    For personal password manager
    ara_enabled bool
    Enable Agentic Runtime Authority
    delete_protection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    enable_agentic_runtime_authority bool
    Enable Agentic Runtime Authority
    enable_ai_quorum bool
    Enable AI Quorum
    input_rules list(string)
    Agentic input rule in name=...,rule=... format
    keep_prev_version string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    max_versions string
    Set the maximum number of versions, limited by the account settings defaults
    mcp_secret_oauth_authorization_code_id string
    The ID of this resource.
    name string
    Secret name
    oauth_client_id string
    OAuth client ID
    oauth_client_secret string
    OAuth client secret
    oauth_redirect_uri string
    OAuth redirect URI
    oauth_refresh_token string
    OAuth refresh token
    oauth_scopes list(string)
    OAuth scopes
    oauth_token_url string
    OAuth token URL
    output_rules list(string)
    Agentic output rule in name=...,rule=... format
    protection_key string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    retry object
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    tags list(string)
    List of the tags attached to this secret
    url string
    URL of the MCP service
    accessibility String
    For personal password manager
    araEnabled Boolean
    Enable Agentic Runtime Authority
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    enableAgenticRuntimeAuthority Boolean
    Enable Agentic Runtime Authority
    enableAiQuorum Boolean
    Enable AI Quorum
    inputRules List<String>
    Agentic input rule in name=...,rule=... format
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults
    mcpSecretOauthAuthorizationCodeId String
    The ID of this resource.
    name String
    Secret name
    oauthClientId String
    OAuth client ID
    oauthClientSecret String
    OAuth client secret
    oauthRedirectUri String
    OAuth redirect URI
    oauthRefreshToken String
    OAuth refresh token
    oauthScopes List<String>
    OAuth scopes
    oauthTokenUrl String
    OAuth token URL
    outputRules List<String>
    Agentic output rule in name=...,rule=... format
    protectionKey String
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    retry McpSecretOauthAuthorizationCodeRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    tags List<String>
    List of the tags attached to this secret
    url String
    URL of the MCP service
    accessibility string
    For personal password manager
    araEnabled boolean
    Enable Agentic Runtime Authority
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    enableAgenticRuntimeAuthority boolean
    Enable Agentic Runtime Authority
    enableAiQuorum boolean
    Enable AI Quorum
    inputRules string[]
    Agentic input rule in name=...,rule=... format
    keepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    maxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    mcpSecretOauthAuthorizationCodeId string
    The ID of this resource.
    name string
    Secret name
    oauthClientId string
    OAuth client ID
    oauthClientSecret string
    OAuth client secret
    oauthRedirectUri string
    OAuth redirect URI
    oauthRefreshToken string
    OAuth refresh token
    oauthScopes string[]
    OAuth scopes
    oauthTokenUrl string
    OAuth token URL
    outputRules string[]
    Agentic output rule in name=...,rule=... format
    protectionKey string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    retry McpSecretOauthAuthorizationCodeRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    tags string[]
    List of the tags attached to this secret
    url string
    URL of the MCP service
    accessibility str
    For personal password manager
    ara_enabled bool
    Enable Agentic Runtime Authority
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    description str
    Description of the object
    enable_agentic_runtime_authority bool
    Enable Agentic Runtime Authority
    enable_ai_quorum bool
    Enable AI Quorum
    input_rules Sequence[str]
    Agentic input rule in name=...,rule=... format
    keep_prev_version str
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    max_versions str
    Set the maximum number of versions, limited by the account settings defaults
    mcp_secret_oauth_authorization_code_id str
    The ID of this resource.
    name str
    Secret name
    oauth_client_id str
    OAuth client ID
    oauth_client_secret str
    OAuth client secret
    oauth_redirect_uri str
    OAuth redirect URI
    oauth_refresh_token str
    OAuth refresh token
    oauth_scopes Sequence[str]
    OAuth scopes
    oauth_token_url str
    OAuth token URL
    output_rules Sequence[str]
    Agentic output rule in name=...,rule=... format
    protection_key str
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    retry McpSecretOauthAuthorizationCodeRetryArgs
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    tags Sequence[str]
    List of the tags attached to this secret
    url str
    URL of the MCP service
    accessibility String
    For personal password manager
    araEnabled Boolean
    Enable Agentic Runtime Authority
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    enableAgenticRuntimeAuthority Boolean
    Enable Agentic Runtime Authority
    enableAiQuorum Boolean
    Enable AI Quorum
    inputRules List<String>
    Agentic input rule in name=...,rule=... format
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults
    mcpSecretOauthAuthorizationCodeId String
    The ID of this resource.
    name String
    Secret name
    oauthClientId String
    OAuth client ID
    oauthClientSecret String
    OAuth client secret
    oauthRedirectUri String
    OAuth redirect URI
    oauthRefreshToken String
    OAuth refresh token
    oauthScopes List<String>
    OAuth scopes
    oauthTokenUrl String
    OAuth token URL
    outputRules List<String>
    Agentic output rule in name=...,rule=... format
    protectionKey String
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    retry Property Map
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    tags List<String>
    List of the tags attached to this secret
    url String
    URL of the MCP service

    Supporting Types

    McpSecretOauthAuthorizationCodeRetry, McpSecretOauthAuthorizationCodeRetryArgs

    ErrorMessageRegexes List<string>
    Regular expressions matched against the error message. If any matches, the operation is retried.
    IntervalSeconds double
    Wait before the first retry, in seconds. The wait doubles on each retry.
    MaxIntervalSeconds double
    Maximum wait between retries, in seconds.
    MaxRetries double
    Maximum number of retries after the first attempt.
    RetryOnStatusCodes List<double>
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    ErrorMessageRegexes []string
    Regular expressions matched against the error message. If any matches, the operation is retried.
    IntervalSeconds float64
    Wait before the first retry, in seconds. The wait doubles on each retry.
    MaxIntervalSeconds float64
    Maximum wait between retries, in seconds.
    MaxRetries float64
    Maximum number of retries after the first attempt.
    RetryOnStatusCodes []float64
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    error_message_regexes list(string)
    Regular expressions matched against the error message. If any matches, the operation is retried.
    interval_seconds number
    Wait before the first retry, in seconds. The wait doubles on each retry.
    max_interval_seconds number
    Maximum wait between retries, in seconds.
    max_retries number
    Maximum number of retries after the first attempt.
    retry_on_status_codes list(number)
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    errorMessageRegexes List<String>
    Regular expressions matched against the error message. If any matches, the operation is retried.
    intervalSeconds Double
    Wait before the first retry, in seconds. The wait doubles on each retry.
    maxIntervalSeconds Double
    Maximum wait between retries, in seconds.
    maxRetries Double
    Maximum number of retries after the first attempt.
    retryOnStatusCodes List<Double>
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    errorMessageRegexes string[]
    Regular expressions matched against the error message. If any matches, the operation is retried.
    intervalSeconds number
    Wait before the first retry, in seconds. The wait doubles on each retry.
    maxIntervalSeconds number
    Maximum wait between retries, in seconds.
    maxRetries number
    Maximum number of retries after the first attempt.
    retryOnStatusCodes number[]
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    error_message_regexes Sequence[str]
    Regular expressions matched against the error message. If any matches, the operation is retried.
    interval_seconds float
    Wait before the first retry, in seconds. The wait doubles on each retry.
    max_interval_seconds float
    Maximum wait between retries, in seconds.
    max_retries float
    Maximum number of retries after the first attempt.
    retry_on_status_codes Sequence[float]
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    errorMessageRegexes List<String>
    Regular expressions matched against the error message. If any matches, the operation is retried.
    intervalSeconds Number
    Wait before the first retry, in seconds. The wait doubles on each retry.
    maxIntervalSeconds Number
    Maximum wait between retries, in seconds.
    maxRetries Number
    Maximum number of retries after the first attempt.
    retryOnStatusCodes List<Number>
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    akeyless
    Viewing docs for akeyless 2.1.0
    published on Thursday, Nov 19, 2026 by akeyless-community

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial