Microsoft Azure Product Secrets API

The ProductSecrets API from Microsoft Azure, for productsecrets.

GitHub OpenAPI

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productPackages/{packageId}/secrets List product package secrets · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Deployment… #
Ask an LLM
“Which secrets does a deployment product package need?”
“Can I see all the secrets defined for a product package in Azure Stack deployment admin?”
Tell an agent
List the secrets for product package {packageId}.
Show every product secret defined in package {packageId}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productPackages/{packageId}/secrets/{secretName} Get a product package secret · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Deployment… #
Ask an LLM
“How do I look up one specific product secret?”
“What does a single product package secret record contain?”
Tell an agent
Get product secret {secretName} from package {packageId}.
Show the details of package secret {secretName}.
POST /subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productPackages/{packageId}/secrets/{secretName}/import Import a product package secret · Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“How do I import a certificate or password as a product secret?”
“Can I set the value of a product package secret before deployment?”
Tell an agent
Import secret {secretName} into package {packageId} with parameters {secretParameters}.
Upload a value into product secret {secretName} using {secretParameters}.
POST /subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productPackages/{packageId}/secrets/{secretName}/validate Validate a product package secret · Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“Can I check a product secret value is valid before I import it?”
“Is there a way to test secret parameters without saving them?”
Tell an agent
Validate product secret {secretName} in package {packageId} with parameters {secretParameters}.
Check whether {secretParameters} is acceptable for secret {secretName}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-productsecrets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-productsecrets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '2019-01-01'
  title: Microsoft Azure DeploymentAdminClient Product Secrets API
  description: Deployment Admin Client.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: ProductSecrets
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productPackages/{packageId}/secrets:
    get:
      x-ms-examples:
        Return product secrets list.:
          $ref: ./examples/ProductSecret/List.json
      description: Returns an array of product secrets.
      tags:
      - ProductSecrets
      operationId: microsoftAzureProductsecretsList
      parameters:
      - $ref: Deployment.json#/parameters/SubscriptionIdParameter
      - $ref: Deployment.json#/parameters/ApiVersionParameter
      - $ref: Deployment.json#/parameters/PackageIdParameter
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductSecretsList'
        default:
          description: Default Response.
          content:
            application/json:
              schema:
                $ref: Deployment.json#/definitions/ExtendedErrorInfo
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Deployment…
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productPackages/{packageId}/secrets/{secretName}
  : get:
      x-ms-examples:
        Return product secrets list.:
          $ref: ./examples/ProductSecret/Get.Json
      description: Returns the specific product secret.
      tags:
      - ProductSecrets
      operationId: microsoftAzureProductsecretsGet
      parameters:
      - $ref: Deployment.json#/parameters/SubscriptionIdParameter
      - $ref: Deployment.json#/parameters/ApiVersionParameter
      - $ref: Deployment.json#/parameters/PackageIdParameter
      - $ref: '#/components/parameters/SecretNameParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductSecret'
        default:
          description: Default Response.
          content:
            application/json:
              schema:
                $ref: Deployment.json#/definitions/ExtendedErrorInfo
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Deployment…
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productPackages/{packageId}/secrets/{secretName}/import
  : post:
      x-ms-examples:
        Imports a product secret.:
          $ref: ./examples/ProductSecret/Import.json
      description: Imports a product secret.
      tags:
      - ProductSecrets
      operationId: microsoftAzureProductsecretsSet
      parameters:
      - $ref: Deployment.json#/parameters/SubscriptionIdParameter
      - $ref: Deployment.json#/parameters/PackageIdParameter
      - $ref: '#/components/parameters/SecretNameParameter'
      - $ref: Deployment.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/SecretParameters'
      responses:
        '200':
          description: Accepted
        default:
          description: Default Response.
          content:
            application/json:
              schema:
                $ref: Deployment.json#/definitions/ExtendedErrorInfo
      x-ms-long-running-operation: true
      summary: Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft…
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Deployment.Admin/locations/global/productPackages/{packageId}/secrets/{secretName}/validate
  : post:
      x-ms-examples:
        Validates a product secret.:
          $ref: ./examples/ProductSecret/Validate.json
      description: Validates a product secret.
      tags:
      - ProductSecrets
      operationId: microsoftAzureProductsecretsValidate
      parameters:
      - $ref: Deployment.json#/parameters/SubscriptionIdParameter
      - $ref: Deployment.json#/parameters/PackageIdParameter
      - $ref: '#/components/parameters/SecretNameParameter'
      - $ref: Deployment.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/SecretParameters'
      responses:
        '200':
          description: Accepted
        default:
          description: Default Response.
          content:
            application/json:
              schema:
                $ref: Deployment.json#/definitions/ExtendedErrorInfo
      x-ms-long-running-operation: true
      summary: Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft…
components:
  schemas:
    SecretStatus:
      description: Specifies the secret status.
      type: string
      enum:
      - NotUploaded
      - Uploaded
      - Deployed
      x-ms-enum:
        modelAsString: true
        name: SecretStatus
    ProductSecretsList:
      description: List of product secrets.
      properties:
        value:
          description: List of product secrets.
          type: array
          items:
            $ref: '#/components/schemas/ProductSecret'
        nextLink:
          description: URI to the next page.
          type: string
    data:
      description: The converted Base64 String from a certificate pfx file.
      type: string
    ProductSecretProperties:
      type: object
      description: Properties of product secret.
      properties:
        secretState:
          description: The secret state.
          $ref: '#/components/schemas/SecretState'
        secretDescriptor:
          description: The secret type-specific descriptor.
          $ref: '#/components/schemas/SecretDescriptor'
        expiresAfter:
          description: The expiration period of the secret (in ISO8601 format).
          type: string
        description:
          description: The secret description.
          type: string
        provisioningState:
          description: Provisioning state of the resource.
          type: string
        secretKind:
          description: Specifies the secret kind.
          type: string
          enum:
          - AdHoc
          - Certificate
          - Password
          - StorageAccount
          - SymmetricKey
          x-ms-enum:
            modelAsString: true
            name: SecretKind
    key:
      description: The symmetric key as a secure string.
      type: string
    SecretState:
      description: Represents the secret state.
      type: object
      properties:
        status:
          description: The secret status.
          $ref: '#/components/schemas/SecretStatus'
        rotationStatus:
          description: the secret rotation status.
          $ref: '#/components/schemas/SecretRotationStatus'
        expirationDate:
          description: The secret expiration date.
          type: string
          format: date-time
    password:
      description: The password as a secure string.
      type: string
    ProductSecret:
      description: Properties for a product secret.
      type: object
      properties:
        properties:
          description: Properties of a product secret.
          $ref: '#/components/schemas/ProductSecretProperties'
          x-ms-client-flatten: true
      allOf:
      - $ref: Deployment.json#/definitions/Resource
    value:
      description: The secret value in a secure string format.
      type: string
    SecretRotationStatus:
      description: Specifies the secret rotation status.
      type: string
      enum:
      - None
      - InProgress
      - Complete
      x-ms-enum:
        modelAsString: true
        name: SecretRotationStatus
    AlternativeIpAddresses:
      description: List of alternative IP Addresses.
      type: string
    SecretDescriptor:
      description: The secret type-specific descriptor.
      type: object
      properties:
        keyLength:
          description: The key length.
          type: integer
        alternativeDnsNames:
          description: Alternative DNS Names.
          type: array
          items:
            $ref: '#/components/schemas/AlternativeDnsNames'
        secondaryKeyIsActive:
          description: A value indicating whether the secondary or primary storage account key is active as a secret.
          type: boolean
        rotationStatus:
          description: The storage account key secret rotation status.
          type: string
          enum:
          - None
          - PlantNewSak
          - RotateInactiveSak
          - Complete
          x-ms-enum:
            modelAsString: true
            name: RotationStatus
        passwordLength:
          description: The minimum password length is 8 characters, and the maximum password length is 128 characters.
          type: integer
        allowedCharacters:
          description: The allowed characters in the password
          type: string
        passwordValidationRegex:
          description: Password validation regular expression.
          type: string
        subject:
          description: Certificate's subject
          type: string
        alternativeIpAddresses:
          description: The list of alternative IP addresses.
          type: array
          items:
            $ref: '#/components/schemas/AlternativeIpAddresses'
    AlternativeDnsNames:
      description: List of alternative DNS names.
      type: string
    SecretParameters:
      description: Parameters required for creating/updating a product secret.
      type: object
      properties:
        value:
          description: The secret value in a secure string format.
          $ref: '#/components/schemas/value'
        data:
          description: The pfx certificate converted Base64 data.
          $ref: '#/components/schemas/data'
        password:
          description: The pfx certificate file password.
          $ref: '#/components/schemas/password'
        key:
          description: The symmetric key.
          $ref: '#/components/schemas/key'
  parameters:
    SecretNameParameter:
      description: The secret name.
      name: secretName
      in: path
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    SecretParameters:
      description: The parameters required for creating/updating a product secret.
      name: secretParameters
      in: body
      required: true
      schema:
        $ref: '#/components/schemas/SecretParameters'
      x-ms-parameter-location: method
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Authorization uses an Azure Active Directory OAuth2 flow.
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/azsadmin/resource-manager/deployment/Microsoft.Deployment.Admin/preview/2019-01-01/ProductSecret.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)