You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,137 +13,121 @@ This page explains how to manage Projects using [Scaleway APIs](https://www.scal
13
13
14
14
<Requirements />
15
15
16
-
- A Scaleway account logged into the [console](https://console.scaleway.com)
17
-
-[Configured your API keys](/iam/how-to/create-api-keys/)
18
-
- An API key with the [`IAMManager` or `ProjectManager` permission sets](/iam/reference-content/permission-sets/)
19
-
20
-
## Creating a Project
21
-
22
-
You need your secret key and your Organization ID for the step below.
23
-
24
-
Open a terminal and type the following command to create a Project. If you have not configured your environment in your local machine, make sure you replace `$SCW_SECRET_KEY` with your secret key and `$SCW_DEFAULT_ORGANIZATION_ID` with the ID of your Organization.
You need your secret key and the ID of the Project you want to update for the step below. For this use case, we are updating the Project created in the step above.
43
-
<Messagetype="note">
44
-
You can only update the name and description of your Project.
45
-
</Message>
46
-
Type the following command into your terminal to update your Project:
47
-
```
48
-
curl -XPATCH https://api.scaleway.com/account/v2/projects/<SCW_PROJECT_ID> -H 'X-Auth-Token: $SCW_SECRET_KEY' -d '{"name":"new-project", "description": "This is my updated project" }'
You need your secret key and the ID of the Project you want to get for the step below. For this use case, we are getting the Project we have updated in the [updating Projects step](/organizations-and-projects/api-cli/managing-projects/#updating-projects).
104
-
105
-
Type the following command to list a specific Project.
You need your secret key and the ID of the Project you want to delete for the step below. For this use case, we are deleting the Project we have created in the [creating a Project step](/organizations-and-projects/api-cli/managing-projects/#creating-a-project).
124
-
125
-
1. Type the following command to delete a Project.
16
+
- A [Scaleway account](https://console.scaleway.com/) and you know your Organization ID
17
+
- An [API key](https://www.scaleway.com/en/docs/iam/how-to/create-api-keys/) and that the API key has sufficient [IAM permissions](https://www.scaleway.com/en/docs/iam/reference-content/permission-sets/) to perform the actions described on this page
18
+
- Your [Organization ID](https://console.scaleway.com/organization/settings)
"description":"This is the description of my Project"
112
+
},
147
113
]
148
-
}
149
-
```
114
+
}
115
+
```
116
+
117
+
5. Run the following command to update a Project's name and description.
118
+
<Messagetype="note">
119
+
Do not forget to replace the Project ID in the endpoint, and the Organization ID in the payload, with your own. You can retrieve the Project ID from the "List Project" response above.
0 commit comments