Etc/ApiData.json

{
    "Example": {
        "v1.0": {
            "Description": "Details about the API endpoint",
            "Endpoints": [
                "The URI(s) expressed as /endpoint"
            ],
            "Method": "Method to use against the endpoint",
            "Body": "Parameters to use in the request body",
            "Query": "Parameters to use in the Endpoints query",
            "Location": "If the result content is stored in a higher level key, express it here to be unwrapped in the return",
            "Filter": "If the result content needs to be filtered based on key names, express them here",
            "SuccessCode": "The expected HTTP status code for a successful call"
        }
    },
    "Connect-Armor": {
        "v1.0": {
            "Description": "Create a new login session",
            "Endpoints": [
                "/auth/authorize"
            ],
            "Method": "Post",
            "Body": {
                "Username": "Username",
                "Password": "Password"
            },
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "200"
        }
    },
    "Get-ArmorAccount": {
        "v1.0": {
            "Description": "Retrieves a list of Armor account memberships",
            "Endpoints": [
                "/accounts"
            ],
            "Method": "Get",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {
                "Name": "Name",
                "ID": "ID"
            },
            "SuccessCode": "200"
        }
    },
    "Get-ArmorAccountAddress": {
        "v1.0": {
            "Description": "Retrieves the address on file for the specified Armor account",
            "Endpoints": [
                "/accounts/{id}"
            ],
            "Method": "Get",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "200"
        }
    },
    "Get-ArmorCompleteDatacenter": {
        "v1.0": {
            "Description": "Return a set of available locations for provisioning new Armor Complete servers",
            "Endpoints": [
                "/locations"
            ],
            "Method": "Get",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {
                "Name": "Name",
                "Location": "Location",
                "ID": "ID"
            },
            "SuccessCode": "200"
        }
    },
    "Get-ArmorCompleteWorkload": {
        "v1.0": {
            "Description": "Retrieve any workloads that are associated to your account",
            "Endpoints": [
                "/apps",
                "/apps/{id}"
            ],
            "Method": "Get",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {
                "Name": "Name"
            },
            "SuccessCode": "200"
        }
    },
    "Get-ArmorCompleteWorkloadTier": {
        "v1.0": {
            "Description": "Retrieves all the tiers associated with a specified workload",
            "Endpoints": [
                "/apps/{id}/tiers",
                "/apps/{id}/tiers/{id}"
            ],
            "Method": "Get",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {
                "Name": "Name"
            },
            "SuccessCode": "200"
        }
    },
    "Get-ArmorIdentity": {
        "v1.0": {
            "Description": "Return information about the current authenticated user, including account membership and permissions",
            "Endpoints": [
                "/me"
            ],
            "Method": "Get",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "200"
        }
    },
    "Get-ArmorUser": {
        "v1.0": {
            "Description": "Retrieves a list of users in your account",
            "Endpoints": [
                "/users",
                "/users/{id}"
            ],
            "Method": "Get",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {
                "FirstName": "FirstName",
                "LastName": "LastName",
                "UserName": "Email"
            },
            "SuccessCode": "200"
        }
    },
    "Get-ArmorVM": {
        "v1.0": {
            "Description": "Displays a list of virtual machines in your account",
            "Endpoints": [
                "/vms",
                "/vms/{id}",
                "/vms/core/{id}"
            ],
            "Method": "Get",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {
                "Name": "Name"
            },
            "SuccessCode": "200"
        }
    },
    "New-ArmorApiToken": {
        "v1.0": {
            "Description": "Creates an authentication token from an authorization code",
            "Endpoints": [
                "/auth/token"
            ],
            "Method": "Post",
            "Body": {
                "code": "GUID",
                "grant_type": "authorization_code"
            },
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "200"
        }
    },
    "Remove-ArmorCompleteWorkload": {
        "v1.0": {
            "Description": "Deletes the specified workload in your account",
            "Endpoints": [
                "/apps/{id}"
            ],
            "Method": "Delete",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "202"
        }
    },
    "Rename-ArmorCompleteVM": {
        "v1.0": {
            "Description": "Renames the specified virtual machine in your account",
            "Endpoints": [
                "/vms/{id}"
            ],
            "Method": "Put",
            "Body": {
                "id": "ID",
                "name": "Name"
            },
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "200"
        }
    },
    "Rename-ArmorCompleteWorkload": {
        "v1.0": {
            "Description": "Renames the specified workload in your account",
            "Endpoints": [
                "/apps/{id}"
            ],
            "Method": "Put",
            "Body": {
                "id": "ID",
                "name": "Name"
            },
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "200"
        }
    },
    "Reset-ArmorCompleteVM": {
        "v1.0": {
            "Description": "Abruptly reset the specified virtual machine in your account",
            "Endpoints": [
                "/vms/{id}/power/reset"
            ],
            "Method": "Post",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "200"
        }
    },
    "Restart-ArmorCompleteVM": {
        "v1.0": {
            "Description": "Reboot the specified virtual machine in your account",
            "Endpoints": [
                "/vms/{id}/power/reboot"
            ],
            "Method": "Post",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "200"
        }
    },
    "Start-ArmorCompleteVM": {
        "v1.0": {
            "Description": "Power on the specified virtual machine in your account",
            "Endpoints": [
                "/vms/{id}/power/on"
            ],
            "Method": "Post",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "200"
        }
    },
    "Stop-ArmorCompleteVM": {
        "v1.0": {
            "Description": "Power off the specified virtual machine in your account",
            "Endpoints": [
                "/vms/{id}/power/shutdown",
                "/vms/{id}/power/off",
                "/vms/{id}/power/forceOff"
            ],
            "Method": "Post",
            "Body": {},
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "200"
        }
    },
    "Update-ArmorApiToken": {
        "v1.0": {
            "Description": "Reissues an authentication token if requested before session expiration",
            "Endpoints": [
                "/auth/token/reissue"
            ],
            "Method": "Post",
            "Body": {
                "token": "GUID"
            },
            "Query": {},
            "Location": "",
            "Filter": {},
            "SuccessCode": "200"
        }
    }
}