Created
April 16, 2019 21:04
-
-
Save ilaif/847ad5e94fe53b11fb2bedbe9fa35c93 to your computer and use it in GitHub Desktop.
instrument-everything-blog-replace-instrumented-vcls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def delete_custom_vcl(service_id, version, name): | |
url = 'https://api.fastly.com/service/{}/version/{}/vcl/{}'.format(service_id, version, name) | |
response = requests.request('DELETE', url, headers={...}) | |
def create_custom_vcl(service_id, version, vcl_object): | |
url = 'https://api.fastly.com/service/{}/version/{}/vcl'.format(service_id, version) | |
response = requests.request('POST', url, headers={...}, data=urlencode(vcl_object)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment