ApigeeAliases.

ListKeyValueMaps(ICakeContext, string, ListKeyValueMapsSettings) Method

Summary

List all of the key value maps at either organisation or environment scope.
Assembly
Cake.Apigee.dll
Namespace
Cake.Apigee
Containing Type
ApigeeAliases

Syntax

public static IEnumerable<string> ListKeyValueMaps(this ICakeContext ctx, string orgName, ListKeyValueMapsSettings settings = null)

Examples

Cake task:

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

 IEnumerable<string> list = ListKeyValueMaps(
                    orgName,
                    new ListKeyValueMapsSettings { Credentials = apigeeCredentials, Environment = "dev" });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
ctx ICakeContext The Cake context.
orgName string Your org name as shown in Apigee.
settings ListKeyValueMapsSettings Settings such as the Apigee authentication credentials.

Return Value

Type Description
IEnumerable<string> The list of key value map names.