< Back

Create-EdgeKvm

Sun Jan 19, 2020 6:01 pm

NAME Create-EdgeKvm



SYNOPSIS

Create a named key-value map in Apigee Edge.





SYNTAX

Create-EdgeKvm [-Name] <String> [[-Values] <Hashtable>] [[-Source] <String>] [[-Environment] <String>] [[-Proxy]

<String>] [[-Org] <String>] [-Encrypted] [<CommonParameters>]





DESCRIPTION

Create a named key-value map in Apigee Edge.





PARAMETERS

-Name <String>

The name of the key-value map to create. It must be unique for the scope

(organization or environment).



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Values <Hashtable>

Optional. A hashtable specifying key/value pairs. Use in lieu of the -Source option.

Example:

@{

key1 = 'value1'

key2 = 'value2'

}



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Source <String>

Optional. A file containing JSON that specifis key/value pairs. Use in

lieu of the -Values option. Example contents:

{

"key1" : "value1",

"key2" : "value2"

}



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Environment <String>

Optional. A string, the name of the environment within Apigee Edge with which to associate

this keyvaluemap. KVMs can be associated to an organization, an environment, or an API

Proxy. If you specify neither Environment nor Proxy, the default is to associate the KVM with

the organization.



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Proxy <String>

Optional. A string, the name of the API Proxy within Apigee Edge with which to associate

this keyvaluemap. KVMs can be associated to an organization, an environment, or an API

Proxy. If you specify neither Environment nor Proxy, the default is to associate the KVM with

the organization.



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Org <String>

Optional. The Apigee Edge organization. The default is to use the value from Set-EdgeConnection.



Required? false

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Encrypted [<SwitchParameter>]

Optional. Whether to create an encrypted KVM or not. Defaults to false.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Create-EdgeKvm -Name kvm101 -Environment test -Values @{ key1 = 'value1'; key2 = 'value2' }













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Create-EdgeKvm -Name kvm102 -Environment test -Encrypted













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Create-EdgeKvm -Name proxy-specific-kvm -Proxy api101 -Encrypted













-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Create-EdgeKvm -Name kvm104 -Environment test -Source .\\myfile.json















RELATED LINKS