<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can you use Credential Vault content in python extensions in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/How-can-you-use-Credential-Vault-content-in-Python-extensions/m-p/283841#M6657</link>
    <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35901"&gt;@r_weber&lt;/a&gt;&amp;nbsp;I was just running into this for an api token I'm storing. the post by&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp; on this thread&lt;BR /&gt;&lt;A href="https://community.dynatrace.com/t5/Extensions/Send-a-credential-from-credential-vault-to-extension/m-p/242163" target="_blank"&gt;https://community.dynatrace.com/t5/Extensions/Send-a-credential-from-credential-vault-to-extension/m-p/242163&lt;/A&gt;&lt;BR /&gt;did it for me. It all has to do with the activationSchema.json. Here's what he had configured:&lt;BR /&gt;it looks to me the key here is to have the&amp;nbsp;&lt;SPAN&gt;credentialVaultId entry and then subsequent values have the property&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;useCredentialVault&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt;{
  "types": {
    "dynatrace.datasource.python:credential_vault-endpoint": {
      "type": "object",
      "displayName": "Credential_vault Endpoint",
      "summaryPattern": "Credential_vault",
      "properties": {
        "useCredentialVault": {
          "displayName": "Use credential vault",
          "type": "boolean",
          "nullable": false,
          "default": true,
          "maxObjects": 1
        },
        "credentialVaultId": {
          "displayName": "Select Vault credentials",
          "nullable": true,
          "type": "text",
          "subType": "credential",
          "referencedType": "USERNAME_PASSWORD",
          "maxObjects": 1,
          "precondition": {
            "type": "EQUALS",
            "property": "useCredentialVault",
            "expectedValue": true
          },
          "constraints": [
            {
              "type": "NOT_BLANK"
            }
          ]
        },
        "username": {
          "displayName": "User Name",
          "type": "text",
          "nullable": false,
          "default": "",
          "precondition": {
            "type": "EQUALS",
            "property": "useCredentialVault",
            "expectedValue": false
          },
          "constraints": [
            {
              "type": "LENGTH",
              "minLength": 1,
              "maxLength": 500
            }
          ],
          "maxItems": 1
        },
        "password": {
          "displayName": "Password",
          "type": "secret",
          "nullable": false,
          "default": "",
          "precondition": {
            "type": "EQUALS",
            "property": "useCredentialVault",
            "expectedValue": false
          },
          "constraints": [
            {
              "type": "LENGTH",
              "minLength": 1,
              "maxLength": 500
            }
          ],
          "maxItems": 1
        }

      }
    },
    "pythonRemote": {
      "type": "object",
      "properties": {
        "endpoints": {
          "displayName": "Credential_vault endpoint",
          "type": "list",
          "items": {
            "type": {
              "$ref": "#/types/dynatrace.datasource.python:credential_vault-endpoint"
            }
          },
          "nullable": false,
          "minItems": 1,
          "maxItems": 100,
          "metaData": {
            "addItemButton": "Add endpoint"
          }
        }
      }
    },
    "pythonLocal": {
      "type": "object",
      "properties": {
        "endpoints": {
          "displayName": "Credential_vault endpoint",
          "type": "list",
          "items": {
            "type": {
              "$ref": "#/types/dynatrace.datasource.python:credential_vault-endpoint"
            }
          },
          "nullable": false,
          "minItems": 1,
          "maxItems": 100,
          "metaData": {
            "addItemButton": "Add endpoint"
          }
        }
      }
    }
  },
  "dynatrace": "1",
  "description": "credential_vault configuration",
  "schemaId": "python-extension.activation",
  "displayName": "credential_vault configuration",
  "ownerProductManagement": "dynatrace",
  "ownerDevelopment": "dynatrace",
  "maturity": "GENERAL_AVAILABILITY",
  "allowedScopes": [
    "tenant"
  ],
  "multiObject": false,
  "properties": {
    "pythonLocal": {
      "displayName": "Python Local Extension",
      "type": {
        "$ref": "#/types/pythonLocal"
      }
    },
    "pythonRemote": {
      "displayName": "Python Remote Extension",
      "type": {
        "$ref": "#/types/pythonRemote"
      }
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2025 14:49:56 GMT</pubDate>
    <dc:creator>calfanonerey</dc:creator>
    <dc:date>2025-08-14T14:49:56Z</dc:date>
    <item>
      <title>How can you use Credential Vault content in Python extensions?</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-can-you-use-Credential-Vault-content-in-Python-extensions/m-p/283157#M6632</link>
      <description>&lt;P&gt;It seems impossible to pass credential vault content (e.g. user/password values) to a python extension so that it can be used in code.&lt;/P&gt;
&lt;P&gt;I came across &lt;A href="https://community.dynatrace.com/t5/Extensions/Send-a-credential-from-credential-vault-to-extension/m-p/242122" target="_self"&gt;this post&lt;/A&gt;&amp;nbsp;which describes how to add credential vault UI configuration, however this doesn't pass the actual content to the python extension, only the VAULT-ID is passed.&lt;/P&gt;
&lt;P&gt;Does anyone know how I can e.g. get the username/password into my custom python extension?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 14:09:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-can-you-use-Credential-Vault-content-in-Python-extensions/m-p/283157#M6632</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2025-12-19T14:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use Credential Vault content in python extensions</title>
      <link>https://community.dynatrace.com/t5/Extensions/How-can-you-use-Credential-Vault-content-in-Python-extensions/m-p/283841#M6657</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35901"&gt;@r_weber&lt;/a&gt;&amp;nbsp;I was just running into this for an api token I'm storing. the post by&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp; on this thread&lt;BR /&gt;&lt;A href="https://community.dynatrace.com/t5/Extensions/Send-a-credential-from-credential-vault-to-extension/m-p/242163" target="_blank"&gt;https://community.dynatrace.com/t5/Extensions/Send-a-credential-from-credential-vault-to-extension/m-p/242163&lt;/A&gt;&lt;BR /&gt;did it for me. It all has to do with the activationSchema.json. Here's what he had configured:&lt;BR /&gt;it looks to me the key here is to have the&amp;nbsp;&lt;SPAN&gt;credentialVaultId entry and then subsequent values have the property&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;useCredentialVault&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt;{
  "types": {
    "dynatrace.datasource.python:credential_vault-endpoint": {
      "type": "object",
      "displayName": "Credential_vault Endpoint",
      "summaryPattern": "Credential_vault",
      "properties": {
        "useCredentialVault": {
          "displayName": "Use credential vault",
          "type": "boolean",
          "nullable": false,
          "default": true,
          "maxObjects": 1
        },
        "credentialVaultId": {
          "displayName": "Select Vault credentials",
          "nullable": true,
          "type": "text",
          "subType": "credential",
          "referencedType": "USERNAME_PASSWORD",
          "maxObjects": 1,
          "precondition": {
            "type": "EQUALS",
            "property": "useCredentialVault",
            "expectedValue": true
          },
          "constraints": [
            {
              "type": "NOT_BLANK"
            }
          ]
        },
        "username": {
          "displayName": "User Name",
          "type": "text",
          "nullable": false,
          "default": "",
          "precondition": {
            "type": "EQUALS",
            "property": "useCredentialVault",
            "expectedValue": false
          },
          "constraints": [
            {
              "type": "LENGTH",
              "minLength": 1,
              "maxLength": 500
            }
          ],
          "maxItems": 1
        },
        "password": {
          "displayName": "Password",
          "type": "secret",
          "nullable": false,
          "default": "",
          "precondition": {
            "type": "EQUALS",
            "property": "useCredentialVault",
            "expectedValue": false
          },
          "constraints": [
            {
              "type": "LENGTH",
              "minLength": 1,
              "maxLength": 500
            }
          ],
          "maxItems": 1
        }

      }
    },
    "pythonRemote": {
      "type": "object",
      "properties": {
        "endpoints": {
          "displayName": "Credential_vault endpoint",
          "type": "list",
          "items": {
            "type": {
              "$ref": "#/types/dynatrace.datasource.python:credential_vault-endpoint"
            }
          },
          "nullable": false,
          "minItems": 1,
          "maxItems": 100,
          "metaData": {
            "addItemButton": "Add endpoint"
          }
        }
      }
    },
    "pythonLocal": {
      "type": "object",
      "properties": {
        "endpoints": {
          "displayName": "Credential_vault endpoint",
          "type": "list",
          "items": {
            "type": {
              "$ref": "#/types/dynatrace.datasource.python:credential_vault-endpoint"
            }
          },
          "nullable": false,
          "minItems": 1,
          "maxItems": 100,
          "metaData": {
            "addItemButton": "Add endpoint"
          }
        }
      }
    }
  },
  "dynatrace": "1",
  "description": "credential_vault configuration",
  "schemaId": "python-extension.activation",
  "displayName": "credential_vault configuration",
  "ownerProductManagement": "dynatrace",
  "ownerDevelopment": "dynatrace",
  "maturity": "GENERAL_AVAILABILITY",
  "allowedScopes": [
    "tenant"
  ],
  "multiObject": false,
  "properties": {
    "pythonLocal": {
      "displayName": "Python Local Extension",
      "type": {
        "$ref": "#/types/pythonLocal"
      }
    },
    "pythonRemote": {
      "displayName": "Python Remote Extension",
      "type": {
        "$ref": "#/types/pythonRemote"
      }
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 14:49:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/How-can-you-use-Credential-Vault-content-in-Python-extensions/m-p/283841#M6657</guid>
      <dc:creator>calfanonerey</dc:creator>
      <dc:date>2025-08-14T14:49:56Z</dc:date>
    </item>
  </channel>
</rss>

