-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LogAnalytics - ListScheduledTasks - Enum parameter issue #149
Comments
@jbcintra |
@jbcintra |
Thanks @github-anurag |
@jbcintra Also, the |
Thanks @github-anurag , that explains why is wasn't handling the Unknown/null input then! I'll leave that disabled till it's removed from the next release. I was only referencing it as it was a mandatory variable! |
Hi,
I'm calling ListScheduledTasks which has 3 parameters. CompartmentId, NamespaceName, and TaskType.
TaskType is LA Enum TaskType, with a set of values.
I'm coding it to enumerate the values, so that it accomodates future changes.
var types = Enum.GetValues(typeof(TaskType)).Cast();
// this returns a list of TaskTypes to process in a foreach loop.
The TaskType values are:
UnknownEnumValue
SavedSearch
Acceleration
Purge
AccelerationMaintenance
Passing in UnknownEnumValue causes an ArgumentNullException error, so I've set that to skip..
When it gets to AccelerationMaintenance, it is passing in ACCELERATION_MAINTENANCE and taskType is invalid. The same error occurs via the CLI - so this is an API level error...
oci log-analytics scheduled-task list --namespace-name --compartment-id ocid1.compartment.oc1..**** --task-type ACCELERATION_MAINTENANCE --profile SSCL
yet the CLI outputs that as one of the approved values
The text was updated successfully, but these errors were encountered: