https://pulumi.com logo
#python
Title
# python
s

steep-alligator-79173

08/28/2020, 8:33 PM
Copy code
repo_id = gitlab_repo.id.apply(lambda repo_id:
      <http://requests.post|requests.post>(f"<https://gitlab.com/api/v4/projects/{repo_id}/environments>",
        data={
          "name": "dev",
          "state": "available"
        },
        headers={
          "PRIVATE-TOKEN": "xxxxx"
        }
      )
    )