Skip to content

Commit 33a44b6

Browse files
authored
Update README.md
1 parent 5b2b108 commit 33a44b6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ client = InfisicalSDKClient(host="https://app.infisical.com")
2222

2323
# Authenticate (example using Universal Auth)
2424
client.auth.universal_auth.login(
25-
client_id="Your machine identity client ID",
26-
client_secret="Your machine identity client secret"
25+
client_id="<machine-identity-client-id>",
26+
client_secret="<machine-identity-client-secret>"
2727
)
2828

2929
# Use the SDK to interact with Infisical
30-
secrets = client.secrets.listSecrets(project_id="your_project_id", environment_slug="dev", secret_path="/")
30+
secrets = client.secrets.listSecrets(project_id="<project-id>", environment_slug="dev", secret_path="/")
3131
```
3232

3333
### Accessing REST Endpoints
@@ -59,15 +59,15 @@ The `Auth` component provides methods for authentication:
5959

6060
```python
6161
response = client.auth.universal_auth.login(
62-
client_id="Your machine identity client ID",
63-
client_secret="Your machine identity client secret"
62+
client_id="<machine-identity-client-id>",
63+
client_secret="<machine-identity-client-secret>"
6464
)
6565
```
6666

6767
#### AWS Auth
6868

6969
```python
70-
response = client.auth.aws_auth.login(identity_id="your_identity_id")
70+
response = client.auth.aws_auth.login(identity_id="<machine-identity-id>")
7171
```
7272

7373
### `secrets`
@@ -78,7 +78,7 @@ This sub-class handles operations related to secrets:
7878

7979
```python
8080
secrets = client.secrets.list_secrets(
81-
project_id="your_project_id",
81+
project_id="<project-id>",
8282
environment_slug="dev",
8383
secret_path="/",
8484
expand_secret_references=True,
@@ -105,7 +105,7 @@ secrets = client.secrets.list_secrets(
105105
```python
106106
new_secret = client.secrets.create_secret_by_name(
107107
secret_name="NEW_SECRET",
108-
project_id="your_project_id",
108+
project_id="<project-id>",
109109
secret_path="/",
110110
environment_slug="dev",
111111
secret_value="secret_value",
@@ -135,7 +135,7 @@ new_secret = client.secrets.create_secret_by_name(
135135
```python
136136
updated_secret = client.secrets.update_secret_by_name(
137137
current_secret_name="EXISTING_SECRET",
138-
project_id="your_project_id",
138+
project_id="<project-id>",
139139
secret_path="/",
140140
environment_slug="dev",
141141
secret_value="new_secret_value",
@@ -167,7 +167,7 @@ updated_secret = client.secrets.update_secret_by_name(
167167
```python
168168
secret = client.secrets.get_secret_by_name(
169169
secret_name="EXISTING_SECRET",
170-
project_id="your_project_id",
170+
project_id="<project-id>",
171171
environment_slug="dev",
172172
secret_path="/",
173173
expand_secret_references=True,
@@ -193,7 +193,7 @@ secret = client.secrets.get_secret_by_name(
193193
```python
194194
deleted_secret = client.secrets.delete_secret_by_name(
195195
secret_name="EXISTING_SECRET",
196-
project_id="your_project_id",
196+
project_id="<project-id>",
197197
environment_slug="dev",
198198
secret_path="/"
199199
)

0 commit comments

Comments
 (0)