{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
1

Importing a credential (key+secret) into Apigee, using Powershell  

  • Export to PDF
Dino   created · May 12, 2017 at 08:41 PM · 195 Views · Dino-at-Google edited · Feb 12 at 09:00 PM

Hey everyone, I built a Powershell cmdlet that creates a new app and attaches an explicitly-specified credential (key + secret pair) to it.

I thought you might be interested.

Here is the gist.

The Apigee Edge entity model requires that a credential be attached to a "Developer App". And the developer app obviously must belong to a specific developer. The credential should also be authorized to use a specific set of one or more API Products.

Keeping all of that in mind, here is the way this cmdlet works:

  • verifies that the specified developer exists. (If it doesn't you can create one with the Create-EdgeDeveloper cmdlet)
  • verifies that the specified API Product exists. (Similarly - you can create one with a different cmdlet)
  • creates a new app for that developer; this will implicitly generate a random credential
  • attaches the explicitly-specified Key + secret to that new app
  • modifies the product list for that key + secret to include the specified product
  • removes the implicitly-generated credential

This is a cmdlet you might want to use if you were migrating from a different API management gateway system to Apigee Edge, and you had existing API keys out there, and you wanted to continue to use them without modifying clients.

If you have suggestions on this cmdlet, or requests for others, let me know!

thub.nodes.view.add-new-comment
automationpowershell
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Article

Contributors

avatar image avatar image

Follow this article

46 People are following this .

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Navigation

Importing a credential (key+secret) into Apigee, using Powershell

Related Articles

Automate KVM creation on Apigee Edge

Using scheduling for Apigee trace instead of manual work with control

Windows user? Want to automate administration of Apigee Edge from Powershell?

Apigee Edge Powershell module - updated to v0.2.13

How to: manually zip up an API Proxy bundle into something that can be imported to Apigee Edge

Apigee Edge Powershell module - updated to v0.2.23

Top 10 trending technologies must learn in 2021

Need to migrate a ConsumerKey from one app to another? Here's how.

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges