Endpoint version from file
Set-APIEndpointVersionFromFile
Synopsis
Edit an endpoint from an API definition file.
Syntax
Set-APIEndpointVersionFromFile -APIEndpointName <String> -VersionNumber <String> -ImportFileFormat <String> -ImportFileSource <String> [-ImportURL <String>] [-ImportFileContent <String>] [-Root <String>] -ContractID <String> -GroupID <Int32> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-APIEndpointVersionFromFile -APIEndpointName <String> -VersionNumber <String> -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-APIEndpointVersionFromFile -APIEndpointID <Int32> -VersionNumber <String> -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-APIEndpointVersionFromFile -APIEndpointID <Int32> -VersionNumber <String> -ImportFileFormat <String> -ImportFileSource <String> [-ImportURL <String>] [-ImportFileContent <String>] [-Root <String>] -ContractID <String> -GroupID <Int32> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Imports an API definition file with the endpoint's details by its name or ID and version number. The -VersionNumber
parameter is an integer or the word latest
.
Parameters
‑APIEndpointID Conditionally required |
The endpoint's ID. |
‑APIEndpointName Conditionally required |
The endpoint's name. |
‑AccountSwitchKey |
An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use Get-AccountSwitchKey. |
‑Body Conditionally required |
A request body, either as a |
‑ContractID Conditionally required |
Filters endpoints to a specific contract. You need to specify this along with a |
‑EdgeRCFile |
Your EdgeGrid resource file to authenticate your command. Defaults to |
‑GroupID Conditionally required |
Filters endpoints to a specific group. You need to specify this along with a |
‑ImportFileContent |
The content of the API definition file encoded in Base64. Specify this only if you set the corresponding ImportFileSource to |
‑ImportFileFormat Conditionally required |
The format of the API definition file, either |
‑ImportFileSource Conditionally required |
The location of the API definition file, either |
‑ImportURL |
The URL from which to get the API definition file. Specify this only if you set the corresponding |
‑Root |
If the import file located at the ImportURL is a ZIP archive, this identifies the API definition's filename within the archive. |
‑Section |
The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to |
‑VersionNumber Required |
The endpoint version's number. Can be an integer or 'latest'. |
Related Links
Updated about 6 hours ago