ApigeeAliases.

DeleteAllUndeployedApiProxyRevisions(ICakeContext, string, string, DeleteAllUndeployedApiProxyRevisionsSettings) Method

Summary

Delete all undeployed proxy revisions. This attempts to delete ALL proxy revisions but Apigee won't let already deployed revisions be removed.
Assembly
Cake.Apigee.dll
Namespace
Cake.Apigee
Containing Type
ApigeeAliases

Syntax

public static void DeleteAllUndeployedApiProxyRevisions(this ICakeContext ctx, string orgName, string proxyName, DeleteAllUndeployedApiProxyRevisionsSettings settings = null)

Examples

Cake task:

 var orgName = "myorg";
 var apigeeCredentials = new Credentials
 {
    Username = "[email protected]",
    Password = "mypassword"
 };

 DeleteAllUndeployedApiProxyRevisions(
                    orgName,
                    "myapi",
                    new DeleteAllUndeployedApiProxyRevisionsSettings { Credentials = apigeeCredentials });

Remarks

This makes calls to the following API for every revision of the proxy: https://docs.apigee.com/management/apis/delete/organizations/%7Borg_name%7D/apis/%7Bapi_name%7D/revisions/%7Brevision_number%7D

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
ctx ICakeContext The Cake context.
orgName string Your org name as shown in Apigee.
proxyName string The name of the proxy.
settings DeleteAllUndeployedApiProxyRevisionsSettings The settings such as the authentication credentials.

Return Value

Type Description
void