Skip to content
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

policy_id type in Get Snapshot Lifecycle API REST spec should be list #47765

Closed
russcam opened this issue Oct 9, 2019 · 1 comment · Fixed by #47766
Closed

policy_id type in Get Snapshot Lifecycle API REST spec should be list #47765

russcam opened this issue Oct 9, 2019 · 1 comment · Fixed by #47766
Labels
>bug :Core/Infra/REST API REST infrastructure and utilities

Comments

@russcam
Copy link
Contributor

russcam commented Oct 9, 2019

In line with other REST API specs that accept a comma-separated list of values, the slm.get_lifecycle REST API spec policy_id should be of type "list", and not "string":

"parts":{
"policy_id":{
"type":"string",
"description":"Comma-separated list of snapshot lifecycle policies to retrieve"
}
}

This affects REST specs back to v7.4.0.

The docs should also be updated to use policy_id instead of policy_ids, to match the REST API spec.

russcam added a commit that referenced this issue Oct 9, 2019
This commit changes the REST API spec slm.get_lifecycle's polict_id url part to be of type "list", in line with other REST API specs that accept a comma-separated list of values.

Closes #47765
@jimczi jimczi added :Core/Infra/REST API REST infrastructure and utilities >bug labels Oct 9, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/REST API)

russcam added a commit that referenced this issue Oct 24, 2019
This commit changes the REST API spec slm.get_lifecycle's policy_id url part to be of type "list", in line with other REST API specs that accept a comma-separated list of values.

Closes #47765
russcam added a commit that referenced this issue Oct 24, 2019
This commit changes the REST API spec slm.get_lifecycle's policy_id url part to be of type "list", in line with other REST API specs that accept a comma-separated list of values.

Closes #47765
russcam added a commit that referenced this issue Oct 24, 2019
This commit changes the REST API spec slm.get_lifecycle's policy_id url part to be of type "list", in line with other REST API specs that accept a comma-separated list of values.

Closes #47765
russcam added a commit that referenced this issue Oct 24, 2019
This commit changes the REST API spec slm.get_lifecycle's policy_id url part to be of type "list", in line with other REST API specs that accept a comma-separated list of values.

Closes #47765
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/REST API REST infrastructure and utilities
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants