@@ -928,97 +928,6 @@ def list_fleet_agent_versions_with_http_info(opts = {})
928928 return data , status_code , headers
929929 end
930930
931- # List all fleet clusters.
932- #
933- # @see #list_fleet_clusters_with_http_info
934- def list_fleet_clusters ( opts = { } )
935- data , _status_code , _headers = list_fleet_clusters_with_http_info ( opts )
936- data
937- end
938-
939- # List all fleet clusters.
940- #
941- # Retrieve a paginated list of Kubernetes clusters in the fleet.
942- #
943- # This endpoint returns clusters with metadata including node counts, agent versions,
944- # enabled products, and associated services. Use the `page_number` and `page_size`
945- # query parameters to paginate through results.
946- #
947- # @param opts [Hash] the optional parameters
948- # @option opts [Integer] :page_number Page number for pagination (starts at 0).
949- # @option opts [Integer] :page_size Number of results per page (must be greater than 0 and less than or equal to 100).
950- # @option opts [String] :sort_attribute Attribute to sort by.
951- # @option opts [Boolean] :sort_descending Sort order (true for descending, false for ascending).
952- # @option opts [String] :filter Filter string for narrowing down cluster results.
953- # @option opts [String] :tags Comma-separated list of tags to filter clusters.
954- # @return [Array<(FleetClustersResponse, Integer, Hash)>] FleetClustersResponse data, response status code and response headers
955- def list_fleet_clusters_with_http_info ( opts = { } )
956- unstable_enabled = @api_client . config . unstable_operations [ "v2.list_fleet_clusters" . to_sym ]
957- if unstable_enabled
958- @api_client . config . logger . warn format ( "Using unstable operation '%s'" , "v2.list_fleet_clusters" )
959- else
960- raise DatadogAPIClient ::APIError . new ( message : format ( "Unstable operation '%s' is disabled" , "v2.list_fleet_clusters" ) )
961- end
962-
963- if @api_client . config . debugging
964- @api_client . config . logger . debug 'Calling API: FleetAutomationAPI.list_fleet_clusters ...'
965- end
966- if @api_client . config . client_side_validation && !opts [ :'page_number' ] . nil? && opts [ :'page_number' ] < 0
967- fail ArgumentError , 'invalid value for "opts[:"page_number"]" when calling FleetAutomationAPI.list_fleet_clusters, must be greater than or equal to 0.'
968- end
969- if @api_client . config . client_side_validation && !opts [ :'page_size' ] . nil? && opts [ :'page_size' ] > 100
970- fail ArgumentError , 'invalid value for "opts[:"page_size"]" when calling FleetAutomationAPI.list_fleet_clusters, must be smaller than or equal to 100.'
971- end
972- if @api_client . config . client_side_validation && !opts [ :'page_size' ] . nil? && opts [ :'page_size' ] < 1
973- fail ArgumentError , 'invalid value for "opts[:"page_size"]" when calling FleetAutomationAPI.list_fleet_clusters, must be greater than or equal to 1.'
974- end
975- # resource path
976- local_var_path = '/api/unstable/fleet/clusters'
977-
978- # query parameters
979- query_params = opts [ :query_params ] || { }
980- query_params [ :'page_number' ] = opts [ :'page_number' ] if !opts [ :'page_number' ] . nil?
981- query_params [ :'page_size' ] = opts [ :'page_size' ] if !opts [ :'page_size' ] . nil?
982- query_params [ :'sort_attribute' ] = opts [ :'sort_attribute' ] if !opts [ :'sort_attribute' ] . nil?
983- query_params [ :'sort_descending' ] = opts [ :'sort_descending' ] if !opts [ :'sort_descending' ] . nil?
984- query_params [ :'filter' ] = opts [ :'filter' ] if !opts [ :'filter' ] . nil?
985- query_params [ :'tags' ] = opts [ :'tags' ] if !opts [ :'tags' ] . nil?
986-
987- # header parameters
988- header_params = opts [ :header_params ] || { }
989- # HTTP header 'Accept' (if needed)
990- header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] )
991-
992- # form parameters
993- form_params = opts [ :form_params ] || { }
994-
995- # http body (model)
996- post_body = opts [ :debug_body ]
997-
998- # return_type
999- return_type = opts [ :debug_return_type ] || 'FleetClustersResponse'
1000-
1001- # auth_names
1002- auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth ]
1003-
1004- new_options = opts . merge (
1005- :operation => :list_fleet_clusters ,
1006- :header_params => header_params ,
1007- :query_params => query_params ,
1008- :form_params => form_params ,
1009- :body => post_body ,
1010- :auth_names => auth_names ,
1011- :return_type => return_type ,
1012- :api_version => "V2"
1013- )
1014-
1015- data , status_code , headers = @api_client . call_api ( Net ::HTTP ::Get , local_var_path , new_options )
1016- if @api_client . config . debugging
1017- @api_client . config . logger . debug "API called: FleetAutomationAPI#list_fleet_clusters\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
1018- end
1019- return data , status_code , headers
1020- end
1021-
1022931 # List all deployments.
1023932 #
1024933 # @see #list_fleet_deployments_with_http_info
@@ -1093,82 +1002,6 @@ def list_fleet_deployments_with_http_info(opts = {})
10931002 return data , status_code , headers
10941003 end
10951004
1096- # List instrumented pods for a cluster.
1097- #
1098- # @see #list_fleet_instrumented_pods_with_http_info
1099- def list_fleet_instrumented_pods ( cluster_name , opts = { } )
1100- data , _status_code , _headers = list_fleet_instrumented_pods_with_http_info ( cluster_name , opts )
1101- data
1102- end
1103-
1104- # List instrumented pods for a cluster.
1105- #
1106- # Retrieve the list of pods targeted for Single Step Instrumentation (SSI) injection
1107- # in a specific Kubernetes cluster.
1108- #
1109- # This endpoint returns pod groups organized by owner reference (deployment, statefulset, etc.)
1110- # with their injection annotations and applied targets. Use the clusters list endpoint
1111- # to discover available cluster names.
1112- #
1113- # @param cluster_name [String] The name of the Kubernetes cluster.
1114- # @param opts [Hash] the optional parameters
1115- # @return [Array<(FleetInstrumentedPodsResponse, Integer, Hash)>] FleetInstrumentedPodsResponse data, response status code and response headers
1116- def list_fleet_instrumented_pods_with_http_info ( cluster_name , opts = { } )
1117- unstable_enabled = @api_client . config . unstable_operations [ "v2.list_fleet_instrumented_pods" . to_sym ]
1118- if unstable_enabled
1119- @api_client . config . logger . warn format ( "Using unstable operation '%s'" , "v2.list_fleet_instrumented_pods" )
1120- else
1121- raise DatadogAPIClient ::APIError . new ( message : format ( "Unstable operation '%s' is disabled" , "v2.list_fleet_instrumented_pods" ) )
1122- end
1123-
1124- if @api_client . config . debugging
1125- @api_client . config . logger . debug 'Calling API: FleetAutomationAPI.list_fleet_instrumented_pods ...'
1126- end
1127- # verify the required parameter 'cluster_name' is set
1128- if @api_client . config . client_side_validation && cluster_name . nil?
1129- fail ArgumentError , "Missing the required parameter 'cluster_name' when calling FleetAutomationAPI.list_fleet_instrumented_pods"
1130- end
1131- # resource path
1132- local_var_path = '/api/unstable/fleet/clusters/{cluster_name}/instrumented_pods' . sub ( '{cluster_name}' , CGI . escape ( cluster_name . to_s ) . gsub ( '%2F' , '/' ) )
1133-
1134- # query parameters
1135- query_params = opts [ :query_params ] || { }
1136-
1137- # header parameters
1138- header_params = opts [ :header_params ] || { }
1139- # HTTP header 'Accept' (if needed)
1140- header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] )
1141-
1142- # form parameters
1143- form_params = opts [ :form_params ] || { }
1144-
1145- # http body (model)
1146- post_body = opts [ :debug_body ]
1147-
1148- # return_type
1149- return_type = opts [ :debug_return_type ] || 'FleetInstrumentedPodsResponse'
1150-
1151- # auth_names
1152- auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth ]
1153-
1154- new_options = opts . merge (
1155- :operation => :list_fleet_instrumented_pods ,
1156- :header_params => header_params ,
1157- :query_params => query_params ,
1158- :form_params => form_params ,
1159- :body => post_body ,
1160- :auth_names => auth_names ,
1161- :return_type => return_type ,
1162- :api_version => "V2"
1163- )
1164-
1165- data , status_code , headers = @api_client . call_api ( Net ::HTTP ::Get , local_var_path , new_options )
1166- if @api_client . config . debugging
1167- @api_client . config . logger . debug "API called: FleetAutomationAPI#list_fleet_instrumented_pods\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
1168- end
1169- return data , status_code , headers
1170- end
1171-
11721005 # List all schedules.
11731006 #
11741007 # @see #list_fleet_schedules_with_http_info
0 commit comments