ibm_cloud_iam 1.0.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +202 -0
- data/README.md +548 -36
- data/docs/APIKeysApi.md +714 -0
- data/docs/AccessGroupCount.md +20 -0
- data/docs/AccountBasedMfaEnrollment.md +24 -0
- data/docs/AccountIdpSettings.md +32 -0
- data/docs/AccountLimitsApi.md +173 -0
- data/docs/AccountLoginSettings.md +18 -0
- data/docs/AccountSettingsApi.md +224 -0
- data/docs/AccountSettingsAssignedTemplatesSection.md +46 -0
- data/docs/AccountSettingsEffectiveSection.md +38 -0
- data/docs/AccountSettingsForIdPApi.md +489 -0
- data/docs/AccountSettingsMeta.md +24 -0
- data/docs/AccountSettingsRequest.md +40 -0
- data/docs/AccountSettingsResponse.md +48 -0
- data/docs/AccountSettingsTemplateApi.md +720 -0
- data/docs/AccountSettingsTemplateAssignmentsApi.md +376 -0
- data/docs/AccountSettingsTemplateList.md +30 -0
- data/docs/AccountSettingsTemplateRequest.md +24 -0
- data/docs/AccountSettingsTemplateResponse.md +44 -0
- data/docs/AccountSettingsUserDomainRestriction.md +22 -0
- data/docs/AccountSettingsUserMFAResponse.md +28 -0
- data/docs/ActionControls.md +22 -0
- data/docs/ActionControlsIdentities.md +20 -0
- data/docs/ActivitiesApi.md +149 -0
- data/docs/Activity.md +20 -0
- data/docs/AddAccountIdpSettingRequest.md +22 -0
- data/docs/ApiKey.md +44 -33
- data/docs/ApiKeyInsideCreateServiceIdRequest.md +18 -13
- data/docs/ApiKeyList.md +20 -19
- data/docs/ApikeyActivity.md +28 -0
- data/docs/ApikeyActivityServiceid.md +20 -0
- data/docs/ApikeyActivityUser.md +24 -0
- data/docs/AssignedTemplatesAccountSettings.md +40 -0
- data/docs/CommonAccountSettingsRequest.md +36 -0
- data/docs/CommonAccountSettingsResponse.md +34 -0
- data/docs/ConsumersResponse.md +20 -0
- data/docs/ConsumersResponseConsumersInner.md +20 -0
- data/docs/CreateApiKeyRequest.md +24 -17
- data/docs/CreateIdpRequest.md +30 -0
- data/docs/CreateIdpRequestProperties.md +20 -0
- data/docs/CreateIdpRequestPropertiesIdp.md +26 -0
- data/docs/CreateIdpRequestPropertiesSp.md +32 -0
- data/docs/CreateIdpRequestPropertiesSpAuthnContext.md +20 -0
- data/docs/CreateIdpRequestSecrets.md +20 -0
- data/docs/CreateIdpRequestSecretsIdp.md +22 -0
- data/docs/CreateIdpRequestSecretsIdpSigningInner.md +20 -0
- data/docs/CreateIdpRequestSecretsSp.md +18 -0
- data/docs/CreateIdpRequestSecretsSpSigningInner.md +24 -0
- data/docs/CreateProfileLinkRequest.md +24 -0
- data/docs/CreateProfileLinkRequestLink.md +26 -0
- data/docs/CreateServiceIdGroupRequest.md +22 -0
- data/docs/CreateServiceIdRequest.md +18 -15
- data/docs/CreateTemplateAssignmentRequest.md +24 -0
- data/docs/CreateTrustedProfileRequest.md +24 -0
- data/docs/EffectiveAccountSettingsResponse.md +26 -0
- data/docs/EnityHistoryRecord.md +18 -17
- data/docs/EntityActivity.md +22 -0
- data/docs/Error.md +14 -13
- data/docs/ExceptionResponse.md +14 -13
- data/docs/ExceptionResponseContext.md +30 -29
- data/docs/IDPManagementApi.md +692 -0
- data/docs/IdBasedMfaEnrollment.md +26 -0
- data/docs/IdentityCount.md +20 -0
- data/docs/IdentityLimitsUsageRequest.md +42 -0
- data/docs/IdentityLimitsUsageResponse.md +44 -0
- data/docs/IdentityLimitsUsageResponseApikeysPerIdentity.md +20 -0
- data/docs/IdentityLimitsUsageResponseClaimRulesPerGroup.md +20 -0
- data/docs/IdentityLimitsUsageResponseClaimRulesPerProfile.md +20 -0
- data/docs/IdentityLimitsUsageResponseServiceidsPerGroup.md +20 -0
- data/docs/IdentityLimitsUsageResponseTemplateVersionsPerTemplate.md +20 -0
- data/docs/IdentityPreferenceResponse.md +28 -0
- data/docs/IdentityPreferencesApi.md +304 -0
- data/docs/IdentityPreferencesResponse.md +18 -0
- data/docs/Idp.md +38 -0
- data/docs/LimitCount.md +20 -0
- data/docs/ListIdPSettings200Response.md +18 -0
- data/docs/ListIdps200Response.md +18 -0
- data/docs/MFAEnrollmentStatusApi.md +216 -0
- data/docs/MFARequirementsResponse.md +12 -11
- data/docs/MfaEnrollmentTypeStatus.md +20 -0
- data/docs/MfaOptions.md +15 -0
- data/docs/OidcExceptionResponse.md +16 -15
- data/docs/PolicyTemplateReference.md +20 -0
- data/docs/ProfileClaimRule.md +36 -0
- data/docs/ProfileClaimRuleConditions.md +22 -0
- data/docs/ProfileClaimRuleList.md +20 -0
- data/docs/ProfileClaimRuleRequest.md +30 -0
- data/docs/ProfileCount.md +20 -0
- data/docs/ProfileIdentitiesResponse.md +20 -0
- data/docs/ProfileIdentitiesUpdateRequest.md +18 -0
- data/docs/ProfileIdentityRequest.md +24 -0
- data/docs/ProfileIdentityResponse.md +26 -0
- data/docs/ProfileLink.md +32 -0
- data/docs/ProfileLinkLink.md +26 -0
- data/docs/ProfileLinkList.md +18 -0
- data/docs/Report.md +34 -0
- data/docs/ReportMfaEnrollmentStatus.md +28 -0
- data/docs/ReportReference.md +18 -0
- data/docs/ResponseContext.md +28 -27
- data/docs/RetrictActions.md +15 -0
- data/docs/SamlMetadataImportResponse.md +42 -0
- data/docs/ServiceIDGroupsApi.md +347 -0
- data/docs/ServiceIDsApi.md +515 -0
- data/docs/ServiceId.md +38 -33
- data/docs/ServiceIdGroup.md +34 -0
- data/docs/ServiceIdGroupCount.md +20 -0
- data/docs/ServiceIdGroupList.md +18 -0
- data/docs/ServiceIdList.md +20 -19
- data/docs/ShareScope.md +20 -0
- data/docs/TemplateAccountSettings.md +40 -0
- data/docs/TemplateAccountSettingsAllOfRestrictUserDomains.md +20 -0
- data/docs/TemplateAssignmentListResponse.md +30 -0
- data/docs/TemplateAssignmentResource.md +18 -0
- data/docs/TemplateAssignmentResourceError.md +24 -0
- data/docs/TemplateAssignmentResponse.md +48 -0
- data/docs/TemplateAssignmentResponseResource.md +24 -0
- data/docs/TemplateAssignmentResponseResourceDetail.md +26 -0
- data/docs/TemplateCount.md +20 -0
- data/docs/TemplateProfileComponentRequest.md +26 -0
- data/docs/TemplateProfileComponentResponse.md +26 -0
- data/docs/TestResult.md +28 -0
- data/docs/TestResultStepsInner.md +24 -0
- data/docs/TestTriggerResponse.md +20 -0
- data/docs/TokenResponse.md +18 -17
- data/docs/TokenRetrievalApi.md +461 -0
- data/docs/TrustedProfile.md +50 -0
- data/docs/TrustedProfileTemplateApi.md +720 -0
- data/docs/TrustedProfileTemplateAssignmentsApi.md +376 -0
- data/docs/TrustedProfileTemplateClaimRule.md +26 -0
- data/docs/TrustedProfileTemplateList.md +30 -0
- data/docs/TrustedProfileTemplateRequest.md +28 -0
- data/docs/TrustedProfileTemplateResponse.md +48 -0
- data/docs/TrustedProfilesApi.md +1414 -0
- data/docs/TrustedProfilesList.md +30 -0
- data/docs/UpdateAccountIdpSettingRequest.md +22 -0
- data/docs/UpdateAccountLoginSettings.md +18 -0
- data/docs/UpdateApiKeyRequest.md +16 -9
- data/docs/UpdateIdPRequest.md +28 -0
- data/docs/UpdateIdPRequestProperties.md +20 -0
- data/docs/UpdateIdPRequestPropertiesIdp.md +24 -0
- data/docs/UpdateIdPRequestSecrets.md +20 -0
- data/docs/UpdateIdPRequestSecretsIdp.md +20 -0
- data/docs/UpdatePreferenceRequest.md +20 -0
- data/docs/UpdateServiceIdGroupRequest.md +20 -0
- data/docs/UpdateServiceIdRequest.md +12 -11
- data/docs/UpdateTemplateAssignmentRequest.md +18 -0
- data/docs/UpdateTrustedProfileRequest.md +22 -0
- data/docs/UserActivity.md +26 -0
- data/docs/UserMFAResolved.md +24 -0
- data/docs/UserMfa.md +20 -0
- data/docs/UserMfaEnrollments.md +24 -0
- data/docs/UserReportMfaEnrollmentStatus.md +30 -0
- data/docs/UserVisbilityRetrictActions.md +15 -0
- data/docs/UserVisbilityRetrictActionsForTemplate.md +15 -0
- data/git_push.sh +3 -4
- data/ibm_cloud_iam.gemspec +6 -5
- data/lib/ibm_cloud_iam/api/account_limits_api.rb +208 -0
- data/lib/ibm_cloud_iam/api/account_settings_api.rb +262 -0
- data/lib/ibm_cloud_iam/api/account_settings_for_id_p_api.rb +571 -0
- data/lib/ibm_cloud_iam/api/account_settings_template_api.rb +823 -0
- data/lib/ibm_cloud_iam/api/account_settings_template_assignments_api.rb +422 -0
- data/lib/ibm_cloud_iam/api/activities_api.rb +174 -0
- data/lib/ibm_cloud_iam/api/api_keys_api.rb +786 -0
- data/lib/ibm_cloud_iam/api/identity_preferences_api.rb +357 -0
- data/lib/ibm_cloud_iam/api/idp_management_api.rb +744 -0
- data/lib/ibm_cloud_iam/api/mfa_enrollment_status_api.rb +248 -0
- data/lib/ibm_cloud_iam/api/service_id_groups_api.rb +392 -0
- data/lib/ibm_cloud_iam/api/service_ids_api.rb +575 -0
- data/lib/ibm_cloud_iam/api/token_retrieval_api.rb +557 -0
- data/lib/ibm_cloud_iam/api/trusted_profile_template_api.rb +823 -0
- data/lib/ibm_cloud_iam/api/trusted_profile_template_assignments_api.rb +422 -0
- data/lib/ibm_cloud_iam/api/trusted_profiles_api.rb +1630 -0
- data/lib/ibm_cloud_iam/api_client.rb +74 -65
- data/lib/ibm_cloud_iam/api_error.rb +4 -3
- data/lib/ibm_cloud_iam/api_model_base.rb +88 -0
- data/lib/ibm_cloud_iam/configuration.rb +75 -15
- data/lib/ibm_cloud_iam/models/access_group_count.rb +159 -0
- data/lib/ibm_cloud_iam/models/account_based_mfa_enrollment.rb +243 -0
- data/lib/ibm_cloud_iam/models/account_idp_settings.rb +244 -0
- data/lib/ibm_cloud_iam/models/account_login_settings.rb +147 -0
- data/lib/ibm_cloud_iam/models/account_settings_assigned_templates_section.rb +377 -0
- data/lib/ibm_cloud_iam/models/account_settings_effective_section.rb +282 -0
- data/lib/ibm_cloud_iam/models/account_settings_meta.rb +179 -0
- data/lib/ibm_cloud_iam/models/account_settings_request.rb +301 -0
- data/lib/ibm_cloud_iam/models/account_settings_response.rb +567 -0
- data/lib/ibm_cloud_iam/models/account_settings_template_list.rb +256 -0
- data/lib/ibm_cloud_iam/models/account_settings_template_request.rb +178 -0
- data/lib/ibm_cloud_iam/models/account_settings_template_response.rb +416 -0
- data/lib/ibm_cloud_iam/models/account_settings_user_domain_restriction.rb +188 -0
- data/lib/ibm_cloud_iam/models/account_settings_user_mfa_response.rb +261 -0
- data/lib/ibm_cloud_iam/models/action_controls.rb +199 -0
- data/lib/ibm_cloud_iam/models/action_controls_identities.rb +190 -0
- data/lib/ibm_cloud_iam/models/activity.rb +175 -0
- data/lib/ibm_cloud_iam/models/add_account_idp_setting_request.rb +243 -0
- data/lib/ibm_cloud_iam/models/api_key.rb +188 -104
- data/lib/ibm_cloud_iam/models/api_key_inside_create_service_id_request.rb +70 -99
- data/lib/ibm_cloud_iam/models/api_key_list.rb +46 -95
- data/lib/ibm_cloud_iam/models/apikey_activity.rb +231 -0
- data/lib/ibm_cloud_iam/models/apikey_activity_serviceid.rb +159 -0
- data/lib/ibm_cloud_iam/models/apikey_activity_user.rb +179 -0
- data/lib/ibm_cloud_iam/models/assigned_templates_account_settings.rb +296 -0
- data/lib/ibm_cloud_iam/models/common_account_settings_request.rb +272 -0
- data/lib/ibm_cloud_iam/models/common_account_settings_response.rb +260 -0
- data/lib/ibm_cloud_iam/models/consumers_response.rb +158 -0
- data/lib/ibm_cloud_iam/models/consumers_response_consumers_inner.rb +158 -0
- data/lib/ibm_cloud_iam/models/create_api_key_request.rb +92 -99
- data/lib/ibm_cloud_iam/models/create_idp_request.rb +283 -0
- data/lib/ibm_cloud_iam/models/create_idp_request_properties.rb +157 -0
- data/lib/ibm_cloud_iam/models/create_idp_request_properties_idp.rb +189 -0
- data/lib/ibm_cloud_iam/models/create_idp_request_properties_sp.rb +222 -0
- data/lib/ibm_cloud_iam/models/create_idp_request_properties_sp_authn_context.rb +163 -0
- data/lib/ibm_cloud_iam/models/create_idp_request_secrets.rb +157 -0
- data/lib/ibm_cloud_iam/models/create_idp_request_secrets_idp.rb +173 -0
- data/lib/ibm_cloud_iam/models/create_idp_request_secrets_idp_signing_inner.rb +192 -0
- data/lib/ibm_cloud_iam/models/create_idp_request_secrets_sp.rb +151 -0
- data/lib/ibm_cloud_iam/models/create_idp_request_secrets_sp_signing_inner.rb +212 -0
- data/lib/ibm_cloud_iam/models/create_profile_link_request.rb +211 -0
- data/lib/ibm_cloud_iam/models/create_profile_link_request_link.rb +206 -0
- data/lib/ibm_cloud_iam/models/create_service_id_group_request.rb +203 -0
- data/lib/ibm_cloud_iam/models/create_service_id_request.rb +68 -95
- data/lib/ibm_cloud_iam/models/create_template_assignment_request.rb +280 -0
- data/lib/ibm_cloud_iam/models/create_trusted_profile_request.rb +213 -0
- data/lib/ibm_cloud_iam/models/effective_account_settings_response.rb +239 -0
- data/lib/ibm_cloud_iam/models/enity_history_record.rb +112 -101
- data/lib/ibm_cloud_iam/models/entity_activity.rb +185 -0
- data/lib/ibm_cloud_iam/models/error.rb +69 -94
- data/lib/ibm_cloud_iam/models/exception_response.rb +57 -94
- data/lib/ibm_cloud_iam/models/exception_response_context.rb +33 -94
- data/lib/ibm_cloud_iam/models/id_based_mfa_enrollment.rb +270 -0
- data/lib/ibm_cloud_iam/models/identity_count.rb +159 -0
- data/lib/ibm_cloud_iam/models/identity_limits_usage_request.rb +283 -0
- data/lib/ibm_cloud_iam/models/identity_limits_usage_response.rb +265 -0
- data/lib/ibm_cloud_iam/models/identity_limits_usage_response_apikeys_per_identity.rb +178 -0
- data/lib/ibm_cloud_iam/models/identity_limits_usage_response_claim_rules_per_group.rb +178 -0
- data/lib/ibm_cloud_iam/models/identity_limits_usage_response_claim_rules_per_profile.rb +178 -0
- data/lib/ibm_cloud_iam/models/identity_limits_usage_response_serviceids_per_group.rb +178 -0
- data/lib/ibm_cloud_iam/models/identity_limits_usage_response_template_versions_per_template.rb +178 -0
- data/lib/ibm_cloud_iam/models/identity_preference_response.rb +200 -0
- data/lib/ibm_cloud_iam/models/identity_preferences_response.rb +167 -0
- data/lib/ibm_cloud_iam/models/idp.rb +239 -0
- data/lib/ibm_cloud_iam/models/limit_count.rb +176 -0
- data/lib/ibm_cloud_iam/models/list_id_p_settings200_response.rb +149 -0
- data/lib/ibm_cloud_iam/models/list_idps200_response.rb +149 -0
- data/lib/ibm_cloud_iam/models/mfa_enrollment_type_status.rb +192 -0
- data/lib/ibm_cloud_iam/models/mfa_options.rb +45 -0
- data/lib/ibm_cloud_iam/models/mfa_requirements_response.rb +69 -94
- data/lib/ibm_cloud_iam/models/oidc_exception_response.rb +57 -94
- data/lib/ibm_cloud_iam/models/policy_template_reference.rb +193 -0
- data/lib/ibm_cloud_iam/models/profile_claim_rule.rb +342 -0
- data/lib/ibm_cloud_iam/models/profile_claim_rule_conditions.rb +219 -0
- data/lib/ibm_cloud_iam/models/profile_claim_rule_list.rb +176 -0
- data/lib/ibm_cloud_iam/models/profile_claim_rule_request.rb +243 -0
- data/lib/ibm_cloud_iam/models/profile_count.rb +159 -0
- data/lib/ibm_cloud_iam/models/profile_identities_response.rb +160 -0
- data/lib/ibm_cloud_iam/models/profile_identities_update_request.rb +150 -0
- data/lib/ibm_cloud_iam/models/profile_identity_request.rb +238 -0
- data/lib/ibm_cloud_iam/models/profile_identity_response.rb +265 -0
- data/lib/ibm_cloud_iam/models/profile_link.rb +320 -0
- data/lib/ibm_cloud_iam/models/profile_link_link.rb +188 -0
- data/lib/ibm_cloud_iam/models/profile_link_list.rb +167 -0
- data/lib/ibm_cloud_iam/models/report.rb +321 -0
- data/lib/ibm_cloud_iam/models/report_mfa_enrollment_status.rb +268 -0
- data/lib/ibm_cloud_iam/models/report_reference.rb +165 -0
- data/lib/ibm_cloud_iam/models/response_context.rb +33 -94
- data/lib/ibm_cloud_iam/models/retrict_actions.rb +41 -0
- data/lib/ibm_cloud_iam/models/saml_metadata_import_response.rb +494 -0
- data/lib/ibm_cloud_iam/models/service_id.rb +184 -108
- data/lib/ibm_cloud_iam/models/service_id_group.rb +313 -0
- data/lib/ibm_cloud_iam/models/service_id_group_count.rb +159 -0
- data/lib/ibm_cloud_iam/models/service_id_group_list.rb +167 -0
- data/lib/ibm_cloud_iam/models/service_id_list.rb +47 -96
- data/lib/ibm_cloud_iam/models/share_scope.rb +190 -0
- data/lib/ibm_cloud_iam/models/template_account_settings.rb +296 -0
- data/lib/ibm_cloud_iam/models/template_account_settings_all_of_restrict_user_domains.rb +159 -0
- data/lib/ibm_cloud_iam/models/template_assignment_list_response.rb +227 -0
- data/lib/ibm_cloud_iam/models/template_assignment_resource.rb +149 -0
- data/lib/ibm_cloud_iam/models/template_assignment_resource_error.rb +179 -0
- data/lib/ibm_cloud_iam/models/template_assignment_response.rb +506 -0
- data/lib/ibm_cloud_iam/models/template_assignment_response_resource.rb +196 -0
- data/lib/ibm_cloud_iam/models/template_assignment_response_resource_detail.rb +203 -0
- data/lib/ibm_cloud_iam/models/template_count.rb +159 -0
- data/lib/ibm_cloud_iam/models/template_profile_component_request.rb +210 -0
- data/lib/ibm_cloud_iam/models/template_profile_component_response.rb +210 -0
- data/lib/ibm_cloud_iam/models/test_result.rb +194 -0
- data/lib/ibm_cloud_iam/models/test_result_steps_inner.rb +174 -0
- data/lib/ibm_cloud_iam/models/test_trigger_response.rb +156 -0
- data/lib/ibm_cloud_iam/models/token_response.rb +33 -94
- data/lib/ibm_cloud_iam/models/trusted_profile.rb +411 -0
- data/lib/ibm_cloud_iam/models/trusted_profile_template_claim_rule.rb +248 -0
- data/lib/ibm_cloud_iam/models/trusted_profile_template_list.rb +256 -0
- data/lib/ibm_cloud_iam/models/trusted_profile_template_request.rb +199 -0
- data/lib/ibm_cloud_iam/models/trusted_profile_template_response.rb +369 -0
- data/lib/ibm_cloud_iam/models/trusted_profiles_list.rb +227 -0
- data/lib/ibm_cloud_iam/models/update_account_idp_setting_request.rb +202 -0
- data/lib/ibm_cloud_iam/models/update_account_login_settings.rb +148 -0
- data/lib/ibm_cloud_iam/models/update_api_key_request.rb +68 -99
- data/lib/ibm_cloud_iam/models/update_id_p_request.rb +198 -0
- data/lib/ibm_cloud_iam/models/update_id_p_request_properties.rb +157 -0
- data/lib/ibm_cloud_iam/models/update_id_p_request_properties_idp.rb +179 -0
- data/lib/ibm_cloud_iam/models/update_id_p_request_secrets.rb +157 -0
- data/lib/ibm_cloud_iam/models/update_id_p_request_secrets_idp.rb +163 -0
- data/lib/ibm_cloud_iam/models/update_preference_request.rb +161 -0
- data/lib/ibm_cloud_iam/models/update_service_id_group_request.rb +176 -0
- data/lib/ibm_cloud_iam/models/update_service_id_request.rb +34 -95
- data/lib/ibm_cloud_iam/models/update_template_assignment_request.rb +175 -0
- data/lib/ibm_cloud_iam/models/update_trusted_profile_request.rb +169 -0
- data/lib/ibm_cloud_iam/models/user_activity.rb +222 -0
- data/lib/ibm_cloud_iam/models/user_mfa.rb +179 -0
- data/lib/ibm_cloud_iam/models/user_mfa_enrollments.rb +193 -0
- data/lib/ibm_cloud_iam/models/user_mfa_resolved.rb +178 -0
- data/lib/ibm_cloud_iam/models/user_report_mfa_enrollment_status.rb +291 -0
- data/lib/ibm_cloud_iam/models/user_visbility_retrict_actions.rb +40 -0
- data/lib/ibm_cloud_iam/models/user_visbility_retrict_actions_for_template.rb +41 -0
- data/lib/ibm_cloud_iam/version.rb +4 -4
- data/lib/ibm_cloud_iam.rb +140 -9
- data/spec/api/account_limits_api_spec.rb +75 -0
- data/spec/api/account_settings_api_spec.rb +80 -0
- data/spec/api/account_settings_for_id_p_api_spec.rb +132 -0
- data/spec/api/account_settings_template_api_spec.rb +184 -0
- data/spec/api/account_settings_template_assignments_api_spec.rb +112 -0
- data/spec/api/activities_api_spec.rb +64 -0
- data/spec/api/api_keys_api_spec.rb +182 -0
- data/spec/api/identity_preferences_api_spec.rb +98 -0
- data/spec/api/idp_management_api_spec.rb +166 -0
- data/spec/api/mfa_enrollment_status_api_spec.rb +77 -0
- data/spec/api/service_id_groups_api_spec.rb +102 -0
- data/spec/api/service_ids_api_spec.rb +143 -0
- data/spec/api/token_retrieval_api_spec.rb +134 -0
- data/spec/api/trusted_profile_template_api_spec.rb +184 -0
- data/spec/api/trusted_profile_template_assignments_api_spec.rb +112 -0
- data/spec/api/trusted_profiles_api_spec.rb +328 -0
- data/spec/models/access_group_count_spec.rb +42 -0
- data/spec/models/account_based_mfa_enrollment_spec.rb +54 -0
- data/spec/models/account_idp_settings_spec.rb +82 -0
- data/spec/models/account_login_settings_spec.rb +36 -0
- data/spec/models/account_settings_assigned_templates_section_spec.rb +120 -0
- data/spec/models/account_settings_effective_section_spec.rb +96 -0
- data/spec/models/account_settings_meta_spec.rb +54 -0
- data/spec/models/account_settings_request_spec.rb +102 -0
- data/spec/models/account_settings_response_spec.rb +126 -0
- data/spec/models/account_settings_template_list_spec.rb +72 -0
- data/spec/models/account_settings_template_request_spec.rb +54 -0
- data/spec/models/account_settings_template_response_spec.rb +114 -0
- data/spec/models/account_settings_user_domain_restriction_spec.rb +48 -0
- data/spec/models/account_settings_user_mfa_response_spec.rb +66 -0
- data/spec/models/action_controls_identities_spec.rb +42 -0
- data/spec/models/action_controls_spec.rb +48 -0
- data/spec/models/activity_spec.rb +42 -0
- data/spec/models/add_account_idp_setting_request_spec.rb +52 -0
- data/spec/models/api_key_inside_create_service_id_request_spec.rb +24 -17
- data/spec/models/api_key_list_spec.rb +15 -20
- data/spec/models/api_key_spec.rb +52 -27
- data/spec/models/apikey_activity_serviceid_spec.rb +42 -0
- data/spec/models/apikey_activity_spec.rb +66 -0
- data/spec/models/apikey_activity_user_spec.rb +54 -0
- data/spec/models/assigned_templates_account_settings_spec.rb +102 -0
- data/spec/models/common_account_settings_request_spec.rb +90 -0
- data/spec/models/common_account_settings_response_spec.rb +84 -0
- data/spec/models/consumers_response_consumers_inner_spec.rb +42 -0
- data/spec/models/consumers_response_spec.rb +42 -0
- data/spec/models/create_api_key_request_spec.rb +32 -19
- data/spec/models/create_idp_request_properties_idp_spec.rb +60 -0
- data/spec/models/create_idp_request_properties_sp_authn_context_spec.rb +42 -0
- data/spec/models/create_idp_request_properties_sp_spec.rb +78 -0
- data/spec/models/create_idp_request_properties_spec.rb +42 -0
- data/spec/models/create_idp_request_secrets_idp_signing_inner_spec.rb +46 -0
- data/spec/models/create_idp_request_secrets_idp_spec.rb +48 -0
- data/spec/models/create_idp_request_secrets_sp_signing_inner_spec.rb +58 -0
- data/spec/models/create_idp_request_secrets_sp_spec.rb +36 -0
- data/spec/models/create_idp_request_secrets_spec.rb +42 -0
- data/spec/models/create_idp_request_spec.rb +76 -0
- data/spec/models/create_profile_link_request_link_spec.rb +60 -0
- data/spec/models/create_profile_link_request_spec.rb +54 -0
- data/spec/models/create_service_id_group_request_spec.rb +48 -0
- data/spec/models/create_service_id_request_spec.rb +19 -18
- data/spec/models/create_template_assignment_request_spec.rb +58 -0
- data/spec/models/create_trusted_profile_request_spec.rb +54 -0
- data/spec/models/effective_account_settings_response_spec.rb +60 -0
- data/spec/models/enity_history_record_spec.rb +14 -19
- data/spec/models/entity_activity_spec.rb +48 -0
- data/spec/models/error_spec.rb +12 -17
- data/spec/models/exception_response_context_spec.rb +20 -25
- data/spec/models/exception_response_spec.rb +12 -17
- data/spec/models/id_based_mfa_enrollment_spec.rb +64 -0
- data/spec/models/identity_count_spec.rb +42 -0
- data/spec/models/identity_limits_usage_request_spec.rb +108 -0
- data/spec/models/identity_limits_usage_response_apikeys_per_identity_spec.rb +42 -0
- data/spec/models/identity_limits_usage_response_claim_rules_per_group_spec.rb +42 -0
- data/spec/models/identity_limits_usage_response_claim_rules_per_profile_spec.rb +42 -0
- data/spec/models/identity_limits_usage_response_serviceids_per_group_spec.rb +42 -0
- data/spec/models/identity_limits_usage_response_spec.rb +114 -0
- data/spec/models/identity_limits_usage_response_template_versions_per_template_spec.rb +42 -0
- data/spec/models/identity_preference_response_spec.rb +66 -0
- data/spec/models/identity_preferences_response_spec.rb +36 -0
- data/spec/models/idp_spec.rb +96 -0
- data/spec/models/limit_count_spec.rb +42 -0
- data/spec/models/list_id_p_settings200_response_spec.rb +36 -0
- data/spec/models/list_idps200_response_spec.rb +36 -0
- data/spec/models/mfa_enrollment_type_status_spec.rb +42 -0
- data/spec/models/mfa_options_spec.rb +30 -0
- data/spec/models/mfa_requirements_response_spec.rb +11 -16
- data/spec/models/oidc_exception_response_spec.rb +13 -18
- data/spec/models/policy_template_reference_spec.rb +42 -0
- data/spec/models/profile_claim_rule_conditions_spec.rb +48 -0
- data/spec/models/profile_claim_rule_list_spec.rb +42 -0
- data/spec/models/profile_claim_rule_request_spec.rb +72 -0
- data/spec/models/profile_claim_rule_spec.rb +90 -0
- data/spec/models/profile_count_spec.rb +42 -0
- data/spec/models/profile_identities_response_spec.rb +42 -0
- data/spec/models/profile_identities_update_request_spec.rb +36 -0
- data/spec/models/profile_identity_request_spec.rb +58 -0
- data/spec/models/profile_identity_response_spec.rb +64 -0
- data/spec/models/profile_link_link_spec.rb +60 -0
- data/spec/models/profile_link_list_spec.rb +36 -0
- data/spec/models/profile_link_spec.rb +78 -0
- data/spec/models/report_mfa_enrollment_status_spec.rb +66 -0
- data/spec/models/report_reference_spec.rb +36 -0
- data/spec/models/report_spec.rb +84 -0
- data/spec/models/response_context_spec.rb +19 -24
- data/spec/models/retrict_actions_spec.rb +30 -0
- data/spec/models/saml_metadata_import_response_spec.rb +112 -0
- data/spec/models/service_id_group_count_spec.rb +42 -0
- data/spec/models/service_id_group_list_spec.rb +36 -0
- data/spec/models/service_id_group_spec.rb +84 -0
- data/spec/models/service_id_list_spec.rb +15 -20
- data/spec/models/service_id_spec.rb +34 -27
- data/spec/models/share_scope_spec.rb +46 -0
- data/spec/models/template_account_settings_all_of_restrict_user_domains_spec.rb +42 -0
- data/spec/models/template_account_settings_spec.rb +102 -0
- data/spec/models/template_assignment_list_response_spec.rb +72 -0
- data/spec/models/template_assignment_resource_error_spec.rb +54 -0
- data/spec/models/template_assignment_resource_spec.rb +36 -0
- data/spec/models/template_assignment_response_resource_detail_spec.rb +60 -0
- data/spec/models/template_assignment_response_resource_spec.rb +54 -0
- data/spec/models/template_assignment_response_spec.rb +126 -0
- data/spec/models/template_count_spec.rb +42 -0
- data/spec/models/template_profile_component_request_spec.rb +60 -0
- data/spec/models/template_profile_component_response_spec.rb +60 -0
- data/spec/models/test_result_spec.rb +66 -0
- data/spec/models/test_result_steps_inner_spec.rb +54 -0
- data/spec/models/test_trigger_response_spec.rb +42 -0
- data/spec/models/token_response_spec.rb +14 -19
- data/spec/models/trusted_profile_spec.rb +132 -0
- data/spec/models/trusted_profile_template_claim_rule_spec.rb +64 -0
- data/spec/models/trusted_profile_template_list_spec.rb +72 -0
- data/spec/models/trusted_profile_template_request_spec.rb +66 -0
- data/spec/models/trusted_profile_template_response_spec.rb +126 -0
- data/spec/models/trusted_profiles_list_spec.rb +72 -0
- data/spec/models/update_account_idp_setting_request_spec.rb +52 -0
- data/spec/models/update_account_login_settings_spec.rb +36 -0
- data/spec/models/update_api_key_request_spec.rb +28 -15
- data/spec/models/update_id_p_request_properties_idp_spec.rb +54 -0
- data/spec/models/update_id_p_request_properties_spec.rb +42 -0
- data/spec/models/update_id_p_request_secrets_idp_spec.rb +42 -0
- data/spec/models/update_id_p_request_secrets_spec.rb +42 -0
- data/spec/models/update_id_p_request_spec.rb +66 -0
- data/spec/models/update_preference_request_spec.rb +42 -0
- data/spec/models/update_service_id_group_request_spec.rb +42 -0
- data/spec/models/update_service_id_request_spec.rb +11 -16
- data/spec/models/update_template_assignment_request_spec.rb +36 -0
- data/spec/models/update_trusted_profile_request_spec.rb +48 -0
- data/spec/models/user_activity_spec.rb +60 -0
- data/spec/models/user_mfa_enrollments_spec.rb +54 -0
- data/spec/models/user_mfa_resolved_spec.rb +54 -0
- data/spec/models/user_mfa_spec.rb +42 -0
- data/spec/models/user_report_mfa_enrollment_status_spec.rb +72 -0
- data/spec/models/user_visbility_retrict_actions_for_template_spec.rb +30 -0
- data/spec/models/user_visbility_retrict_actions_spec.rb +30 -0
- data/spec/spec_helper.rb +3 -3
- metadata +550 -36
- data/docs/IdentityOperationsApi.md +0 -828
- data/docs/InlineObject.md +0 -19
- data/docs/InlineObject1.md +0 -23
- data/docs/InlineObject2.md +0 -21
- data/docs/InlineObject3.md +0 -25
- data/docs/TokenOperationsApi.md +0 -226
- data/ibm_cloud_iam-1.0.0.gem +0 -0
- data/lib/ibm_cloud_iam/api/identity_operations_api.rb +0 -1083
- data/lib/ibm_cloud_iam/api/token_operations_api.rb +0 -351
- data/lib/ibm_cloud_iam/models/inline_object.rb +0 -229
- data/lib/ibm_cloud_iam/models/inline_object1.rb +0 -254
- data/lib/ibm_cloud_iam/models/inline_object2.rb +0 -244
- data/lib/ibm_cloud_iam/models/inline_object3.rb +0 -269
- data/spec/api/identity_operations_api_spec.rb +0 -253
- data/spec/api/token_operations_api_spec.rb +0 -94
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/inline_object1_spec.rb +0 -59
- data/spec/models/inline_object2_spec.rb +0 -53
- data/spec/models/inline_object3_spec.rb +0 -65
- data/spec/models/inline_object_spec.rb +0 -47
|
@@ -1,828 +0,0 @@
|
|
|
1
|
-
# IbmCloudIam::IdentityOperationsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://iam.cloud.ibm.com*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**create_api_key**](IdentityOperationsApi.md#create_api_key) | **POST** /v1/apikeys | Create an API key
|
|
8
|
-
[**create_service_id**](IdentityOperationsApi.md#create_service_id) | **POST** /v1/serviceids/ | Create a service ID
|
|
9
|
-
[**delete_api_key**](IdentityOperationsApi.md#delete_api_key) | **DELETE** /v1/apikeys/{id} | Deletes an API key
|
|
10
|
-
[**delete_service_id**](IdentityOperationsApi.md#delete_service_id) | **DELETE** /v1/serviceids/{id} | Deletes a service ID and associated API keys
|
|
11
|
-
[**get_api_key**](IdentityOperationsApi.md#get_api_key) | **GET** /v1/apikeys/{id} | Get details of an API key
|
|
12
|
-
[**get_api_keys_details**](IdentityOperationsApi.md#get_api_keys_details) | **GET** /v1/apikeys/details | Get details of an API key by its value
|
|
13
|
-
[**get_service_id**](IdentityOperationsApi.md#get_service_id) | **GET** /v1/serviceids/{id} | Get details of a service ID
|
|
14
|
-
[**list_api_keys**](IdentityOperationsApi.md#list_api_keys) | **GET** /v1/apikeys | Get API keys for a given service or user IAM ID and account ID
|
|
15
|
-
[**list_service_ids**](IdentityOperationsApi.md#list_service_ids) | **GET** /v1/serviceids/ | List service IDs
|
|
16
|
-
[**lock_api_key**](IdentityOperationsApi.md#lock_api_key) | **POST** /v1/apikeys/{id}/lock | Lock the API key
|
|
17
|
-
[**lock_service_id**](IdentityOperationsApi.md#lock_service_id) | **POST** /v1/serviceids/{id}/lock | Lock the service ID
|
|
18
|
-
[**unlock_api_key**](IdentityOperationsApi.md#unlock_api_key) | **DELETE** /v1/apikeys/{id}/lock | Unlock the API key
|
|
19
|
-
[**unlock_service_id**](IdentityOperationsApi.md#unlock_service_id) | **DELETE** /v1/serviceids/{id}/lock | Unlock the service ID
|
|
20
|
-
[**update_api_key**](IdentityOperationsApi.md#update_api_key) | **PUT** /v1/apikeys/{id} | Updates an API key
|
|
21
|
-
[**update_service_id**](IdentityOperationsApi.md#update_service_id) | **PUT** /v1/serviceids/{id} | Update service ID
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## create_api_key
|
|
26
|
-
|
|
27
|
-
> ApiKey create_api_key(create_api_key_request, opts)
|
|
28
|
-
|
|
29
|
-
Create an API key
|
|
30
|
-
|
|
31
|
-
Creates an API key for a UserID or service ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to.
|
|
32
|
-
|
|
33
|
-
### Example
|
|
34
|
-
|
|
35
|
-
```ruby
|
|
36
|
-
# load the gem
|
|
37
|
-
require 'ibm_cloud_iam'
|
|
38
|
-
|
|
39
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
40
|
-
create_api_key_request = IbmCloudIam::CreateApiKeyRequest.new # CreateApiKeyRequest | Request to create an API key
|
|
41
|
-
opts = {
|
|
42
|
-
authorization: 'authorization_example', # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
43
|
-
entity_lock: 'false' # String | Indicates if the API key is locked for further write operations. False by default.
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
begin
|
|
47
|
-
#Create an API key
|
|
48
|
-
result = api_instance.create_api_key(create_api_key_request, opts)
|
|
49
|
-
p result
|
|
50
|
-
rescue IbmCloudIam::ApiError => e
|
|
51
|
-
puts "Exception when calling IdentityOperationsApi->create_api_key: #{e}"
|
|
52
|
-
end
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### Parameters
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Name | Type | Description | Notes
|
|
59
|
-
------------- | ------------- | ------------- | -------------
|
|
60
|
-
**create_api_key_request** | [**CreateApiKeyRequest**](CreateApiKeyRequest.md)| Request to create an API key |
|
|
61
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
62
|
-
**entity_lock** | **String**| Indicates if the API key is locked for further write operations. False by default. | [optional] [default to 'false']
|
|
63
|
-
|
|
64
|
-
### Return type
|
|
65
|
-
|
|
66
|
-
[**ApiKey**](ApiKey.md)
|
|
67
|
-
|
|
68
|
-
### Authorization
|
|
69
|
-
|
|
70
|
-
No authorization required
|
|
71
|
-
|
|
72
|
-
### HTTP request headers
|
|
73
|
-
|
|
74
|
-
- **Content-Type**: application/json
|
|
75
|
-
- **Accept**: application/json
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
## create_service_id
|
|
79
|
-
|
|
80
|
-
> ServiceId create_service_id(create_service_id_request, opts)
|
|
81
|
-
|
|
82
|
-
Create a service ID
|
|
83
|
-
|
|
84
|
-
Creates a service ID for an IBM Cloud account. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to.
|
|
85
|
-
|
|
86
|
-
### Example
|
|
87
|
-
|
|
88
|
-
```ruby
|
|
89
|
-
# load the gem
|
|
90
|
-
require 'ibm_cloud_iam'
|
|
91
|
-
|
|
92
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
93
|
-
create_service_id_request = IbmCloudIam::CreateServiceIdRequest.new # CreateServiceIdRequest | Request to create a service ID
|
|
94
|
-
opts = {
|
|
95
|
-
authorization: 'authorization_example', # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
96
|
-
entity_lock: 'false' # String | Indicates if the service ID is locked for further write operations. False by default.
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
begin
|
|
100
|
-
#Create a service ID
|
|
101
|
-
result = api_instance.create_service_id(create_service_id_request, opts)
|
|
102
|
-
p result
|
|
103
|
-
rescue IbmCloudIam::ApiError => e
|
|
104
|
-
puts "Exception when calling IdentityOperationsApi->create_service_id: #{e}"
|
|
105
|
-
end
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### Parameters
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Name | Type | Description | Notes
|
|
112
|
-
------------- | ------------- | ------------- | -------------
|
|
113
|
-
**create_service_id_request** | [**CreateServiceIdRequest**](CreateServiceIdRequest.md)| Request to create a service ID |
|
|
114
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
115
|
-
**entity_lock** | **String**| Indicates if the service ID is locked for further write operations. False by default. | [optional] [default to 'false']
|
|
116
|
-
|
|
117
|
-
### Return type
|
|
118
|
-
|
|
119
|
-
[**ServiceId**](ServiceId.md)
|
|
120
|
-
|
|
121
|
-
### Authorization
|
|
122
|
-
|
|
123
|
-
No authorization required
|
|
124
|
-
|
|
125
|
-
### HTTP request headers
|
|
126
|
-
|
|
127
|
-
- **Content-Type**: application/json
|
|
128
|
-
- **Accept**: application/json
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
## delete_api_key
|
|
132
|
-
|
|
133
|
-
> delete_api_key(id, opts)
|
|
134
|
-
|
|
135
|
-
Deletes an API key
|
|
136
|
-
|
|
137
|
-
Deletes an API key. Existing tokens will remain valid until expired. Refresh tokens will not work any more for this API key. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to.
|
|
138
|
-
|
|
139
|
-
### Example
|
|
140
|
-
|
|
141
|
-
```ruby
|
|
142
|
-
# load the gem
|
|
143
|
-
require 'ibm_cloud_iam'
|
|
144
|
-
|
|
145
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
146
|
-
id = 'id_example' # String | Unique ID of the API key.
|
|
147
|
-
opts = {
|
|
148
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
begin
|
|
152
|
-
#Deletes an API key
|
|
153
|
-
api_instance.delete_api_key(id, opts)
|
|
154
|
-
rescue IbmCloudIam::ApiError => e
|
|
155
|
-
puts "Exception when calling IdentityOperationsApi->delete_api_key: #{e}"
|
|
156
|
-
end
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
### Parameters
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
Name | Type | Description | Notes
|
|
163
|
-
------------- | ------------- | ------------- | -------------
|
|
164
|
-
**id** | **String**| Unique ID of the API key. |
|
|
165
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
166
|
-
|
|
167
|
-
### Return type
|
|
168
|
-
|
|
169
|
-
nil (empty response body)
|
|
170
|
-
|
|
171
|
-
### Authorization
|
|
172
|
-
|
|
173
|
-
No authorization required
|
|
174
|
-
|
|
175
|
-
### HTTP request headers
|
|
176
|
-
|
|
177
|
-
- **Content-Type**: Not defined
|
|
178
|
-
- **Accept**: Not defined
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
## delete_service_id
|
|
182
|
-
|
|
183
|
-
> delete_service_id(id, opts)
|
|
184
|
-
|
|
185
|
-
Deletes a service ID and associated API keys
|
|
186
|
-
|
|
187
|
-
Deletes a service ID and all API keys associated to it. Before deleting the service ID, all associated API keys are deleted. In case a Delete Conflict (status code 409) a retry of the request may help as the service ID is only deleted if the associated API keys were successfully deleted before. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to.
|
|
188
|
-
|
|
189
|
-
### Example
|
|
190
|
-
|
|
191
|
-
```ruby
|
|
192
|
-
# load the gem
|
|
193
|
-
require 'ibm_cloud_iam'
|
|
194
|
-
|
|
195
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
196
|
-
id = 'id_example' # String | Unique ID of the service ID.
|
|
197
|
-
opts = {
|
|
198
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
begin
|
|
202
|
-
#Deletes a service ID and associated API keys
|
|
203
|
-
api_instance.delete_service_id(id, opts)
|
|
204
|
-
rescue IbmCloudIam::ApiError => e
|
|
205
|
-
puts "Exception when calling IdentityOperationsApi->delete_service_id: #{e}"
|
|
206
|
-
end
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
### Parameters
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
Name | Type | Description | Notes
|
|
213
|
-
------------- | ------------- | ------------- | -------------
|
|
214
|
-
**id** | **String**| Unique ID of the service ID. |
|
|
215
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
216
|
-
|
|
217
|
-
### Return type
|
|
218
|
-
|
|
219
|
-
nil (empty response body)
|
|
220
|
-
|
|
221
|
-
### Authorization
|
|
222
|
-
|
|
223
|
-
No authorization required
|
|
224
|
-
|
|
225
|
-
### HTTP request headers
|
|
226
|
-
|
|
227
|
-
- **Content-Type**: Not defined
|
|
228
|
-
- **Accept**: Not defined
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
## get_api_key
|
|
232
|
-
|
|
233
|
-
> ApiKey get_api_key(id, opts)
|
|
234
|
-
|
|
235
|
-
Get details of an API key
|
|
236
|
-
|
|
237
|
-
Returns the details of an API key. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity.
|
|
238
|
-
|
|
239
|
-
### Example
|
|
240
|
-
|
|
241
|
-
```ruby
|
|
242
|
-
# load the gem
|
|
243
|
-
require 'ibm_cloud_iam'
|
|
244
|
-
|
|
245
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
246
|
-
id = 'id_example' # String | Unique ID of the API key.
|
|
247
|
-
opts = {
|
|
248
|
-
include_history: false, # Boolean | Defines if the entity history is included in the response.
|
|
249
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
begin
|
|
253
|
-
#Get details of an API key
|
|
254
|
-
result = api_instance.get_api_key(id, opts)
|
|
255
|
-
p result
|
|
256
|
-
rescue IbmCloudIam::ApiError => e
|
|
257
|
-
puts "Exception when calling IdentityOperationsApi->get_api_key: #{e}"
|
|
258
|
-
end
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
### Parameters
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
Name | Type | Description | Notes
|
|
265
|
-
------------- | ------------- | ------------- | -------------
|
|
266
|
-
**id** | **String**| Unique ID of the API key. |
|
|
267
|
-
**include_history** | **Boolean**| Defines if the entity history is included in the response. | [optional] [default to false]
|
|
268
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
269
|
-
|
|
270
|
-
### Return type
|
|
271
|
-
|
|
272
|
-
[**ApiKey**](ApiKey.md)
|
|
273
|
-
|
|
274
|
-
### Authorization
|
|
275
|
-
|
|
276
|
-
No authorization required
|
|
277
|
-
|
|
278
|
-
### HTTP request headers
|
|
279
|
-
|
|
280
|
-
- **Content-Type**: Not defined
|
|
281
|
-
- **Accept**: application/json
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
## get_api_keys_details
|
|
285
|
-
|
|
286
|
-
> ApiKey get_api_keys_details(opts)
|
|
287
|
-
|
|
288
|
-
Get details of an API key by its value
|
|
289
|
-
|
|
290
|
-
Returns the details of an API key by its value. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to.
|
|
291
|
-
|
|
292
|
-
### Example
|
|
293
|
-
|
|
294
|
-
```ruby
|
|
295
|
-
# load the gem
|
|
296
|
-
require 'ibm_cloud_iam'
|
|
297
|
-
|
|
298
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
299
|
-
opts = {
|
|
300
|
-
iam_api_key: 'iam_api_key_example', # String | API key value.
|
|
301
|
-
include_history: false, # Boolean | Defines if the entity history is included in the response
|
|
302
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
begin
|
|
306
|
-
#Get details of an API key by its value
|
|
307
|
-
result = api_instance.get_api_keys_details(opts)
|
|
308
|
-
p result
|
|
309
|
-
rescue IbmCloudIam::ApiError => e
|
|
310
|
-
puts "Exception when calling IdentityOperationsApi->get_api_keys_details: #{e}"
|
|
311
|
-
end
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
### Parameters
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
Name | Type | Description | Notes
|
|
318
|
-
------------- | ------------- | ------------- | -------------
|
|
319
|
-
**iam_api_key** | **String**| API key value. | [optional]
|
|
320
|
-
**include_history** | **Boolean**| Defines if the entity history is included in the response | [optional] [default to false]
|
|
321
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
322
|
-
|
|
323
|
-
### Return type
|
|
324
|
-
|
|
325
|
-
[**ApiKey**](ApiKey.md)
|
|
326
|
-
|
|
327
|
-
### Authorization
|
|
328
|
-
|
|
329
|
-
No authorization required
|
|
330
|
-
|
|
331
|
-
### HTTP request headers
|
|
332
|
-
|
|
333
|
-
- **Content-Type**: Not defined
|
|
334
|
-
- **Accept**: application/json
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
## get_service_id
|
|
338
|
-
|
|
339
|
-
> ServiceId get_service_id(id, opts)
|
|
340
|
-
|
|
341
|
-
Get details of a service ID
|
|
342
|
-
|
|
343
|
-
Returns the details of a service ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to.
|
|
344
|
-
|
|
345
|
-
### Example
|
|
346
|
-
|
|
347
|
-
```ruby
|
|
348
|
-
# load the gem
|
|
349
|
-
require 'ibm_cloud_iam'
|
|
350
|
-
|
|
351
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
352
|
-
id = 'id_example' # String | Unique ID of the service ID.
|
|
353
|
-
opts = {
|
|
354
|
-
authorization: 'authorization_example', # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
355
|
-
include_history: false # Boolean | Defines if the entity history is included in the response.
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
begin
|
|
359
|
-
#Get details of a service ID
|
|
360
|
-
result = api_instance.get_service_id(id, opts)
|
|
361
|
-
p result
|
|
362
|
-
rescue IbmCloudIam::ApiError => e
|
|
363
|
-
puts "Exception when calling IdentityOperationsApi->get_service_id: #{e}"
|
|
364
|
-
end
|
|
365
|
-
```
|
|
366
|
-
|
|
367
|
-
### Parameters
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
Name | Type | Description | Notes
|
|
371
|
-
------------- | ------------- | ------------- | -------------
|
|
372
|
-
**id** | **String**| Unique ID of the service ID. |
|
|
373
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
374
|
-
**include_history** | **Boolean**| Defines if the entity history is included in the response. | [optional] [default to false]
|
|
375
|
-
|
|
376
|
-
### Return type
|
|
377
|
-
|
|
378
|
-
[**ServiceId**](ServiceId.md)
|
|
379
|
-
|
|
380
|
-
### Authorization
|
|
381
|
-
|
|
382
|
-
No authorization required
|
|
383
|
-
|
|
384
|
-
### HTTP request headers
|
|
385
|
-
|
|
386
|
-
- **Content-Type**: Not defined
|
|
387
|
-
- **Accept**: application/json
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
## list_api_keys
|
|
391
|
-
|
|
392
|
-
> ApiKeyList list_api_keys(opts)
|
|
393
|
-
|
|
394
|
-
Get API keys for a given service or user IAM ID and account ID
|
|
395
|
-
|
|
396
|
-
Returns the list of API key details for a given service or user IAM ID and account ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity.
|
|
397
|
-
|
|
398
|
-
### Example
|
|
399
|
-
|
|
400
|
-
```ruby
|
|
401
|
-
# load the gem
|
|
402
|
-
require 'ibm_cloud_iam'
|
|
403
|
-
|
|
404
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
405
|
-
opts = {
|
|
406
|
-
account_id: 'account_id_example', # String | Account ID of the API keys(s) to query. If a service IAM ID is specified in iam_id then account_id must match the account of the IAM ID. If a user IAM ID is specified in iam_id then then account_id must match the account of the Authorization token.
|
|
407
|
-
iam_id: 'iam_id_example', # String | IAM ID of the API key(s) to be queried. The IAM ID may be that of a user or a service. For a user IAM ID iam_id must match the Authorization token.
|
|
408
|
-
pagesize: 56, # Integer | Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100.
|
|
409
|
-
pagetoken: 'pagetoken_example', # String | Optional Prev or Next page token returned from a previous query execution. Default is start with first page.
|
|
410
|
-
scope: 'entity', # String | Optional parameter to define the scope of the queried API Keys. Can be 'entity' (default) or 'account'.
|
|
411
|
-
type: 'type_example', # String | Optional parameter to filter the type of the queried API Keys. Can be 'user' or 'serviceid'.
|
|
412
|
-
sort: 'sort_example', # String | Optional sort property, valid values are name, description, created_at and created_by. If specified, the items are sorted by the value of this property.
|
|
413
|
-
order: 'asc', # String | Optional sort order, valid values are asc and desc. Default: asc.
|
|
414
|
-
include_history: false, # Boolean | Defines if the entity history is included in the response.
|
|
415
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
begin
|
|
419
|
-
#Get API keys for a given service or user IAM ID and account ID
|
|
420
|
-
result = api_instance.list_api_keys(opts)
|
|
421
|
-
p result
|
|
422
|
-
rescue IbmCloudIam::ApiError => e
|
|
423
|
-
puts "Exception when calling IdentityOperationsApi->list_api_keys: #{e}"
|
|
424
|
-
end
|
|
425
|
-
```
|
|
426
|
-
|
|
427
|
-
### Parameters
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
Name | Type | Description | Notes
|
|
431
|
-
------------- | ------------- | ------------- | -------------
|
|
432
|
-
**account_id** | **String**| Account ID of the API keys(s) to query. If a service IAM ID is specified in iam_id then account_id must match the account of the IAM ID. If a user IAM ID is specified in iam_id then then account_id must match the account of the Authorization token. | [optional]
|
|
433
|
-
**iam_id** | **String**| IAM ID of the API key(s) to be queried. The IAM ID may be that of a user or a service. For a user IAM ID iam_id must match the Authorization token. | [optional]
|
|
434
|
-
**pagesize** | **Integer**| Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. | [optional]
|
|
435
|
-
**pagetoken** | **String**| Optional Prev or Next page token returned from a previous query execution. Default is start with first page. | [optional]
|
|
436
|
-
**scope** | **String**| Optional parameter to define the scope of the queried API Keys. Can be 'entity' (default) or 'account'. | [optional] [default to 'entity']
|
|
437
|
-
**type** | **String**| Optional parameter to filter the type of the queried API Keys. Can be 'user' or 'serviceid'. | [optional]
|
|
438
|
-
**sort** | **String**| Optional sort property, valid values are name, description, created_at and created_by. If specified, the items are sorted by the value of this property. | [optional]
|
|
439
|
-
**order** | **String**| Optional sort order, valid values are asc and desc. Default: asc. | [optional] [default to 'asc']
|
|
440
|
-
**include_history** | **Boolean**| Defines if the entity history is included in the response. | [optional] [default to false]
|
|
441
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
442
|
-
|
|
443
|
-
### Return type
|
|
444
|
-
|
|
445
|
-
[**ApiKeyList**](ApiKeyList.md)
|
|
446
|
-
|
|
447
|
-
### Authorization
|
|
448
|
-
|
|
449
|
-
No authorization required
|
|
450
|
-
|
|
451
|
-
### HTTP request headers
|
|
452
|
-
|
|
453
|
-
- **Content-Type**: Not defined
|
|
454
|
-
- **Accept**: application/json
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
## list_service_ids
|
|
458
|
-
|
|
459
|
-
> ServiceIdList list_service_ids(opts)
|
|
460
|
-
|
|
461
|
-
List service IDs
|
|
462
|
-
|
|
463
|
-
Returns a list of service IDs. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to.
|
|
464
|
-
|
|
465
|
-
### Example
|
|
466
|
-
|
|
467
|
-
```ruby
|
|
468
|
-
# load the gem
|
|
469
|
-
require 'ibm_cloud_iam'
|
|
470
|
-
|
|
471
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
472
|
-
opts = {
|
|
473
|
-
account_id: 'account_id_example', # String | Account ID of the service ID(s) to query. This parameter is required (unless using a pagetoken).
|
|
474
|
-
name: 'name_example', # String | Name of the service ID(s) to query. Optional.20 items per page. Valid range is 1 to 100.
|
|
475
|
-
pagesize: 56, # Integer | Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100.
|
|
476
|
-
pagetoken: 'pagetoken_example', # String | Optional Prev or Next page token returned from a previous query execution. Default is start with first page.
|
|
477
|
-
sort: 'sort_example', # String | Optional sort property, valid values are name, description, created_at and modified_at. If specified, the items are sorted by the value of this property.
|
|
478
|
-
order: 'asc', # String | Optional sort order, valid values are asc and desc. Default: asc.
|
|
479
|
-
include_history: false, # Boolean | Defines if the entity history is included in the response
|
|
480
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
begin
|
|
484
|
-
#List service IDs
|
|
485
|
-
result = api_instance.list_service_ids(opts)
|
|
486
|
-
p result
|
|
487
|
-
rescue IbmCloudIam::ApiError => e
|
|
488
|
-
puts "Exception when calling IdentityOperationsApi->list_service_ids: #{e}"
|
|
489
|
-
end
|
|
490
|
-
```
|
|
491
|
-
|
|
492
|
-
### Parameters
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
Name | Type | Description | Notes
|
|
496
|
-
------------- | ------------- | ------------- | -------------
|
|
497
|
-
**account_id** | **String**| Account ID of the service ID(s) to query. This parameter is required (unless using a pagetoken). | [optional]
|
|
498
|
-
**name** | **String**| Name of the service ID(s) to query. Optional.20 items per page. Valid range is 1 to 100. | [optional]
|
|
499
|
-
**pagesize** | **Integer**| Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. | [optional]
|
|
500
|
-
**pagetoken** | **String**| Optional Prev or Next page token returned from a previous query execution. Default is start with first page. | [optional]
|
|
501
|
-
**sort** | **String**| Optional sort property, valid values are name, description, created_at and modified_at. If specified, the items are sorted by the value of this property. | [optional]
|
|
502
|
-
**order** | **String**| Optional sort order, valid values are asc and desc. Default: asc. | [optional] [default to 'asc']
|
|
503
|
-
**include_history** | **Boolean**| Defines if the entity history is included in the response | [optional] [default to false]
|
|
504
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
505
|
-
|
|
506
|
-
### Return type
|
|
507
|
-
|
|
508
|
-
[**ServiceIdList**](ServiceIdList.md)
|
|
509
|
-
|
|
510
|
-
### Authorization
|
|
511
|
-
|
|
512
|
-
No authorization required
|
|
513
|
-
|
|
514
|
-
### HTTP request headers
|
|
515
|
-
|
|
516
|
-
- **Content-Type**: Not defined
|
|
517
|
-
- **Accept**: application/json
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
## lock_api_key
|
|
521
|
-
|
|
522
|
-
> lock_api_key(id, opts)
|
|
523
|
-
|
|
524
|
-
Lock the API key
|
|
525
|
-
|
|
526
|
-
Locks an API key by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity.
|
|
527
|
-
|
|
528
|
-
### Example
|
|
529
|
-
|
|
530
|
-
```ruby
|
|
531
|
-
# load the gem
|
|
532
|
-
require 'ibm_cloud_iam'
|
|
533
|
-
|
|
534
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
535
|
-
id = 'id_example' # String | Unique ID of the API key.
|
|
536
|
-
opts = {
|
|
537
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
begin
|
|
541
|
-
#Lock the API key
|
|
542
|
-
api_instance.lock_api_key(id, opts)
|
|
543
|
-
rescue IbmCloudIam::ApiError => e
|
|
544
|
-
puts "Exception when calling IdentityOperationsApi->lock_api_key: #{e}"
|
|
545
|
-
end
|
|
546
|
-
```
|
|
547
|
-
|
|
548
|
-
### Parameters
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
Name | Type | Description | Notes
|
|
552
|
-
------------- | ------------- | ------------- | -------------
|
|
553
|
-
**id** | **String**| Unique ID of the API key. |
|
|
554
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
555
|
-
|
|
556
|
-
### Return type
|
|
557
|
-
|
|
558
|
-
nil (empty response body)
|
|
559
|
-
|
|
560
|
-
### Authorization
|
|
561
|
-
|
|
562
|
-
No authorization required
|
|
563
|
-
|
|
564
|
-
### HTTP request headers
|
|
565
|
-
|
|
566
|
-
- **Content-Type**: Not defined
|
|
567
|
-
- **Accept**: Not defined
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
## lock_service_id
|
|
571
|
-
|
|
572
|
-
> lock_service_id(id, opts)
|
|
573
|
-
|
|
574
|
-
Lock the service ID
|
|
575
|
-
|
|
576
|
-
Locks a service ID by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity.
|
|
577
|
-
|
|
578
|
-
### Example
|
|
579
|
-
|
|
580
|
-
```ruby
|
|
581
|
-
# load the gem
|
|
582
|
-
require 'ibm_cloud_iam'
|
|
583
|
-
|
|
584
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
585
|
-
id = 'id_example' # String | Unique ID of the service ID.
|
|
586
|
-
opts = {
|
|
587
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
begin
|
|
591
|
-
#Lock the service ID
|
|
592
|
-
api_instance.lock_service_id(id, opts)
|
|
593
|
-
rescue IbmCloudIam::ApiError => e
|
|
594
|
-
puts "Exception when calling IdentityOperationsApi->lock_service_id: #{e}"
|
|
595
|
-
end
|
|
596
|
-
```
|
|
597
|
-
|
|
598
|
-
### Parameters
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
Name | Type | Description | Notes
|
|
602
|
-
------------- | ------------- | ------------- | -------------
|
|
603
|
-
**id** | **String**| Unique ID of the service ID. |
|
|
604
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
605
|
-
|
|
606
|
-
### Return type
|
|
607
|
-
|
|
608
|
-
nil (empty response body)
|
|
609
|
-
|
|
610
|
-
### Authorization
|
|
611
|
-
|
|
612
|
-
No authorization required
|
|
613
|
-
|
|
614
|
-
### HTTP request headers
|
|
615
|
-
|
|
616
|
-
- **Content-Type**: Not defined
|
|
617
|
-
- **Accept**: Not defined
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
## unlock_api_key
|
|
621
|
-
|
|
622
|
-
> unlock_api_key(id, opts)
|
|
623
|
-
|
|
624
|
-
Unlock the API key
|
|
625
|
-
|
|
626
|
-
Unlocks an API key by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity.
|
|
627
|
-
|
|
628
|
-
### Example
|
|
629
|
-
|
|
630
|
-
```ruby
|
|
631
|
-
# load the gem
|
|
632
|
-
require 'ibm_cloud_iam'
|
|
633
|
-
|
|
634
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
635
|
-
id = 'id_example' # String | Unique ID of the API key.
|
|
636
|
-
opts = {
|
|
637
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
begin
|
|
641
|
-
#Unlock the API key
|
|
642
|
-
api_instance.unlock_api_key(id, opts)
|
|
643
|
-
rescue IbmCloudIam::ApiError => e
|
|
644
|
-
puts "Exception when calling IdentityOperationsApi->unlock_api_key: #{e}"
|
|
645
|
-
end
|
|
646
|
-
```
|
|
647
|
-
|
|
648
|
-
### Parameters
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
Name | Type | Description | Notes
|
|
652
|
-
------------- | ------------- | ------------- | -------------
|
|
653
|
-
**id** | **String**| Unique ID of the API key. |
|
|
654
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
655
|
-
|
|
656
|
-
### Return type
|
|
657
|
-
|
|
658
|
-
nil (empty response body)
|
|
659
|
-
|
|
660
|
-
### Authorization
|
|
661
|
-
|
|
662
|
-
No authorization required
|
|
663
|
-
|
|
664
|
-
### HTTP request headers
|
|
665
|
-
|
|
666
|
-
- **Content-Type**: Not defined
|
|
667
|
-
- **Accept**: Not defined
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
## unlock_service_id
|
|
671
|
-
|
|
672
|
-
> unlock_service_id(id, opts)
|
|
673
|
-
|
|
674
|
-
Unlock the service ID
|
|
675
|
-
|
|
676
|
-
Unlocks a service ID by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity.
|
|
677
|
-
|
|
678
|
-
### Example
|
|
679
|
-
|
|
680
|
-
```ruby
|
|
681
|
-
# load the gem
|
|
682
|
-
require 'ibm_cloud_iam'
|
|
683
|
-
|
|
684
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
685
|
-
id = 'id_example' # String | Unique ID of the service ID.
|
|
686
|
-
opts = {
|
|
687
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
begin
|
|
691
|
-
#Unlock the service ID
|
|
692
|
-
api_instance.unlock_service_id(id, opts)
|
|
693
|
-
rescue IbmCloudIam::ApiError => e
|
|
694
|
-
puts "Exception when calling IdentityOperationsApi->unlock_service_id: #{e}"
|
|
695
|
-
end
|
|
696
|
-
```
|
|
697
|
-
|
|
698
|
-
### Parameters
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
Name | Type | Description | Notes
|
|
702
|
-
------------- | ------------- | ------------- | -------------
|
|
703
|
-
**id** | **String**| Unique ID of the service ID. |
|
|
704
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
705
|
-
|
|
706
|
-
### Return type
|
|
707
|
-
|
|
708
|
-
nil (empty response body)
|
|
709
|
-
|
|
710
|
-
### Authorization
|
|
711
|
-
|
|
712
|
-
No authorization required
|
|
713
|
-
|
|
714
|
-
### HTTP request headers
|
|
715
|
-
|
|
716
|
-
- **Content-Type**: Not defined
|
|
717
|
-
- **Accept**: Not defined
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
## update_api_key
|
|
721
|
-
|
|
722
|
-
> ApiKey update_api_key(id, if_match, update_api_key_request, opts)
|
|
723
|
-
|
|
724
|
-
Updates an API key
|
|
725
|
-
|
|
726
|
-
Updates properties of an API key. This does NOT affect existing access tokens. Their token content will stay unchanged until the access token is refreshed. To update an API key, pass the property to be modified. To delete one property's value, pass the property with an empty value \"\".Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to.
|
|
727
|
-
|
|
728
|
-
### Example
|
|
729
|
-
|
|
730
|
-
```ruby
|
|
731
|
-
# load the gem
|
|
732
|
-
require 'ibm_cloud_iam'
|
|
733
|
-
|
|
734
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
735
|
-
id = 'id_example' # String | Unique ID of the API key to be updated.
|
|
736
|
-
if_match = 'if_match_example' # String | Version of the API key to be updated. Specify the version that you retrieved when reading the API key. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates.
|
|
737
|
-
update_api_key_request = IbmCloudIam::UpdateApiKeyRequest.new # UpdateApiKeyRequest | Request to update an API key
|
|
738
|
-
opts = {
|
|
739
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
begin
|
|
743
|
-
#Updates an API key
|
|
744
|
-
result = api_instance.update_api_key(id, if_match, update_api_key_request, opts)
|
|
745
|
-
p result
|
|
746
|
-
rescue IbmCloudIam::ApiError => e
|
|
747
|
-
puts "Exception when calling IdentityOperationsApi->update_api_key: #{e}"
|
|
748
|
-
end
|
|
749
|
-
```
|
|
750
|
-
|
|
751
|
-
### Parameters
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
Name | Type | Description | Notes
|
|
755
|
-
------------- | ------------- | ------------- | -------------
|
|
756
|
-
**id** | **String**| Unique ID of the API key to be updated. |
|
|
757
|
-
**if_match** | **String**| Version of the API key to be updated. Specify the version that you retrieved when reading the API key. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. |
|
|
758
|
-
**update_api_key_request** | [**UpdateApiKeyRequest**](UpdateApiKeyRequest.md)| Request to update an API key |
|
|
759
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
760
|
-
|
|
761
|
-
### Return type
|
|
762
|
-
|
|
763
|
-
[**ApiKey**](ApiKey.md)
|
|
764
|
-
|
|
765
|
-
### Authorization
|
|
766
|
-
|
|
767
|
-
No authorization required
|
|
768
|
-
|
|
769
|
-
### HTTP request headers
|
|
770
|
-
|
|
771
|
-
- **Content-Type**: application/json
|
|
772
|
-
- **Accept**: application/json
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
## update_service_id
|
|
776
|
-
|
|
777
|
-
> ServiceId update_service_id(id, if_match, update_service_id_request, opts)
|
|
778
|
-
|
|
779
|
-
Update service ID
|
|
780
|
-
|
|
781
|
-
Updates properties of a service ID. This does NOT affect existing access tokens. Their token content will stay unchanged until the access token is refreshed. To update a service ID, pass the property to be modified. To delete one property's value, pass the property with an empty value \"\".Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to.
|
|
782
|
-
|
|
783
|
-
### Example
|
|
784
|
-
|
|
785
|
-
```ruby
|
|
786
|
-
# load the gem
|
|
787
|
-
require 'ibm_cloud_iam'
|
|
788
|
-
|
|
789
|
-
api_instance = IbmCloudIam::IdentityOperationsApi.new
|
|
790
|
-
id = 'id_example' # String | Unique ID of the service ID to be updated.
|
|
791
|
-
if_match = 'if_match_example' # String | Version of the service ID to be updated. Specify the version that you retrieved as entity_tag (ETag header) when reading the service ID. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates.
|
|
792
|
-
update_service_id_request = IbmCloudIam::UpdateServiceIdRequest.new # UpdateServiceIdRequest | Request to update a service ID
|
|
793
|
-
opts = {
|
|
794
|
-
authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request.
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
begin
|
|
798
|
-
#Update service ID
|
|
799
|
-
result = api_instance.update_service_id(id, if_match, update_service_id_request, opts)
|
|
800
|
-
p result
|
|
801
|
-
rescue IbmCloudIam::ApiError => e
|
|
802
|
-
puts "Exception when calling IdentityOperationsApi->update_service_id: #{e}"
|
|
803
|
-
end
|
|
804
|
-
```
|
|
805
|
-
|
|
806
|
-
### Parameters
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
Name | Type | Description | Notes
|
|
810
|
-
------------- | ------------- | ------------- | -------------
|
|
811
|
-
**id** | **String**| Unique ID of the service ID to be updated. |
|
|
812
|
-
**if_match** | **String**| Version of the service ID to be updated. Specify the version that you retrieved as entity_tag (ETag header) when reading the service ID. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. |
|
|
813
|
-
**update_service_id_request** | [**UpdateServiceIdRequest**](UpdateServiceIdRequest.md)| Request to update a service ID |
|
|
814
|
-
**authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional]
|
|
815
|
-
|
|
816
|
-
### Return type
|
|
817
|
-
|
|
818
|
-
[**ServiceId**](ServiceId.md)
|
|
819
|
-
|
|
820
|
-
### Authorization
|
|
821
|
-
|
|
822
|
-
No authorization required
|
|
823
|
-
|
|
824
|
-
### HTTP request headers
|
|
825
|
-
|
|
826
|
-
- **Content-Type**: application/json
|
|
827
|
-
- **Accept**: application/json
|
|
828
|
-
|