You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an error that I received when I wanted to run this command: pslevel update service -f service.yaml
Error: OpsLevel API Errors:
* One of id or alias must be supplied
When I wanted to apply changes for service.yaml I clicked on download the newest version of opslevel.yml
And as far as I see, this CLI of update doesn't accept any flags like ID, and gives me an error when I feed-in not altered piece of data (which comes from opslevel directly).
Documentation for CLI also isn't helpful with that regards.
Thanks upfront for some help
The text was updated successfully, but these errors were encountered:
Hey @RvuvuzelaM - unfortunately the opslevel update service command does not take in an opslevel.yml file. Its a different format that mirrors our GraphQL API mutations.
Could you explain more of your usecase in what you are trying to accomplish by using the CLI to update a service with an opslevel.yml? The purpose of opslevel.yml is that you place it in your Git repository and our App's Git integrations read and process it. The CLI was never meant to use opslevel.yml as a data source so I'm curious about your usecase.
Here is an example of using the opslevel update service command - while it looks close to opslevel.yml it is importantly not because opslevel.yml does not mirror our GraphQL API mutations and the CLI uses GraphQL to enact the changes.
cat << EOF | opslevel update service -f -
alias: "hello_world"
description: "Hello World Service Updated"
tier: "tier_3"
EOF
Here is an error that I received when I wanted to run this command:
pslevel update service -f service.yaml
When I wanted to apply changes for
service.yaml
I clicked on download the newest version of opslevel.ymlAnd as far as I see, this CLI of update doesn't accept any flags like ID, and gives me an error when I feed-in not altered piece of data (which comes from
opslevel
directly).Documentation for CLI also isn't helpful with that regards.
Thanks upfront for some help
The text was updated successfully, but these errors were encountered: