Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

feat(http): add HTTP interfaces to query backup info #342

Merged
merged 124 commits into from
Dec 12, 2019

Conversation

Smityz
Copy link
Contributor

@Smityz Smityz commented Nov 27, 2019

add http interface to get envs for a specified app.
The request url is:

ip:port/meta/backup_policy?name={policy name}

for example, assuming that the meta server address is 127.0.0.1:34601, to get all the policy we set before, the request is :

http://127.0.0.1:34601/meta/backup_policy

output json:

{
    "policy123123": {
      "name":"policy123123", 
      "backup_provider_type":"local_service",
      "backup_interval":"300",
      "app_ids":"{1}",
      "start_time":"16:00",
      "status":"enabled",
      "backup_history_count":"3"
    }
}

@neverchanje neverchanje added the component/http HTTP/RESTful support label Dec 10, 2019
Comment on lines 84 to 85
dsn::error_code ec = _ms->remote_storage_initialize();
_ms->_started = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这两行代码不需要,在 meta_test_base::SetUp(); 执行过了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1.12.2 component/http HTTP/RESTful support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants