launchdarkly_api 3.3.2 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +177 -168
- data/docs/AccessTokensApi.md +333 -0
- data/docs/FeatureFlagsApi.md +2 -2
- data/docs/Token.md +22 -0
- data/docs/TokenBody.md +13 -0
- data/docs/Tokens.md +9 -0
- data/launchdarkly_api.gemspec +1 -1
- data/lib/launchdarkly_api.rb +5 -1
- data/lib/launchdarkly_api/api/access_tokens_api.rb +340 -0
- data/lib/launchdarkly_api/api/audit_log_api.rb +1 -1
- data/lib/launchdarkly_api/api/custom_roles_api.rb +1 -1
- data/lib/launchdarkly_api/api/customer_metrics_api.rb +1 -1
- data/lib/launchdarkly_api/api/data_export_destinations_api.rb +1 -1
- data/lib/launchdarkly_api/api/environments_api.rb +1 -1
- data/lib/launchdarkly_api/api/feature_flags_api.rb +3 -3
- data/lib/launchdarkly_api/api/projects_api.rb +1 -1
- data/lib/launchdarkly_api/api/root_api.rb +1 -1
- data/lib/launchdarkly_api/api/team_members_api.rb +1 -1
- data/lib/launchdarkly_api/api/user_segments_api.rb +1 -1
- data/lib/launchdarkly_api/api/user_settings_api.rb +1 -1
- data/lib/launchdarkly_api/api/users_api.rb +1 -1
- data/lib/launchdarkly_api/api/webhooks_api.rb +1 -1
- data/lib/launchdarkly_api/api_client.rb +1 -1
- data/lib/launchdarkly_api/api_error.rb +1 -1
- data/lib/launchdarkly_api/configuration.rb +1 -1
- data/lib/launchdarkly_api/models/audit_log_entries.rb +1 -1
- data/lib/launchdarkly_api/models/audit_log_entry.rb +1 -1
- data/lib/launchdarkly_api/models/audit_log_entry_target.rb +1 -1
- data/lib/launchdarkly_api/models/clause.rb +1 -1
- data/lib/launchdarkly_api/models/copy_actions.rb +1 -1
- data/lib/launchdarkly_api/models/custom_property.rb +1 -1
- data/lib/launchdarkly_api/models/custom_property_values.rb +1 -1
- data/lib/launchdarkly_api/models/custom_role.rb +1 -1
- data/lib/launchdarkly_api/models/custom_role_body.rb +1 -1
- data/lib/launchdarkly_api/models/custom_roles.rb +1 -1
- data/lib/launchdarkly_api/models/defaults.rb +1 -1
- data/lib/launchdarkly_api/models/destination.rb +1 -1
- data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +1 -1
- data/lib/launchdarkly_api/models/destination_body.rb +1 -1
- data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +1 -1
- data/lib/launchdarkly_api/models/destination_m_particle.rb +1 -1
- data/lib/launchdarkly_api/models/destination_segment.rb +1 -1
- data/lib/launchdarkly_api/models/destinations.rb +1 -1
- data/lib/launchdarkly_api/models/environment.rb +1 -1
- data/lib/launchdarkly_api/models/environment_post.rb +1 -1
- data/lib/launchdarkly_api/models/evaluation_usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/events.rb +1 -1
- data/lib/launchdarkly_api/models/fallthrough.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_body.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_config.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flag_statuses.rb +1 -1
- data/lib/launchdarkly_api/models/feature_flags.rb +1 -1
- data/lib/launchdarkly_api/models/flag_list_item.rb +1 -1
- data/lib/launchdarkly_api/models/id.rb +1 -1
- data/lib/launchdarkly_api/models/link.rb +1 -1
- data/lib/launchdarkly_api/models/links.rb +1 -1
- data/lib/launchdarkly_api/models/ma_uby_category.rb +1 -1
- data/lib/launchdarkly_api/models/mau.rb +1 -1
- data/lib/launchdarkly_api/models/mau_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/member.rb +1 -1
- data/lib/launchdarkly_api/models/members.rb +1 -1
- data/lib/launchdarkly_api/models/members_body.rb +1 -1
- data/lib/launchdarkly_api/models/patch_comment.rb +1 -1
- data/lib/launchdarkly_api/models/patch_operation.rb +1 -1
- data/lib/launchdarkly_api/models/policy.rb +1 -1
- data/lib/launchdarkly_api/models/prerequisite.rb +1 -1
- data/lib/launchdarkly_api/models/project.rb +1 -1
- data/lib/launchdarkly_api/models/project_body.rb +1 -1
- data/lib/launchdarkly_api/models/projects.rb +1 -1
- data/lib/launchdarkly_api/models/role.rb +1 -1
- data/lib/launchdarkly_api/models/rollout.rb +1 -1
- data/lib/launchdarkly_api/models/rule.rb +1 -1
- data/lib/launchdarkly_api/models/semantic_patch_operation.rb +1 -1
- data/lib/launchdarkly_api/models/semantic_patch_operation_instructions.rb +1 -1
- data/lib/launchdarkly_api/models/site.rb +1 -1
- data/lib/launchdarkly_api/models/statement.rb +1 -1
- data/lib/launchdarkly_api/models/stream.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_by_sdk_links_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/stream_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_sdk_version.rb +1 -1
- data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_links.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_metadata.rb +1 -1
- data/lib/launchdarkly_api/models/stream_usage_series.rb +1 -1
- data/lib/launchdarkly_api/models/streams.rb +1 -1
- data/lib/launchdarkly_api/models/target.rb +1 -1
- data/lib/launchdarkly_api/models/token.rb +322 -0
- data/lib/launchdarkly_api/models/token_body.rb +237 -0
- data/lib/launchdarkly_api/models/tokens.rb +194 -0
- data/lib/launchdarkly_api/models/usage.rb +1 -1
- data/lib/launchdarkly_api/models/usage_error.rb +1 -1
- data/lib/launchdarkly_api/models/usage_links.rb +1 -1
- data/lib/launchdarkly_api/models/user.rb +1 -1
- data/lib/launchdarkly_api/models/user_flag_setting.rb +1 -1
- data/lib/launchdarkly_api/models/user_flag_settings.rb +1 -1
- data/lib/launchdarkly_api/models/user_record.rb +1 -1
- data/lib/launchdarkly_api/models/user_segment.rb +1 -1
- data/lib/launchdarkly_api/models/user_segment_body.rb +1 -1
- data/lib/launchdarkly_api/models/user_segment_rule.rb +1 -1
- data/lib/launchdarkly_api/models/user_segments.rb +1 -1
- data/lib/launchdarkly_api/models/user_settings_body.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_flag.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_flags.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_for_segment.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_on_flags_for_user.rb +1 -1
- data/lib/launchdarkly_api/models/user_targeting_expiration_resource_id_for_flag.rb +1 -1
- data/lib/launchdarkly_api/models/users.rb +1 -1
- data/lib/launchdarkly_api/models/variation.rb +1 -1
- data/lib/launchdarkly_api/models/webhook.rb +1 -1
- data/lib/launchdarkly_api/models/webhook_body.rb +1 -1
- data/lib/launchdarkly_api/models/webhooks.rb +1 -1
- data/lib/launchdarkly_api/models/weighted_variation.rb +1 -1
- data/lib/launchdarkly_api/version.rb +2 -2
- data/openapi.yml +240 -3
- data/spec/api/access_tokens_api_spec.rb +103 -0
- data/spec/api/audit_log_api_spec.rb +1 -1
- data/spec/api/custom_roles_api_spec.rb +1 -1
- data/spec/api/customer_metrics_api_spec.rb +1 -1
- data/spec/api/data_export_destinations_api_spec.rb +1 -1
- data/spec/api/environments_api_spec.rb +1 -1
- data/spec/api/feature_flags_api_spec.rb +2 -2
- data/spec/api/projects_api_spec.rb +1 -1
- data/spec/api/root_api_spec.rb +1 -1
- data/spec/api/team_members_api_spec.rb +1 -1
- data/spec/api/user_segments_api_spec.rb +1 -1
- data/spec/api/user_settings_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +1 -1
- data/spec/api/webhooks_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/audit_log_entries_spec.rb +1 -1
- data/spec/models/audit_log_entry_spec.rb +1 -1
- data/spec/models/audit_log_entry_target_spec.rb +1 -1
- data/spec/models/clause_spec.rb +1 -1
- data/spec/models/copy_actions_spec.rb +1 -1
- data/spec/models/custom_property_spec.rb +1 -1
- data/spec/models/custom_property_values_spec.rb +1 -1
- data/spec/models/custom_role_body_spec.rb +1 -1
- data/spec/models/custom_role_spec.rb +1 -1
- data/spec/models/custom_roles_spec.rb +1 -1
- data/spec/models/defaults_spec.rb +1 -1
- data/spec/models/destination_amazon_kinesis_spec.rb +1 -1
- data/spec/models/destination_body_spec.rb +1 -1
- data/spec/models/destination_google_pub_sub_spec.rb +1 -1
- data/spec/models/destination_m_particle_spec.rb +1 -1
- data/spec/models/destination_segment_spec.rb +1 -1
- data/spec/models/destination_spec.rb +1 -1
- data/spec/models/destinations_spec.rb +1 -1
- data/spec/models/environment_post_spec.rb +1 -1
- data/spec/models/environment_spec.rb +1 -1
- data/spec/models/evaluation_usage_error_spec.rb +1 -1
- data/spec/models/events_spec.rb +1 -1
- data/spec/models/fallthrough_spec.rb +1 -1
- data/spec/models/feature_flag_body_spec.rb +1 -1
- data/spec/models/feature_flag_config_spec.rb +1 -1
- data/spec/models/feature_flag_copy_body_spec.rb +1 -1
- data/spec/models/feature_flag_copy_object_spec.rb +1 -1
- data/spec/models/feature_flag_spec.rb +1 -1
- data/spec/models/feature_flag_status_across_environments_spec.rb +1 -1
- data/spec/models/feature_flag_status_for_queried_environment_spec.rb +1 -1
- data/spec/models/feature_flag_status_spec.rb +1 -1
- data/spec/models/feature_flag_statuses_spec.rb +1 -1
- data/spec/models/feature_flags_spec.rb +1 -1
- data/spec/models/flag_list_item_spec.rb +1 -1
- data/spec/models/id_spec.rb +1 -1
- data/spec/models/link_spec.rb +1 -1
- data/spec/models/links_spec.rb +1 -1
- data/spec/models/ma_uby_category_spec.rb +1 -1
- data/spec/models/mau_metadata_spec.rb +1 -1
- data/spec/models/mau_spec.rb +1 -1
- data/spec/models/member_spec.rb +1 -1
- data/spec/models/members_body_spec.rb +1 -1
- data/spec/models/members_spec.rb +1 -1
- data/spec/models/patch_comment_spec.rb +1 -1
- data/spec/models/patch_operation_spec.rb +1 -1
- data/spec/models/policy_spec.rb +1 -1
- data/spec/models/prerequisite_spec.rb +1 -1
- data/spec/models/project_body_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/projects_spec.rb +1 -1
- data/spec/models/role_spec.rb +1 -1
- data/spec/models/rollout_spec.rb +1 -1
- data/spec/models/rule_spec.rb +1 -1
- data/spec/models/semantic_patch_operation_instructions_spec.rb +1 -1
- data/spec/models/semantic_patch_operation_spec.rb +1 -1
- data/spec/models/site_spec.rb +1 -1
- data/spec/models/statement_spec.rb +1 -1
- data/spec/models/stream_by_sdk_links_metadata_spec.rb +1 -1
- data/spec/models/stream_by_sdk_links_spec.rb +1 -1
- data/spec/models/stream_by_sdk_spec.rb +1 -1
- data/spec/models/stream_links_spec.rb +1 -1
- data/spec/models/stream_sdk_version_data_spec.rb +1 -1
- data/spec/models/stream_sdk_version_spec.rb +1 -1
- data/spec/models/stream_spec.rb +1 -1
- data/spec/models/stream_usage_error_spec.rb +1 -1
- data/spec/models/stream_usage_links_spec.rb +1 -1
- data/spec/models/stream_usage_metadata_spec.rb +1 -1
- data/spec/models/stream_usage_series_spec.rb +1 -1
- data/spec/models/streams_spec.rb +1 -1
- data/spec/models/target_spec.rb +1 -1
- data/spec/models/token_body_spec.rb +71 -0
- data/spec/models/token_spec.rb +125 -0
- data/spec/models/tokens_spec.rb +47 -0
- data/spec/models/usage_error_spec.rb +1 -1
- data/spec/models/usage_links_spec.rb +1 -1
- data/spec/models/usage_spec.rb +1 -1
- data/spec/models/user_flag_setting_spec.rb +1 -1
- data/spec/models/user_flag_settings_spec.rb +1 -1
- data/spec/models/user_record_spec.rb +1 -1
- data/spec/models/user_segment_body_spec.rb +1 -1
- data/spec/models/user_segment_rule_spec.rb +1 -1
- data/spec/models/user_segment_spec.rb +1 -1
- data/spec/models/user_segments_spec.rb +1 -1
- data/spec/models/user_settings_body_spec.rb +1 -1
- data/spec/models/user_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_flag_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_flags_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_for_segment_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_on_flags_for_user_spec.rb +1 -1
- data/spec/models/user_targeting_expiration_resource_id_for_flag_spec.rb +1 -1
- data/spec/models/users_spec.rb +1 -1
- data/spec/models/variation_spec.rb +1 -1
- data/spec/models/webhook_body_spec.rb +1 -1
- data/spec/models/webhook_spec.rb +1 -1
- data/spec/models/webhooks_spec.rb +1 -1
- data/spec/models/weighted_variation_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +99 -83
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Build custom integrations with the LaunchDarkly REST API
|
5
5
|
|
6
|
-
OpenAPI spec version: 3.
|
6
|
+
OpenAPI spec version: 3.4.0
|
7
7
|
Contact: support@launchdarkly.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.8
|
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.8
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module LaunchDarklyApi
|
14
|
-
VERSION = '3.
|
14
|
+
VERSION = '3.4.0'
|
15
15
|
end
|
data/openapi.yml
CHANGED
@@ -10,7 +10,7 @@ info:
|
|
10
10
|
license:
|
11
11
|
name: Apache 2.0
|
12
12
|
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
|
13
|
-
version: 3.
|
13
|
+
version: 3.4.0
|
14
14
|
host: app.launchdarkly.com
|
15
15
|
basePath: /api/v2
|
16
16
|
schemes:
|
@@ -1242,6 +1242,105 @@ paths:
|
|
1242
1242
|
$ref: '#/responses/EvaluationUsage404'
|
1243
1243
|
tags:
|
1244
1244
|
- Customer Metrics
|
1245
|
+
/tokens:
|
1246
|
+
get:
|
1247
|
+
summary: Returns a list of tokens in the account.
|
1248
|
+
operationId: getTokens
|
1249
|
+
parameters:
|
1250
|
+
- $ref: '#/parameters/TokenShowAllQuery'
|
1251
|
+
responses:
|
1252
|
+
'200':
|
1253
|
+
description: Tokens response.
|
1254
|
+
schema:
|
1255
|
+
$ref: '#/definitions/Tokens'
|
1256
|
+
'401':
|
1257
|
+
$ref: '#/responses/Standard401'
|
1258
|
+
tags:
|
1259
|
+
- Access tokens
|
1260
|
+
post:
|
1261
|
+
summary: Create a new token.
|
1262
|
+
operationId: postToken
|
1263
|
+
parameters:
|
1264
|
+
- $ref: '#/parameters/TokensPostRequest'
|
1265
|
+
responses:
|
1266
|
+
'201':
|
1267
|
+
description: Token response.
|
1268
|
+
schema:
|
1269
|
+
$ref: '#/definitions/Token'
|
1270
|
+
'400':
|
1271
|
+
$ref: '#/responses/Standard400'
|
1272
|
+
'401':
|
1273
|
+
$ref: '#/responses/Standard401'
|
1274
|
+
'409':
|
1275
|
+
$ref: '#/responses/Standard409'
|
1276
|
+
tags:
|
1277
|
+
- Access tokens
|
1278
|
+
'/tokens/{tokenId}':
|
1279
|
+
get:
|
1280
|
+
summary: Get a single access token by ID.
|
1281
|
+
operationId: getToken
|
1282
|
+
parameters:
|
1283
|
+
- $ref: '#/parameters/TokenId'
|
1284
|
+
responses:
|
1285
|
+
'200':
|
1286
|
+
$ref: '#/responses/Token2xx'
|
1287
|
+
'400':
|
1288
|
+
$ref: '#/responses/Standard400'
|
1289
|
+
'401':
|
1290
|
+
$ref: '#/responses/Standard401'
|
1291
|
+
tags:
|
1292
|
+
- Access tokens
|
1293
|
+
patch:
|
1294
|
+
summary: Modify an access tokenby ID.
|
1295
|
+
operationId: patchToken
|
1296
|
+
parameters:
|
1297
|
+
- $ref: '#/parameters/TokenId'
|
1298
|
+
- $ref: '#/parameters/PatchRequest'
|
1299
|
+
responses:
|
1300
|
+
'200':
|
1301
|
+
$ref: '#/responses/Token2xx'
|
1302
|
+
'400':
|
1303
|
+
$ref: '#/responses/Standard400'
|
1304
|
+
'401':
|
1305
|
+
$ref: '#/responses/Standard401'
|
1306
|
+
'404':
|
1307
|
+
$ref: '#/responses/Standard404'
|
1308
|
+
'409':
|
1309
|
+
$ref: '#/responses/Standard409'
|
1310
|
+
tags:
|
1311
|
+
- Access tokens
|
1312
|
+
delete:
|
1313
|
+
summary: Delete an access token by ID.
|
1314
|
+
operationId: deleteToken
|
1315
|
+
parameters:
|
1316
|
+
- $ref: '#/parameters/TokenId'
|
1317
|
+
responses:
|
1318
|
+
'204':
|
1319
|
+
$ref: '#/responses/Standard204'
|
1320
|
+
'401':
|
1321
|
+
$ref: '#/responses/Standard401'
|
1322
|
+
'404':
|
1323
|
+
$ref: '#/responses/Standard404'
|
1324
|
+
tags:
|
1325
|
+
- Access tokens
|
1326
|
+
'/tokens/{tokenId}/reset':
|
1327
|
+
post:
|
1328
|
+
summary: >-
|
1329
|
+
Reset an access token's secret key with an optional expiry time for the
|
1330
|
+
old key.
|
1331
|
+
operationId: resetToken
|
1332
|
+
parameters:
|
1333
|
+
- $ref: '#/parameters/TokenId'
|
1334
|
+
- $ref: '#/parameters/TokenExpiry'
|
1335
|
+
responses:
|
1336
|
+
'200':
|
1337
|
+
$ref: '#/responses/Token2xx'
|
1338
|
+
'400':
|
1339
|
+
$ref: '#/responses/Standard400'
|
1340
|
+
'401':
|
1341
|
+
$ref: '#/responses/Standard401'
|
1342
|
+
tags:
|
1343
|
+
- Access tokens
|
1245
1344
|
/:
|
1246
1345
|
get:
|
1247
1346
|
description: >-
|
@@ -2385,9 +2484,10 @@ definitions:
|
|
2385
2484
|
example: replace
|
2386
2485
|
path:
|
2387
2486
|
type: string
|
2388
|
-
example: /
|
2487
|
+
example: /name
|
2389
2488
|
value:
|
2390
2489
|
type: object
|
2490
|
+
example: My resource name
|
2391
2491
|
required:
|
2392
2492
|
- op
|
2393
2493
|
- path
|
@@ -2675,6 +2775,80 @@ definitions:
|
|
2675
2775
|
$ref: '#/definitions/Links'
|
2676
2776
|
_site:
|
2677
2777
|
$ref: '#/definitions/Site'
|
2778
|
+
Tokens:
|
2779
|
+
type: object
|
2780
|
+
properties:
|
2781
|
+
_links:
|
2782
|
+
$ref: '#/definitions/Links'
|
2783
|
+
items:
|
2784
|
+
type: array
|
2785
|
+
items:
|
2786
|
+
$ref: '#/definitions/Token'
|
2787
|
+
Token:
|
2788
|
+
type: object
|
2789
|
+
properties:
|
2790
|
+
_links:
|
2791
|
+
$ref: '#/definitions/Links'
|
2792
|
+
_id:
|
2793
|
+
$ref: '#/definitions/Id'
|
2794
|
+
ownerId:
|
2795
|
+
$ref: '#/definitions/Id'
|
2796
|
+
memberId:
|
2797
|
+
$ref: '#/definitions/Id'
|
2798
|
+
_member:
|
2799
|
+
$ref: '#/definitions/Member'
|
2800
|
+
creationDate:
|
2801
|
+
type: integer
|
2802
|
+
format: int64
|
2803
|
+
description: >-
|
2804
|
+
A unix epoch time in milliseconds specifying the creation time of this
|
2805
|
+
access token.
|
2806
|
+
example: 1443652232590
|
2807
|
+
lastModified:
|
2808
|
+
type: integer
|
2809
|
+
format: int64
|
2810
|
+
example: 1469326565348
|
2811
|
+
description: >-
|
2812
|
+
A unix epoch time in milliseconds specifying the last time this access
|
2813
|
+
token was modified.
|
2814
|
+
lastUsed:
|
2815
|
+
type: integer
|
2816
|
+
format: int64
|
2817
|
+
example: 1469326565348
|
2818
|
+
description: >-
|
2819
|
+
A unix epoch time in milliseconds specifying the last time this access
|
2820
|
+
token was used to authorize access to the LaunchDarkly REST API.
|
2821
|
+
token:
|
2822
|
+
type: string
|
2823
|
+
example: '3243'
|
2824
|
+
description: >-
|
2825
|
+
The last 4 digits of the unique secret key for this access token. If
|
2826
|
+
creating or resetting the token, this will be the full token secret.
|
2827
|
+
name:
|
2828
|
+
type: string
|
2829
|
+
description: A human-friendly name for the access token
|
2830
|
+
example: My access token
|
2831
|
+
role:
|
2832
|
+
type: string
|
2833
|
+
description: The name of a built-in role for the token
|
2834
|
+
example: writer
|
2835
|
+
customRoleIds:
|
2836
|
+
type: array
|
2837
|
+
items:
|
2838
|
+
type: string
|
2839
|
+
description: A list of custom role IDs to use as access limits for the access token
|
2840
|
+
inlineRole:
|
2841
|
+
type: array
|
2842
|
+
items:
|
2843
|
+
$ref: '#/definitions/Statement'
|
2844
|
+
serviceToken:
|
2845
|
+
type: boolean
|
2846
|
+
description: >-
|
2847
|
+
Whether the token will be a service token
|
2848
|
+
https://docs.launchdarkly.com/home/account-security/api-access-tokens#service-tokens
|
2849
|
+
defaultApiVersion:
|
2850
|
+
type: integer
|
2851
|
+
description: The default API version for this token
|
2678
2852
|
responses:
|
2679
2853
|
Standard201:
|
2680
2854
|
description: Resource created.
|
@@ -2734,6 +2908,10 @@ responses:
|
|
2734
2908
|
description: Destination response.
|
2735
2909
|
schema:
|
2736
2910
|
$ref: '#/definitions/Destination'
|
2911
|
+
Token2xx:
|
2912
|
+
description: Token response.
|
2913
|
+
schema:
|
2914
|
+
$ref: '#/definitions/Token'
|
2737
2915
|
parameters:
|
2738
2916
|
ResourceId:
|
2739
2917
|
name: resourceId
|
@@ -3009,7 +3187,7 @@ parameters:
|
|
3009
3187
|
in: query
|
3010
3188
|
required: false
|
3011
3189
|
description: >-
|
3012
|
-
When set to 1, archived flags will be included in the list of flags
|
3190
|
+
When set to 1, only archived flags will be included in the list of flags
|
3013
3191
|
returned. By default, archived flags are not included in the list of
|
3014
3192
|
flags.
|
3015
3193
|
type: boolean
|
@@ -3321,4 +3499,63 @@ parameters:
|
|
3321
3499
|
required: true
|
3322
3500
|
description: The key of the flag we want metrics for.
|
3323
3501
|
type: string
|
3502
|
+
TokensPostRequest:
|
3503
|
+
name: tokenBody
|
3504
|
+
in: body
|
3505
|
+
required: true
|
3506
|
+
description: Create a new access token.
|
3507
|
+
schema:
|
3508
|
+
type: object
|
3509
|
+
properties:
|
3510
|
+
name:
|
3511
|
+
type: string
|
3512
|
+
description: A human-friendly name for the access token
|
3513
|
+
example: My access token
|
3514
|
+
role:
|
3515
|
+
type: string
|
3516
|
+
description: The name of a built-in role for the token
|
3517
|
+
example: writer
|
3518
|
+
customRoleIds:
|
3519
|
+
type: array
|
3520
|
+
items:
|
3521
|
+
type: string
|
3522
|
+
example: []
|
3523
|
+
description: >-
|
3524
|
+
A list of custom role IDs to use as access limits for the access
|
3525
|
+
token
|
3526
|
+
inlineRole:
|
3527
|
+
type: array
|
3528
|
+
items:
|
3529
|
+
$ref: '#/definitions/Statement'
|
3530
|
+
serviceToken:
|
3531
|
+
type: boolean
|
3532
|
+
description: >-
|
3533
|
+
Whether the token will be a service token
|
3534
|
+
https://docs.launchdarkly.com/home/account-security/api-access-tokens#service-tokens
|
3535
|
+
defaultApiVersion:
|
3536
|
+
type: integer
|
3537
|
+
description: The default API version for this token
|
3538
|
+
TokenId:
|
3539
|
+
name: tokenId
|
3540
|
+
in: path
|
3541
|
+
required: true
|
3542
|
+
description: The access token ID.
|
3543
|
+
type: string
|
3544
|
+
TokenShowAllQuery:
|
3545
|
+
name: showAll
|
3546
|
+
in: query
|
3547
|
+
required: false
|
3548
|
+
description: >-
|
3549
|
+
If set to true, and the authentication access token has the "Admin" role,
|
3550
|
+
personal access tokens for all members will be retrieved.
|
3551
|
+
type: boolean
|
3552
|
+
TokenExpiry:
|
3553
|
+
name: expiry
|
3554
|
+
in: query
|
3555
|
+
required: false
|
3556
|
+
type: integer
|
3557
|
+
format: int64
|
3558
|
+
description: >-
|
3559
|
+
An expiration time for the old token key, expressed as a Unix epoch time
|
3560
|
+
in milliseconds. By default, the token will expire immediately.
|
3324
3561
|
|